/* ══════════════════════════════════════════════════════
   FAQ — ECOS Grupos v3  |  Estilo Opción 3 mejorada
   Identidad: Navy · Gold · Red · Cream
   Categorías con borde izquierdo gold, mini-cards,
   badge Premium, EAQUALS footer, CTA navy
══════════════════════════════════════════════════════ */

/* ── Sección ─────────────────────────────────────── */
.faq-section {
  background: #FAF9F6;
  padding: clamp(5rem, 10vh, 8rem) var(--gap);
  position: relative;
}

.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Head ────────────────────────────────────────── */
.faq-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.faq-eyebrow {
  font-family: var(--ft);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.faq-main-title {
  font-family: var(--ft);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.faq-main-title .faq-title-red { color: var(--red); }
.faq-head-sub {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin: 1rem auto 0;
}

/* ── Grupo de categoría ──────────────────────────── */
.faq-group {
  margin-bottom: 2.2rem;
}
.faq-group-label {
  font-family: var(--ft);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .8rem;
  padding-left: .9rem;
  border-left: 3px solid var(--gold);
  line-height: 1.6;
}

/* ── Lista ───────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

/* ── Item ────────────────────────────────────────── */
.faq-item {
  background: var(--white);
  border: 1.5px solid #E8E4DC;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover {
  border-color: rgba(250,192,24,.6);
  box-shadow: 0 4px 18px rgba(5,22,94,.06);
}
.faq-item.open {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(5,22,94,.08);
}

/* ── Botón pregunta ──────────────────────────────── */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.faq-q:hover          { background: rgba(250,192,24,.03); }
.faq-item.open .faq-q { background: rgba(250,192,24,.05); }

/* Ícono cuadrado con color */
.faq-ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.faq-item.open .faq-ico { transform: scale(1.08); }

/* Paleta de iconos */
.faq-ico-gold  { background: rgba(250,192,24,.18); }
.faq-ico-navy  { background: rgba(5,22,94,.09);  }
.faq-ico-red   { background: rgba(215,35,39,.1); }
.faq-ico-green { background: rgba(26,122,58,.1); }
.faq-ico-teal  { background: rgba(0,128,140,.1); }

/* Cuerpo pregunta */
.faq-q-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.faq-q-text {
  font-family: var(--fb);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* Badges */
.faq-badge {
  font-family: var(--ft);
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .22rem .6rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.faq-badge-gold {
  background: linear-gradient(115deg, var(--gold) 0%, var(--gold2) 100%);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(250,192,24,.3);
}
.faq-badge-eaquals {
  background: rgba(5,22,94,.08);
  color: var(--navy);
  border: 1px solid rgba(5,22,94,.15);
}

/* +/− toggle */
.faq-toggle {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid #D8D4CC;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
  position: relative;
  background: transparent;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 1px;
  transition: all .25s;
}
.faq-toggle::before { width: 10px; height: 1.5px; }
.faq-toggle::after  { width: 1.5px; height: 10px; }

.faq-item.open .faq-toggle {
  background: var(--navy);
  border-color: var(--navy);
}
.faq-item.open .faq-toggle::before { background: var(--white); }
.faq-item.open .faq-toggle::after  { background: var(--white); transform: rotate(90deg) scaleY(0); }

/* ── Panel respuesta ─────────────────────────────── */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .42s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-a { max-height: 1400px; }

/* Respuesta simple */
.faq-a-inner {
  border-top: 1px solid #EDE9E0;
  padding: 1.1rem 1.2rem 1.3rem 1.2rem;
}
.faq-a-inner > p {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 .8rem;
}
.faq-a-inner > p:last-child { margin-bottom: 0; }

/* Lista checks */
.faq-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .4rem;
}
.faq-check-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--muted);
}
.faq-check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 17px; height: 17px;
  background: rgba(250,192,24,.2);
  color: #7a5800;
  border-radius: 50%;
  font-size: .58rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: .12rem;
}

/* ── Mini-cards horizontales (estilo opción 3) ───── */
.faq-minicards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}
.faq-minicard {
  background: #F7F4EE;
  border: 1px solid #EDE9E0;
  border-radius: 10px;
  padding: .9rem .85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}
.faq-minicard-ico {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(250,192,24,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.faq-minicard-t {
  font-family: var(--ft);
  font-size: .7rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.2;
}
.faq-minicard-d {
  font-size: .75rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Respuesta rica (contenido complejo) */
.faq-a-rich {
  border-top: 1px solid #EDE9E0;
  padding: 1.1rem 1.2rem 1.3rem 1.2rem;
}
.faq-a-rich > p:first-child {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── EAQUALS footer strip ────────────────────────── */
.faq-eaquals {
  margin-top: 2rem;
  background: var(--navy);
  border-radius: 12px;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.faq-eaquals-badge {
  flex-shrink: 0;
  width: 58px; height: 58px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: .4rem;
}
.faq-eaquals-star {
  font-size: 1.1rem;
  line-height: 1;
}
.faq-eaquals-name {
  font-family: var(--ft);
  font-size: .42rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--navy);
  text-transform: uppercase;
}
.faq-eaquals-body { flex: 1; }
.faq-eaquals-title {
  font-family: var(--ft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.faq-eaquals-desc {
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
}
.faq-eaquals-desc strong { color: var(--white); }

/* ── CTA final ───────────────────────────────────── */
.faq-cta {
  margin-top: 1.2rem;
  background: var(--white);
  border: 1.5px solid #EDE9E0;
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.faq-cta-left {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.faq-cta-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(250,192,24,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.faq-cta-txt {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.4;
}
.faq-cta-txt strong { color: var(--navy); font-family: var(--ft); font-size: .8rem; letter-spacing: .02em; }
.faq-cta-btn {
  flex-shrink: 0;
  font-family: var(--ft);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .2s;
}
.faq-cta-btn:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250,192,24,.35);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  .faq-q { padding: .9rem 1rem; gap: .75rem; }
  .faq-ico { width: 34px; height: 34px; border-radius: 8px; }
  .faq-a-inner, .faq-a-rich { padding: 1rem; }
  .faq-minicards { grid-template-columns: 1fr 1fr; }
  .faq-eaquals { flex-direction: column; text-align: center; }
  .faq-cta { flex-direction: column; text-align: center; }
  .faq-cta-left { flex-direction: column; }
  .faq-main-title { font-size: clamp(1.7rem, 8vw, 2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-ico, .faq-toggle, .faq-item { transition: none; }
}