/* ═══════════════════════════════════════════════
   faq.css — Estilos de preguntas-frecuentes.php
═══════════════════════════════════════════════ */

/* ─── TOP BAR SIMPLE (esta página usa su propio header) ── */
#faq-topbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,.08);
  padding: .75rem 0;
}
.faq-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-topbar-logo img { height: 3rem; width: auto; object-fit: contain; }
.faq-back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  transition: color .2s; white-space: nowrap;
}
.faq-back-link:hover { color: var(--green); }

/* ─── HERO ───────────────────────────────────── */
.faq-hero {
  padding: 7rem 0 3.5rem;
  background: linear-gradient(135deg, #1a3a6c 0%, #0f2650 100%);
  position: relative; overflow: hidden;
}
/* Círculos decorativos */
.faq-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 24rem; height: 24rem; border-radius: 50%;
  background: rgba(255,255,255,.05);
  transform: translate(50%, -50%);
  pointer-events: none;
}
.faq-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 16rem; height: 16rem; border-radius: 50%;
  background: rgba(5,150,105,.1);
  transform: translate(-50%, 50%);
  pointer-events: none;
}
.faq-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
}
.faq-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 99px;
  margin-bottom: 1.25rem;
}
.faq-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 1rem;
}
.faq-hero-desc {
  font-size: clamp(.9rem, 2vw, 1.0625rem);
  color: rgba(255,255,255,.7);
  line-height: 1.7; max-width: 580px;
  margin: 0 auto 2rem; font-weight: 300;
}
.faq-breadcrumb {
  display: flex; align-items: center;
  justify-content: center; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.5);
  margin-top: 1.5rem;
}
.faq-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.faq-breadcrumb a:hover { color: #fff; }
.faq-breadcrumb i { color: rgba(255,255,255,.3); }
.faq-breadcrumb span { color: rgba(255,255,255,.9); font-weight: 500; }

/* ─── LAYOUT PRINCIPAL ───────────────────────── */
.faq-main { padding: 4rem 0 5rem; background: #fff; }

.faq-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .faq-layout { flex-direction: row; gap: 2.5rem; }
}

/* ─── SIDEBAR ────────────────────────────────── */
.faq-sidebar {
  width: 100%;
  opacity: 0; transform: translateX(-24px);
  transition: opacity .7s ease, transform .7s ease;
}
.faq-sidebar.visible { opacity: 1; transform: translateX(0); }

@media (min-width: 1024px) {
  .faq-sidebar {
    width: 17rem;
    flex-shrink: 0;
    position: sticky;
    top: 7rem;
  }
}

.faq-sidebar-box {
  background: #f5f7fa;
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.faq-sidebar-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #94a3b8; padding: 0 .75rem;
  margin-bottom: .75rem; display: block;
}

/* Botón de categoría */
.faq-cat-btn {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .875rem 1rem;
  border-radius: .75rem;
  font-size: .875rem; font-weight: 600;
  text-align: left; cursor: pointer;
  transition: all .3s ease;
  background: none; border: none;
  font-family: inherit; color: #475569;
  white-space: nowrap; margin-bottom: 2px;
}
.faq-cat-btn:hover { background: #fff; color: var(--navy); }
.faq-cat-btn.active {
  background: linear-gradient(135deg, var(--navy), rgba(26,58,108,.85));
  color: #fff;
}
.faq-cat-icon {
  width: 2rem; height: 2rem; border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff; flex-shrink: 0; transition: background .3s;
}
.faq-cat-btn.active .faq-cat-icon { background: rgba(255,255,255,.2); }
.faq-cat-icon i { font-size: .9rem; color: var(--navy); transition: color .3s; }
.faq-cat-btn.active .faq-cat-icon i { color: #fff; }
.faq-cat-arrow { margin-left: auto; flex-shrink: 0; color: rgba(255,255,255,.7); }

/* Tarjeta de contacto rápido */
.faq-contact-card {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #059669, #047857);
  border-radius: .875rem;
  padding: 1.25rem;
  color: #fff;
}
.faq-contact-icon {
  width: 2.5rem; height: 2.5rem;
  background: rgba(255,255,255,.2);
  border-radius: .625rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}
.faq-contact-icon i { font-size: 1.25rem; color: #fff; }
.faq-contact-title { font-weight: 700; font-size: .875rem; margin-bottom: .3rem; }
.faq-contact-desc { font-size: .75rem; color: rgba(255,255,255,.8); line-height: 1.5; margin-bottom: 1rem; }
.faq-contact-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: #fff; color: #047857;
  font-weight: 700; font-size: .75rem;
  padding: .6rem 1rem; border-radius: .5rem;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.faq-contact-btn:hover { background: #ecfdf5; }

/* ─── ÁREA ACORDEÓN ──────────────────────────── */
.faq-content {
  flex: 1; min-width: 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease .15s, transform .7s ease .15s;
}
.faq-content.visible { opacity: 1; transform: translateY(0); }

/* Cabecera de categoría activa */
.faq-cat-header {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
}
.faq-cat-header-icon {
  width: 2.5rem; height: 2.5rem;
  background: rgba(26,58,108,.1);
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq-cat-header-icon i { font-size: 1.1rem; color: var(--navy); }
.faq-cat-header-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.faq-cat-header-count { font-size: .75rem; color: #94a3b8; margin-top: .1rem; }

/* Lista de acordeones */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }

/* Ítem acordeón */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  transition: border-color .3s, background .3s;
}
.faq-item:hover { border-color: rgba(26,58,108,.2); background: #fafbfd; }
.faq-item.open {
  border-color: rgba(26,58,108,.25);
  background: linear-gradient(to right, rgba(26,58,108,.03), rgba(5,150,105,.04));
}

/* Botón toggle */
.faq-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left; cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.faq-toggle-icon {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; flex-shrink: 0;
  transition: all .3s;
}
.faq-item.open .faq-toggle-icon,
.faq-toggle:hover .faq-toggle-icon {
  background: rgba(26,58,108,.1);
}
.faq-item.open .faq-toggle-icon { background: linear-gradient(135deg, var(--navy), rgba(26,58,108,.8)); }
.faq-toggle-icon i { font-size: .95rem; color: #64748b; transition: color .3s; }
.faq-item.open .faq-toggle-icon i { color: #fff; }
.faq-toggle:hover .faq-toggle-icon i { color: var(--navy); }

.faq-toggle-text {
  flex: 1;
  font-size: .9rem; font-weight: 600;
  color: #1e293b; line-height: 1.4;
  transition: color .3s;
}
.faq-item.open .faq-toggle-text,
.faq-toggle:hover .faq-toggle-text { color: var(--navy); }

.faq-toggle-arrow {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #f1f5f9; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .35s ease;
}
.faq-item.open .faq-toggle-arrow {
  background: var(--navy);
  transform: rotate(180deg);
}
.faq-toggle:hover .faq-toggle-arrow { background: rgba(26,58,108,.1); }
.faq-toggle-arrow i { font-size: 1.1rem; color: #94a3b8; transition: color .3s; }
.faq-item.open .faq-toggle-arrow i { color: #fff; }

/* Respuesta desplegable */
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer { opacity: 1; }
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  padding-left: calc(1.25rem + 2.5rem + 1rem); /* alinear con el texto */
}
.faq-answer-inner p {
  font-size: .875rem; color: #475569; line-height: 1.8;
}

/* ─── BANNER INFERIOR ────────────────────────── */
.faq-bottom-cta {
  margin-top: 2.5rem;
  background: linear-gradient(to right, rgba(26,58,108,.04), rgba(5,150,105,.06));
  border: 1px solid rgba(26,58,108,.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
@media (min-width: 640px) {
  .faq-bottom-cta { flex-direction: row; text-align: left; }
}

.faq-cta-icon {
  width: 3.5rem; height: 3.5rem;
  background: linear-gradient(135deg, var(--navy), var(--green));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq-cta-icon i { font-size: 1.4rem; color: #fff; }
.faq-cta-body { flex: 1; }
.faq-cta-title { font-weight: 700; color: #1e293b; margin-bottom: .25rem; font-size: .95rem; }
.faq-cta-desc { font-size: .825rem; color: #64748b; line-height: 1.55; }
.faq-cta-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: #fff; font-weight: 600; font-size: .85rem;
  padding: .75rem 1.5rem; border-radius: .75rem;
  text-decoration: none; white-space: nowrap;
  transition: opacity .25s;
  flex-shrink: 0;
}
.faq-cta-btn:hover { opacity: .88; }
