/**
 * Estilos de la Página de Preguntas Frecuentes (FAQ) - Versión 2
 *
 * Basado estrictamente en las maquetas oficiales del diseñador:
 * - Desktop: /version2/temporal/bodas/Ceremonias Laicas BODAS FORMS FAQ_04.png
 * - Mobile:  /version2/temporal/bodas/Ceremonias Laicas BODAS FORMS FAQ_06.png
 *
 * Paleta de colores y tokens del sistema:
 * - Terracota oscuro acento: #9F6D4A
 * - Terracota melocotón (barras FAQ): #E1AA8C (hover: #D69777)
 * - Texto títulos: #2C2C2C / #FFFFFF
 * - Texto cuerpo: #555555
 * - Borde separador de respuesta: #D8D8D8
 */

/* ==========================================================================
   1. HERO SECTION DE FAQ
   ========================================================================== */
.hero-faq {
    position: relative;
    width: 100%;
    min-height: 350px;
    height: 380px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Corte decorativo en punta central inferior */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(50% + 30px) calc(100% - 24px), 50% 100%, calc(50% - 30px) calc(100% - 24px), 0 calc(100% - 24px));
    padding-bottom: 24px;
}

.hero-faq-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-faq-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 2;
}

.hero-faq-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.hero-faq-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-faq-rama-wrapper {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.hero-faq-rama-white {
    width: 44px;
    height: 44px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-faq-title {
    font-family: 'Muli-Bold', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   2. ENCABEZADO DE INTRODUCCIÓN FAQ
   ========================================================================== */
.faq-intro-section {
    background-color: #ffffff;
    padding: 45px 20px 25px 20px;
    text-align: center;
}

.faq-star-icon {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto 22px auto;
}

.faq-title-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 14px;
}

.faq-header-rama {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: block;
}

.faq-page-title {
    font-family: 'Muli-Light', sans-serif;
    font-size: 2.3rem;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2c2c2c;
    margin: 0;
    font-weight: 300;
    text-align: center;
}

.faq-page-subtitle {
    font-family: 'Cormorant-Italic', serif;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.4;
    color: #9f6d4a;
    margin: 0 auto;
    max-width: 680px;
    text-align: center;
}

/* ==========================================================================
   3. SECCIÓN PRINCIPAL DE PREGUNTAS (ACORDEÓN)
   ========================================================================== */
.faq-main-section {
    background-color: #ffffff;
    padding: 25px 20px 100px 20px;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Elemento del Acordeón */
.faq-accordion {
    background-color: #ffffff;
    border: none;
    outline: none;
    margin: 0;
}

/* Cabecera de la Pregunta (Summary) */
.faq-summary {
    background-color: #e1aa8c;
    color: #ffffff;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    border-radius: 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::marker {
    display: none;
}

.faq-summary:hover {
    background-color: #d69777;
}

.faq-summary:focus-visible {
    outline: 2px solid #9f6d4a;
    outline-offset: 2px;
}

/* Icono +/- a la izquierda */
.faq-icon-box {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.faq-icon-line {
    position: absolute;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon-line.horizontal {
    width: 18px;
    height: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon-line.vertical {
    width: 3px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cuando el acordeón está abierto, ocultar la línea vertical para formar el menos (-) */
.faq-accordion[open] .faq-icon-line.vertical {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Texto de la Pregunta */
.faq-question-text {
    font-family: 'Muli-Regular', sans-serif;
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

/* Cuerpo de la Respuesta */
.faq-answer {
    background-color: #ffffff;
    padding: 24px 24px 30px 24px;
    border-bottom: 1.5px solid #d8d8d8;
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #555555;
    animation: fadeInFaqAnswer 0.3s ease-in-out;
}

.faq-answer p {
    margin: 0 0 16px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    font-family: 'Muli-Bold', sans-serif;
    font-weight: 700;
    color: #222222;
}

.faq-answer a {
    color: #9f6d4a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #7c4b2a;
}

@keyframes fadeInFaqAnswer {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   4. RESPONSIVE BREAKPOINTS (TABLETS Y MÓVILES)
   ========================================================================== */
@media only screen and (max-width: 991px) {
    .hero-faq {
        height: 320px;
        min-height: 300px;
    }

    .hero-faq-title {
        font-size: 2.1rem;
        letter-spacing: 0.1em;
    }

    .faq-page-title {
        font-size: 1.9rem;
    }

    .faq-page-subtitle {
        font-size: 1.25rem;
    }

    .faq-header-rama {
        width: 55px;
        height: 55px;
    }
}

@media only screen and (max-width: 767px) {
    .hero-faq {
        height: 260px;
        min-height: 240px;
        clip-path: none;
        padding-bottom: 0;
    }

    .hero-faq-rama-white {
        width: 34px;
        height: 34px;
    }

    .hero-faq-title {
        font-size: 1.55rem;
        letter-spacing: 0.08em;
    }

    .faq-intro-section {
        padding: 35px 15px 20px 15px;
    }

    .faq-star-icon {
        margin-bottom: 15px;
    }

    .faq-title-wrap {
        gap: 0;
        flex-direction: column;
    }

    .faq-header-rama {
        display: none;
    }

    .faq-page-title {
        font-size: 1.55rem;
        letter-spacing: 0.06em;
    }

    .faq-page-subtitle {
        font-size: 1.15rem;
        padding: 0 10px;
    }

    .faq-main-section {
        padding: 15px 15px 70px 15px;
    }

    .faq-summary {
        padding: 15px 18px;
        gap: 14px;
    }

    .faq-question-text {
        font-size: 0.92rem;
        letter-spacing: 0.03em;
    }

    .faq-answer {
        padding: 18px 16px 24px 16px;
        font-size: 0.96rem;
        line-height: 1.75;
    }
}
