
:root {
  --red: #c90808;
  --red-light: #f9e5e5;
  --red-dark: #a00606;
  --gray-dark: #333;
  --gray-mid: #666;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 60px;
  --transition: all .25s ease;
}

* { box-sizing: border-box; }


body {
  background: var(--gray-light);
  font-family: Arial, sans-serif;
  color: var(--gray-dark);
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--red);
  height: 120px;
}

/* ---- HERO CARD ---- */
.hero-container {
  background: var(--white);
  border-top-left-radius: var(--radius-lg);
  padding: 40px;
  margin-top: -60px;
  min-height: 700px;
  box-shadow: var(--shadow-md);
}

/* ---- LOGO ---- */
.logo { max-height: 80px; }
.logo-fallback {
  height: 80px;
  display: flex;
  align-items: center;
}
.logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-dark);
}
.logo-text span { color: var(--red); }

/* ---- PAGE TITLE ---- */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
}
.page-title span { color: var(--red); }

* ---- SEARCH BOX ---- */
.search-box {
  gap: 12px;
  flex-wrap: wrap;
}

.search-label {
  font-size: .95rem;
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  border: 2px solid #ccc;
  border-radius: 25px;
  padding: 8px 40px 8px 18px;
  font-size: .95rem;
  min-width: 240px;
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201,8,8,.12);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.search-clear.visible {
  opacity: 1;
  pointer-events: auto;
  color: var(--gray-mid);
}

.search-clear:hover { color: var(--red); }

.search-btn-icon {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-btn-icon:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

/* ---- SEARCH RESULTS ---- */
.search-results-panel {
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: slideDown .25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-results-header {
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.btn-close-search {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}
.btn-close-search:hover { background: rgba(255,255,255,.2); }

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
  background: var(--red-light);
}

.search-result-icon {
  width: 36px;
  height: 36px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--gray-dark);
  margin-bottom: 2px;
}

.search-result-tab {
  font-size: .8rem;
  color: var(--gray-mid);
}

.search-no-result {
  padding: 24px 20px;
  text-align: center;
  color: var(--gray-mid);
}

.search-no-result i {
  font-size: 2rem;
  color: #ddd;
  display: block;
  margin-bottom: 8px;
}

/* ---- TABS ---- */

.tabs-container {
  margin-top: 28px;
}

.tab-btn {
  background: #eee;
  color: var(--gray-mid);
  border: none;
  padding: 12px 32px;
  border-radius: 15px 15px 0 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  bottom: -4px;
}

.tab-btn.active {
  background: var(--red);
  color: var(--white);
  bottom: 0;
  z-index: 1;
}

.tab-btn:not(.active):hover {
  background: #ddd;
  color: var(--gray-dark);
}

.section-line {
  border-bottom: 4px solid var(--red);
  margin-top: 0;
}

/* ---- TAB PANELS ---- */
.tab-content-panel {
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- AYUDAS ACCORDION ---- */
.ayudas-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ayuda-item {
  border: 1.5px solid #e8e8e8 !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ayuda-item:hover {
  border-color: #f0c0c0 !important;
  box-shadow: 0 4px 16px rgba(201,8,8,.1);
}

.ayuda-item.hidden {
  display: none;
}

.ayuda-btn {
  background: var(--white) !important;
  color: var(--gray-dark) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 24px;
  gap: 14px;
  border: none !important;
  box-shadow: none !important;
}

.ayuda-btn:not(.collapsed) {
  background: var(--red-light) !important;
  color: var(--red) !important;
  border-bottom: 2px solid var(--red) !important;
}

.ayuda-btn::after {
  filter: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c90808'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.ayuda-btn.collapsed::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.ayuda-icon {
  width: 38px;
  height: 38px;
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ayuda-btn.collapsed .ayuda-icon {
  background: #eee;
  color: var(--gray-mid);
}

.ayuda-body {
  padding: 28px 24px;
  background: #fafafa;
}

/* ---- AYUDA INFO (left col) ---- */
.ayuda-info {
  padding-right: 28px;
  border-right: 1.5px solid #f0c0c0;
}

.ayuda-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}

.ayuda-steps {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ayuda-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
}

.ayuda-steps li i {
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ayuda-note {
  background: var(--red-light);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--red-dark);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
}

.ayuda-note i { flex-shrink: 0; margin-top: 2px; }

/* ---- VIDEO ---- */
.video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-container iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: none;
}

.video-placeholder {
  background: #1a1a2e;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner {
  text-align: center;
  color: rgba(255,255,255,.5);
}

.video-placeholder-inner i {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
  color: rgba(201,8,8,.5);
}

.video-thumb {
  height: 320px;
  cursor: pointer;
  background: #000;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .85;
  transition: var(--transition);
}

.video-thumb:hover .video-thumb-img,
.video-thumb:focus-visible .video-thumb-img {
  opacity: .55;
}

.video-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-thumb-play i {
  font-size: 4rem;
  color: #fff;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.6));
  transition: var(--transition);
}

.video-thumb:hover .video-thumb-play i,
.video-thumb:focus-visible .video-thumb-play i {
  transform: scale(1.12);
  color: #c90808;
}

.video-thumb:focus-visible {
  outline: 3px solid #c90808;
  outline-offset: 2px;
}

/* ---- FAQ HINT ---- */
.faq-search-hint {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: .9rem;
  color: #795548;
  display: flex;
  gap: 10px;
  align-items: center;
}

.faq-search-hint i { color: #ffc107; flex-shrink: 0; }

/* ---- FAQ CATEGORY BUTTONS ---- */
.faq-cat-btn {
  background: #f0f0f0;
  border: 1.5px solid #e0e0e0;
  color: var(--gray-mid);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.faq-cat-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.faq-cat-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 600;
}

/* ---- FAQ ITEMS ---- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid #e8e8e8;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #f0c0c0;
  box-shadow: var(--shadow-sm);
}

.faq-item.hidden {
  display: none;
}

.faq-btn {
  width: 100%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-btn:hover {
  background: var(--red-light);
  color: var(--red);
}

.faq-btn[aria-expanded="true"] {
  background: var(--red-light);
  color: var(--red);
  border-bottom: 1.5px solid #f0c0c0;
}

.faq-q-icon {
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-chevron {
  margin-left: auto;
  font-size: .85rem;
  color: var(--gray-mid);
  transition: transform .25s ease;
  flex-shrink: 0;
}

.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-answer {
  padding: 20px 24px 20px 54px;
  font-size: .93rem;
  line-height: 1.7;
  background: #fafafa;
}

.faq-answer p { margin-bottom: 10px; }
.faq-answer ul, .faq-answer ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
.faq-answer li { margin-bottom: 6px; }
.faq-answer a { color: var(--red); }

/* ---- FAQ RELATED ---- */
.faq-related {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--red-light);
  border-radius: 8px;
  font-size: .87rem;
  flex-wrap: wrap;
}

.faq-related span {
  color: var(--red-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.faq-related-link {
  background: none;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 20px;
  padding: 3px 14px;
  font-size: .85rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.faq-related-link:hover {
  background: var(--red);
  color: var(--white);
}

/* ---- FOOTER ---- */
footer {
  background: var(--gray-dark);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.9;
  width: 100%;
}

footer a { color: var(--white); }

/* ---- HIGHLIGHT ---- */
.highlight {
  background: #fff3cd;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  .ayuda-info {
    border-right: none;
    border-bottom: 1.5px solid #f0c0c0;
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 4px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 24px 20px;
  }

  .page-title {
    font-size: 1.35rem;
    margin-top: 16px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: .88rem;
  }

  .search-input {
    min-width: 180px;
  }

  .search-label { display: none; }

  .faq-answer {
    padding-left: 20px;
  }

  .video-container iframe,
  .video-placeholder,
  .video-thumb {
    height: 220px;
  }

  .ayuda-btn {
    font-size: .95rem;
  }
}

@media (max-width: 480px) {
  .search-input {
    min-width: 140px;
  }
}


/* 
.section-line {
  border-bottom: 4px solid #c90808;
  margin-top: -4px;
}

.content-left {
  padding-right: 40px;
  border-right: 1px solid #c90808;
}

.content-left h3 {
  font-weight: 700;
}

.video-container iframe {
  width: 100%;
  height: 350px;
  border-radius: 20px;
}

.thumb-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.arrow-btn {
  width: 50px;
  height: 50px;
  background: #c90808;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 14px;
}
p {
  margin-bottom: 0;
}

@media(max-width:768px) {

  .content-left {
    border-right: none;
    border-bottom: 1px solid #c90808;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .section-tab {
    font-size: 1.4rem;
  }

  .page-title {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 20px;
  }
} */