/**
 * REFORMAS YAMYLU — Sección FAQ / Preguntas Frecuentes
 * Acordeón editorial exclusivo · Fondo Surface (#151F35)
 * Sprint 007B — 2026-06-29
 * Posición: entre Testimonios (07) y CTA/Contacto (09)
 */

/* ═══════════════════════════════════════════
   SECCIÓN PRINCIPAL
═══════════════════════════════════════════ */

.faq {
  position: relative;
  background-color: var(--color-surface);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

/* Línea divisoria superior — transición desde el espresso de Testimonios */
.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(201, 164, 74, 0.20) 25%,
    rgba(201, 164, 74, 0.20) 75%,
    transparent 100%
  );
  z-index: 1;
}

/* Número de sección — marca de agua */
.faq__section-num {
  position: absolute;
  top: var(--space-xl);
  right: 80px;
  font-family: var(--font-display);
  font-size: clamp(100px, 14vw, 200px);
  font-weight: 300;
  line-height: 1;
  color: rgba(201, 164, 74, 0.05);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
}

/* ═══════════════════════════════════════════
   INNER — contenedor principal
═══════════════════════════════════════════ */

.faq__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 80px;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */

.faq__header {
  text-align: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.faq__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.faq__eyebrow-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--color-gold-dim);
  flex-shrink: 0;
  transition: width 800ms var(--ease-premium) 200ms;
}

.faq__eyebrow.revealed .faq__eyebrow-line {
  width: 40px;
}

.faq__eyebrow-text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-silver);
}

.faq__headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--color-white);
  margin: 0;
}

.faq__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
}

/* ═══════════════════════════════════════════
   ACORDEÓN
═══════════════════════════════════════════ */

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

/* Cada ítem */
.faq__item {
  border-top: 1px solid rgba(201, 164, 74, 0.18);
}

.faq__item:last-child {
  border-bottom: 1px solid rgba(201, 164, 74, 0.18);
}

/* TRIGGER — botón de cada pregunta */
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  background: none;
  border: none;
  text-align: left;
}

/* PREGUNTA — Cormorant Garamond display */
.faq__question {
  font-family: var(--font-display);
  font-size: var(--text-emphasis);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-white);
  transition: color 300ms var(--ease-smooth);
}

.faq__trigger[aria-expanded="true"] .faq__question {
  color: var(--color-gold);
}

/* INDICADOR +/— */
.faq__indicator {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq__indicator::before,
.faq__indicator::after {
  content: '';
  position: absolute;
  background: var(--color-gold);
  border-radius: 1px;
  top: 50%;
  left: 50%;
}

/* Barra horizontal — siempre visible */
.faq__indicator::before {
  width: 14px;
  height: 1px;
  transform: translate(-50%, -50%);
}

/* Barra vertical — desaparece al abrir */
.faq__indicator::after {
  width: 1px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition:
    transform 400ms var(--ease-premium),
    opacity   300ms var(--ease-smooth);
}

.faq__trigger[aria-expanded="true"] .faq__indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* PANEL — respuesta */
.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms var(--ease-premium);
}

/* RESPUESTA — DM Sans body */
.faq__answer {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  line-height: 1.78;
  color: var(--color-white-80);
  padding-bottom: var(--space-md);
  margin: 0;
}

/* ═══════════════════════════════════════════
   PUENTE → CTA
═══════════════════════════════════════════ */

.faq__bridge {
  margin-top: clamp(56px, 7vw, 80px);
  text-align: center;
}

.faq__bridge-question {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-style: italic;
  font-weight: 300;
  color: var(--color-white);
  margin: 0 0 var(--space-xs);
  line-height: 1.2;
}

.faq__bridge-sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 400;
  color: var(--color-silver);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1023px)
═══════════════════════════════════════════ */

@media (max-width: 1023px) {
  .faq__section-num {
    display: none;
  }

  .faq__inner {
    padding: 0 48px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤767px)
═══════════════════════════════════════════ */

@media (max-width: 767px) {
  .faq {
    padding: var(--space-xl) 0;
  }

  .faq__inner {
    padding: 0 24px;
  }

  .faq__trigger {
    padding: clamp(18px, 4vw, 24px) 0;
    gap: var(--space-sm);
  }

  .faq__question {
    font-size: clamp(16px, 4.5vw, 20px);
  }
}
