/* ============================================================
   ESTANDARTE — page-faq.css
   Orientación y ayuda · Preguntas frecuentes (ES-39).
   ============================================================ */

/* ----------------------------------------------------------
   1. Layout: menú lateral + acordeón
   ---------------------------------------------------------- */
.faq-sec { padding-block: 0 80px; }
.faq-sec__inner { display: flex; gap: 40px; align-items: flex-start; }

/* Menú lateral de la sección */
.faq-side {
    flex: 0 0 320px;
    max-width: 320px;
    padding: 16px 16px 18px;
    border: 1px solid #00032f;
    border-radius: var(--radius);
}
.faq-side__list { list-style: none; margin: 0; padding: 0; }
.faq-side__list li a,
.faq-side__list li > span {
    display: flex;
    align-items: center;
    min-height: 59px;
    padding: 12px 24px;
    border-radius: var(--radius);
    color: var(--color-blue);
    font-size: var(--fs-14);
    letter-spacing: 0.56px;
}
.faq-side__list li a:hover { background: #f2f2f2; }
/* Página actual: resaltada en azul */
.faq-side__list .current-menu-item > a,
.faq-side__list .current_page_item > a {
    background: var(--color-blue);
    color: var(--color-white);
}

/* ----------------------------------------------------------
   2. Acordeón
   ---------------------------------------------------------- */
.faq-main { flex: 1 1 auto; min-width: 0; }
.faq-main__title {
    margin: 0 0 30px;
    color: var(--color-blue);
    font-weight: var(--fw-heavy);
    font-size: var(--fs-36);
    line-height: 40px;
    text-transform: uppercase;
}
.faq-list { display: flex; flex-direction: column; gap: 30px; }

.faq-item { border-radius: var(--radius); }
.faq-item__heading { margin: 0; }
.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 20px 30px;
    background: none;
    border: none;
    border-bottom: 1px solid #00032f;
    border-radius: var(--radius);
    color: var(--color-blue);
    font-family: inherit;
    font-size: var(--fs-18);
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}
.faq-item__q:hover { background: #f2f2f2; }
/* Abierta: fondo gris y sin la línea inferior */
.faq-item.is-open .faq-item__q {
    background: #f2f2f2;
    border-bottom-color: transparent;
}
.faq-item__text { flex: 1 1 auto; min-width: 0; }
.faq-item__icon { flex: none; width: 48px; height: 48px; color: var(--color-blue); }
.faq-item__icon svg { width: 100%; height: 100%; display: block; }
/* El trazo vertical desaparece al abrir: "+" pasa a "−" */
.faq-item__icon-v { transform-origin: center; transition: opacity 0.25s ease, transform 0.25s ease; }
.faq-item.is-open .faq-item__icon-v { opacity: 0; transform: rotate(90deg); }

.faq-item__a { background: #f2f2f2; border-radius: 0 0 var(--radius) var(--radius); }
.faq-item__a[hidden] { display: none; }
.faq-item__body {
    padding: 0 30px 24px;
    color: #00032f;
    font-size: var(--fs-18);
    line-height: 1.6;
}
.faq-item__body > *:first-child { margin-top: 0; }
.faq-item__body > *:last-child { margin-bottom: 0; }
.faq-item__body p { margin: 0 0 1em; }
.faq-item__body ul,
.faq-item__body ol { margin: 0 0 1em; padding-left: 1.4em; }
.faq-item__body a { color: var(--color-blue); text-decoration: underline; }

/* ----------------------------------------------------------
   2b. Contenido legal (privacidad / cookies)
   ---------------------------------------------------------- */
.legal-content { color: #00032f; font-size: var(--fs-18); line-height: 1.5; }
.legal-content > *:first-child { margin-top: 0; }
.legal-content > *:last-child { margin-bottom: 0; }
.legal-content p { margin: 0 0 1.1em; }
/* Los subtítulos van del mismo tamaño que el texto, en Heavy (Figma) */
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    margin: 1.6em 0 0.2em;
    color: #00032f;
    font-weight: var(--fw-heavy);
    font-size: var(--fs-18);
    line-height: 1.4;
}
.legal-content ul,
.legal-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.legal-content li { margin-bottom: 0.4em; }
.legal-content a { color: var(--color-blue); text-decoration: underline; }
.legal-content strong { font-weight: var(--fw-heavy); }
.legal-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ----------------------------------------------------------
   3. Banner de contacto
   ---------------------------------------------------------- */
/* Márgenes laterales alineados con el header/logo (--container-pad) */
.faq-cta { background: var(--color-bg-alt2); }
.faq-cta__inner {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--container-pad);
}
.faq-cta__media {
    position: relative;
    flex: 0 1 686px;
    max-width: 686px;
    min-width: 0;
    min-height: 666px;
    overflow: hidden;
}
.faq-cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faq-cta__body { flex: 0 1 610px; max-width: 610px; display: flex; flex-direction: column; justify-content: center; gap: 20px; min-width: 0; }
.faq-cta__tag { margin: 0; color: var(--color-blue); font-weight: var(--fw-heavy); font-size: var(--fs-24); }
.faq-cta__title {
    align-self: stretch;
    margin: 0;
    padding: 10px 20px;
    background: var(--color-yellow);
    color: #0e1946;
    font-weight: var(--fw-black);
    font-size: 48px;
    line-height: normal;
    text-transform: uppercase;
}
.faq-cta__copy { margin: 0; color: #0e1946; font-size: var(--fs-20); line-height: 1.5; }
.faq-cta__body .btn { align-self: flex-start; }

/* ----------------------------------------------------------
   4. Responsive
   ---------------------------------------------------------- */
@media (max-width: 992px) {
    .faq-sec { padding-bottom: 60px; }
    .faq-sec__inner { flex-direction: column; align-items: stretch; }
    .faq-side { flex: none; max-width: none; }
    .faq-side__list { display: flex; flex-wrap: wrap; gap: 8px; }
    .faq-side__list li { flex: 1 1 auto; }
    .faq-side__list li a { justify-content: center; min-height: 44px; text-align: center; }

    .faq-cta { padding-bottom: 60px; }
    .faq-cta__inner { flex-direction: column; align-items: stretch; }
    .faq-cta__media { flex: none; max-width: none; min-height: 340px; }
    .faq-cta__body { flex: none; }
    .faq-cta__title { font-size: 34px; }
}

@media (max-width: 768px) {
    .faq-sec { padding-bottom: 48px; }
    .faq-main__title { font-size: var(--fs-24); line-height: 1.3; margin-bottom: 20px; }
    .faq-list { gap: 16px; }
    .faq-item__q { padding: 16px; gap: 12px; font-size: var(--fs-16); }
    .faq-item__icon { width: 32px; height: 32px; }
    .faq-item__body { padding: 0 16px 20px; font-size: var(--fs-16); }
    .legal-content { font-size: var(--fs-16); }
    .legal-content h2,
    .legal-content h3,
    .legal-content h4 { font-size: var(--fs-16); }

    .faq-cta { padding-bottom: 48px; }
    .faq-cta__media { min-height: 260px; }
    .faq-cta__copy { font-size: var(--fs-18); }
    .faq-cta__title { font-size: 28px; }
    .faq-cta__tag { font-size: var(--fs-20); }
}

@media (max-width: 480px) {
    .faq-cta__title { font-size: 24px; padding: 8px 14px; }
    .faq-cta__media { min-height: 200px; }
}
