/* =========================================================
   Preguntas frecuentes (página completa) · preguntas-frecuentes.html
   Reutiliza: .dm-hero__titulo/.dm-hero__sub (depilacion-mujer.css) y el signo +/− del acordeón de la home (.fh__signo, faq-home.css).
   1. Hero  2. Rejilla: lado fijo + lista  3. Buscador (campo de formulario, como en depilación mujer)  4. Pestañas
   5. Grupos y acordeón  6. Vacío y «¿No encuentras tu respuesta?»  7. Móvil
   ========================================================= */

/* ---------- 1. Hero blanco compacto ---------- */
.fp-hero { background: var(--blanco); }
.fp-hero__in { display: flex; flex-direction: column; align-items: center; padding-top: 52px; padding-bottom: 8px; text-align: center; }
.fp-hero .dm-hero__titulo { margin-top: 0; font-size: clamp(2.5rem, 4.4vw, 3.9rem); }
.fp-hero .dm-hero__sub { max-width: 52ch; margin-inline: auto; }

/* ---------- 2. Rejilla: buscador + temas a la izquierda (fijos), acordeón a la derecha ---------- */
.fp-cuerpo { padding: 48px 0 112px; background: var(--blanco); }
.fp-rejilla { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; }
.fp-lado { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; }
.fp-lista { min-width: 0; max-width: 820px; }

/* ---------- 3. Buscador: blanco, borde visible, lupa ---------- */
.fp-buscar { position: relative; display: flex; align-items: center; height: 52px; padding: 0 6px 0 16px; border: 1.5px solid rgba(31, 26, 21, .24); border-radius: var(--r-pildora); background: var(--blanco); cursor: text; transition: border-color .2s var(--curva-hover), box-shadow .2s var(--curva-hover); }
.fp-buscar:hover { border-color: rgba(31, 26, 21, .4); }
.fp-buscar:focus-within { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(206, 137, 59, .18); }
.fp-buscar > .lucide { flex: none; width: 19px; height: 19px; color: var(--texto); opacity: .7; }
.fp-buscar input { flex: 1; min-width: 0; height: 100%; margin-left: 10px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--texto); outline: none; }
.fp-buscar input::placeholder { color: var(--texto-60); }
.fp-buscar input::-webkit-search-cancel-button { display: none; }
.fp-buscar__x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--texto-60); }
.fp-buscar__x:hover { background: var(--crema-2); color: var(--texto); }
.fp-buscar__x .lucide { width: 16px; height: 16px; }
.fp-buscar__x[hidden] { display: none; }

/* ---------- 4. Pestañas por tema (lista vertical en escritorio, carril en móvil) ---------- */
.fp-tabs { display: flex; flex-direction: column; gap: 4px; }
.fp-tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 16px 8px 14px; border-radius: var(--r-pildora); text-align: left; font-size: 15px; font-weight: 500; color: var(--texto); transition: background-color .2s var(--curva-hover), color .2s var(--curva-hover); }
.fp-tab .lucide { flex: none; width: 19px; height: 19px; color: var(--acento-hondo); transition: color .2s var(--curva-hover); }
.fp-tab__n { flex: 1; min-width: 0; white-space: nowrap; }
.fp-tab__c { flex: none; min-width: 26px; padding: 2px 8px; border-radius: var(--r-pildora); background: var(--crema); font-size: 12.5px; font-weight: 600; line-height: 1.4; text-align: center; color: var(--texto-60); }
.fp-tab:hover { background: var(--crema); }
.fp-tab:hover .fp-tab__c { background: var(--blanco); }
.fp-tab[aria-pressed="true"] { background: var(--texto); color: var(--blanco); }
.fp-tab[aria-pressed="true"] .lucide { color: #F0C38A; }
.fp-tab[aria-pressed="true"] .fp-tab__c { background: rgba(255, 255, 255, .14); color: var(--blanco); }
.fp-tab:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- 5. Grupos y acordeón (mismo lenguaje que .fh de la home) ---------- */
.fp-grupo + .fp-grupo { margin-top: 56px; }
.fp-grupo[hidden] { display: none; }
.fp-grupo__t { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acento-hondo); }
.fp-grupo__t .lucide { width: 18px; height: 18px; }
.fp-item { border-bottom: 1px solid rgba(31, 26, 21, .12); scroll-margin-top: 104px; }
.fp-item[hidden] { display: none; }
.fp-item h3 { margin: 0; font: inherit; }
.fp-btn { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 16px; width: 100%; padding: 20px 0; text-align: left; }
.fp-q { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; transition: color .3s var(--curva-hover); }
.fp-btn:hover .fp-q { color: var(--acento-hondo); }
.fp-btn:hover .fh__signo { background: var(--acento-suave); }
.fp-btn:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 4px; }
.fp-item.abierto .fh__signo { background: var(--acento); color: var(--blanco); }
.fp-item.abierto .fh__signo::after { transform: rotate(0deg); }
.fp-resp p { max-width: 60ch; padding: 0 60px 24px 0; font-size: 16px; line-height: 1.6; color: var(--texto-60); }
.fp-resp a { color: var(--texto); text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: 3px; }
.fp-resp a:hover { color: var(--acento-hondo); }
/* Solo con JS se pliegan las respuestas (sin JS se leen todas) */
.js .fp-resp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--curva); }
.js .fp-resp > div { overflow: hidden; }
.js .fp-item.abierto .fp-resp { grid-template-rows: 1fr; }
.fp-q mark { background: var(--acento-suave); color: inherit; border-radius: 3px; }

/* ---------- 6. Sin resultados y «¿No encuentras tu respuesta?» ---------- */
.fp-vacio { padding: 36px 24px; border-radius: 16px; background: var(--crema); text-align: center; color: var(--texto-60); }
.fp-vacio[hidden] { display: none; }
.fp-mas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 48px; font-size: 16px; color: var(--texto-60); }
.fp-mas a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--texto); text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: 4px; transition: color .2s var(--curva-hover); }
.fp-mas a .lucide { width: 18px; height: 18px; transition: transform .3s var(--curva-hover); }
.fp-mas a:hover { color: var(--acento-hondo); }
.fp-mas a:hover .lucide { transform: translateX(3px); }

@media (max-width: 1100px) { .fp-rejilla { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; } }

/* ---------- 7. Móvil: buscador arriba, temas en carril horizontal ---------- */
@media (max-width: 900px) {
  .fp-hero__in { padding-top: 30px; padding-bottom: 4px; }
  .fp-hero .dm-hero__titulo { font-size: clamp(2.1rem, 9.6vw, 2.6rem); }
  .fp-cuerpo { padding: 22px 0 80px; }
  .fp-rejilla { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fp-lado { position: static; gap: 12px; }
  .fp-buscar { height: 48px; }
  .fp-buscar input { font-size: 16px; } /* 16px: evita el zoom automático de iOS */
  .fp-tabs { flex-direction: row; gap: 6px; margin: 0 calc(var(--pad-x) * -1); padding: 3px var(--pad-x); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--pad-x); }
  .fp-tabs::-webkit-scrollbar { display: none; }
  .fp-tab { flex: none; width: auto; min-height: 44px; gap: 8px; padding: 6px 12px 6px 14px; background: var(--crema); font-size: 14px; }
  .fp-tab .lucide { width: 17px; height: 17px; }
  .fp-tab:hover { background: var(--crema-2); }
  .fp-tab__c { background: var(--blanco); }
  .fp-grupo + .fp-grupo { margin-top: 40px; }
  .fp-item { scroll-margin-top: 84px; }
  .fp-btn { grid-template-columns: 1fr 38px; gap: 12px; padding: 18px 0; }
  .fp-q { font-size: 18.5px; }
  .fp-btn .fh__signo { width: 38px; height: 38px; }
  .fp-resp p { padding-right: 0; font-size: 15px; }
  .fp-mas { margin-top: 36px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .js .fp-resp, .fp-mas a .lucide { transition: none; } }
