/* FAQ page — organización comercial, headers compactos, buscador */

.faq-hero {
  padding: 48px 0 36px;
  background: linear-gradient(160deg, #f4f8fb 0%, #ffffff 70%);
}

.faq-hero-title {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  color: #1a365d;
  margin-bottom: 12px;
  background: none;
  -webkit-text-fill-color: unset;
}

.faq-hero-subtitle {
  font-size: 1.05rem;
  color: #5a6a7a;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-search-wrap {
  max-width: 520px;
  margin: 0 auto 18px;
}

.faq-search-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #d5e3ee;
  border-radius: 12px;
  padding: 0 12px 0 42px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search-field:focus-within {
  border-color: #138bc9;
  box-shadow: 0 0 0 3px rgba(19, 139, 201, 0.12);
}

.faq-search-field > .bi-search {
  position: absolute;
  left: 14px;
  color: #8aa0b4;
  font-size: 1rem;
  pointer-events: none;
}

.faq-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 8px;
  font-size: 1rem;
  color: #1a365d;
  min-width: 0;
}

.faq-search-input::placeholder {
  color: #8aa0b4;
}

.faq-search-clear {
  border: 0;
  background: #eef4f8;
  color: #3d5a73;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.faq-search-clear:hover {
  background: #e2edf5;
  color: #138bc9;
}

.faq-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  max-width: 720px;
}

.faq-quick-nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3d5a73;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d5e3ee;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.faq-quick-nav a:hover {
  color: #138bc9;
  border-color: #138bc9;
  background: rgba(19, 139, 201, 0.06);
}

.faq-hero-help {
  margin: 0;
  font-size: 0.95rem;
  color: #6c7a88;
}

.faq-hero-help a {
  color: #138bc9;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.faq-hero-help a:hover {
  text-decoration: underline;
}

.faqs-section {
  padding: 48px 0 64px;
  scroll-behavior: smooth;
}

.faq-no-results {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.faq-no-results h2 {
  font-size: 1.35rem;
  color: #1a365d;
  margin-bottom: 8px;
}

.faq-no-results p {
  color: #5a6a7a;
  margin-bottom: 20px;
}

.faq-no-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

section.faqs-section .faq-category {
  margin-bottom: 36px;
  scroll-margin-top: 96px;
}

/* Headers compactos: icono + título, sin barra azul alta */
section.faqs-section .category-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #e6eef4;
  padding-bottom: 10px;
}

section.faqs-section .category-header i {
  font-size: 1.25rem;
  color: #138bc9;
  margin-top: 4px;
  flex-shrink: 0;
}

section.faqs-section .category-header h2,
section.faqs-section .category-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0;
  line-height: 1.35;
}

section.faqs-section .category-intro {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: #6c7a88;
  line-height: 1.45;
}

section.faqs-section .faq-category .faq-list {
  padding: 0;
}

section.faqs-section .faq-category .faq-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

section.faqs-section .faq-category .faq-list li {
  background: #fff;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

section.faqs-section .faq-category .faq-list li:hover {
  border-color: #b9d7ea;
  box-shadow: 0 4px 14px rgba(19, 139, 201, 0.08);
}

section.faqs-section .faq-category .faq-list li a {
  display: block;
  padding: 16px 52px 16px 48px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a365d;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  line-height: 1.45;
  transition: background-color 0.2s ease, color 0.2s ease;
}

section.faqs-section .faq-category .faq-list li a h3 {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
}

section.faqs-section .faq-category .faq-list li a.collapsed {
  color: #243b53;
}

section.faqs-section .faq-category .faq-list li a:not(.collapsed) {
  color: #138bc9;
  background: rgba(19, 139, 201, 0.04);
}

section.faqs-section .faq-category .faq-list li a.collapsed:hover {
  color: #138bc9;
}

section.faqs-section .faq-category .faq-list .icon-help {
  font-size: 1.15rem;
  color: #138bc9;
  position: absolute;
  left: 16px;
  top: 18px;
  transform: none;
  z-index: 1;
  pointer-events: none;
}

section.faqs-section .faq-category .faq-list .icon-show,
section.faqs-section .faq-category .faq-list .icon-close {
  font-size: 1.35rem;
  color: #138bc9;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
}

section.faqs-section .faq-category .faq-list .icon-show {
  display: none;
}

section.faqs-section .faq-category .faq-list a.collapsed .icon-show {
  display: inline-block;
}

section.faqs-section .faq-category .faq-list a.collapsed .icon-close {
  display: none;
}

section.faqs-section .faq-category .faq-list .collapse {
  padding: 0 48px 18px 48px;
}

section.faqs-section .faq-category .faq-list .collapse.collapsing {
  transition: height 0.2s ease;
}

section.faqs-section .faq-category .faq-list .collapse p {
  font-size: 0.98rem;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 12px;
  padding: 0;
}

section.faqs-section .faq-category .faq-list .collapse p:last-child {
  margin-bottom: 0;
}

section.faqs-section .faq-link,
section.faqs-section .faq-normal-link {
  color: #138bc9 !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #138bc9;
  display: inline !important;
  padding: 0 !important;
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: inherit !important;
}

section.faqs-section .faq-link:hover,
section.faqs-section .faq-normal-link:hover {
  color: #0d6fa3 !important;
  border-bottom-color: #0d6fa3;
  background: transparent !important;
}

.faq-cta {
  padding: 56px 0 72px;
}

.faq-cta-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(26, 54, 93, 0.08);
  border: 1px solid #d5e3ee;
  position: relative;
}

.faq-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #138bc9, #24b4fb);
  border-radius: 18px 18px 0 0;
}

.faq-cta-card > i {
  font-size: 2.4rem;
  color: #138bc9;
  margin-bottom: 12px;
}

.faq-cta-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #1a365d;
  margin-bottom: 10px;
}

.faq-cta-card > p {
  font-size: 1rem;
  color: #5a6a7a;
  margin-bottom: 24px;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.faq-cta-buttons .btn {
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faq-trust-note {
  font-size: 0.9rem;
  color: #6c7a88;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 36px 0 28px;
  }

  .faq-hero-subtitle {
    font-size: 1rem;
  }

  .faq-quick-nav {
    gap: 6px;
  }

  .faq-quick-nav a {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  section.faqs-section .category-header h2 {
    font-size: 1.15rem;
  }

  section.faqs-section .faq-category .faq-list li a {
    font-size: 0.98rem;
    padding: 14px 44px 14px 42px;
  }

  section.faqs-section .faq-category .faq-list .collapse {
    padding: 0 20px 16px 42px;
  }

  section.faqs-section .faq-category .faq-list .collapse p {
    font-size: 0.95rem;
  }

  section.faqs-section .faq-category .faq-list .icon-help {
    left: 12px;
    top: 16px;
  }

  section.faqs-section .faq-category .faq-list .icon-show,
  section.faqs-section .faq-category .faq-list .icon-close {
    right: 12px;
  }

  .faq-cta-card {
    padding: 28px 20px;
  }

  .faq-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
