/* ==========================================================================
   FUNERALES PAGE STYLES - VERSION 2
   Ceremonias Laicas - Diseño Exclusivo para Funerales Laicos
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION (LCP Optimized)
   -------------------------------------------------------------------------- */
.hero-funerales {
    position: relative;
    height: 440px;
    background-color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Corte triangular chevron notch inferior según mockup desktop */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(50% + 50px) calc(100% - 50px), 50% 100%, calc(50% - 50px) calc(100% - 50px), 0 calc(100% - 50px));
    padding-bottom: 50px;
}

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

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

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

.hero-funerales-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-rama-wrapper {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

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

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

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

    .hero-funerales-title {
        font-size: 1.9rem;
        letter-spacing: 0.12em;
    }

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

/* --------------------------------------------------------------------------
   2. SEPARADOR DE SECCIÓN
   -------------------------------------------------------------------------- */
.separador-seccion-2026 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 30px auto;
    text-align: center;
}

.separador-seccion-2026 img {
    width: 36px;
    height: 36px;
    display: block;
}

/* --------------------------------------------------------------------------
   3. SECCIÓN INTRODUCCIÓN: "¿QUÉ ES UN FUNERAL HUMANISTA?"
   -------------------------------------------------------------------------- */
.seccion-intro-funerales {
    padding: 50px 0 70px 0;
    background-color: #ffffff;
}

.intro-funerales-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 65px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: center;
}

/* Columna Izquierda: Foto en Arco */
.intro-funerales-foto-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.arco-marco-externo {
    border: 24px solid #9F6D4A;
    border-radius: 220px 220px 0 0;
    padding: 0;
    background-color: transparent;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: none;
    overflow: hidden;
}

.arco-foto-wrapper {
    border-radius: 196px 196px 0 0;
    overflow: hidden;
    aspect-ratio: 0.65;
    width: 100%;
    border: none;
}

.arco-foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Columna Derecha: Textos */
.intro-funerales-texto-col {
    display: flex;
    flex-direction: column;
}

.titulo-funerales-rama {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.titulo-funerales-rama h2 {
    font-family: 'Muli-Light', sans-serif;
    font-size: 2.35rem;
    color: #1a1a1a;
    line-height: 1.25;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rama-funerales-decorativa {
    width: 46px;
    height: auto;
    flex-shrink: 0;
}

.intro-funerales-bajada {
    font-family: 'Cormorant-Italic', serif;
    font-style: italic;
    font-size: 1.55rem;
    color: #9F6D4A;
    line-height: 1.4;
    margin-bottom: 26px;
}

.intro-funerales-parrafos {
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 35px;
}

.intro-funerales-parrafos p {
    margin-bottom: 20px;
}

.intro-funerales-parrafos p:last-child {
    margin-bottom: 0;
}

.intro-funerales-btn-wrap {
    display: flex;
    gap: 20px;
}

/* --------------------------------------------------------------------------
   4. BOTÓN PREMIUM CON DOBLE BORDE
   -------------------------------------------------------------------------- */
.boton-premium {
    position: relative;
    font-family: 'Cormorant-Medium', 'Cormorant-Regular', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #9F6D4A;
    padding: 16px 42px;
    text-transform: none;
    letter-spacing: 0.02em;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(159, 109, 74, 0.2);
}

.boton-premium::before,
.boton-premium::after {
    content: '';
    position: absolute;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Marco interior blanco en L (esquina superior izquierda) */
.boton-premium::before {
    top: 8px;
    left: 10px;
    right: 105px;
    bottom: 16px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.95);
    border-left: 1.5px solid rgba(255, 255, 255, 0.95);
}

/* Marco interior blanco en L (esquina inferior derecha) */
.boton-premium::after {
    bottom: 8px;
    right: 10px;
    left: 105px;
    top: 16px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.95);
    border-right: 1.5px solid rgba(255, 255, 255, 0.95);
}

.boton-premium:hover {
    background-color: #8b5b3a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(159, 109, 74, 0.35);
}

.boton-premium:hover::before {
    top: 6px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-color: #ffffff;
}

.boton-premium:hover::after {
    bottom: 6px;
    right: 8px;
    left: 8px;
    top: 6px;
    border-color: #ffffff;
}

.boton-premium.btn-oscuro {
    background-color: #9F6D4A;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. SECCIÓN CARACTERÍSTICAS: "Nuestros funerales humanistas son:"
   -------------------------------------------------------------------------- */
.seccion-caracteristicas-funerales {
    padding: 30px 0 85px 0;
    background-color: #ffffff;
}

.caracteristicas-funerales-subtitulo {
    text-align: center;
    font-family: 'Cormorant-Italic', serif;
    font-style: italic;
    font-size: 1.95rem;
    color: #9F6D4A;
    margin-bottom: 55px;
    text-transform: none;
    font-weight: 400;
}

.grid-caracteristicas-funerales {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 65px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 35px;
}

.item-caracteristica-funeral {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.item-caracteristica-funeral:hover {
    transform: translateY(-3px);
}

.ico-wrapper-funeral {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ico-wrapper-funeral img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.text-wrapper-funeral h3 {
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.55rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.text-wrapper-funeral p {
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #555555;
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. BLOQUE DE ATENCIÓN URGENTE / GUARDIA FUNERARIA 24H
   -------------------------------------------------------------------------- */
.seccion-urgencia-funeral {
    background-color: #faf5f0;
    border-top: 1px solid #f3e5db;
    border-bottom: 1px solid #f3e5db;
    padding: 65px 20px;
    text-align: center;
}

.urgencia-container {
    max-width: 800px;
    margin: 0 auto;
}

.urgencia-pretitle {
    font-family: 'Sackers-Gothic-Medium', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #9F6D4A;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.urgencia-title {
    font-family: 'Cormorant-Medium', serif;
    font-size: 2.3rem;
    color: #2c2c2c;
    margin-bottom: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.urgencia-desc {
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.05rem;
    color: #666666;
    margin-bottom: 28px;
    line-height: 1.65;
}

.urgencia-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #9F6D4A;
    color: #ffffff;
    font-family: 'Muli-Bold', sans-serif;
    font-size: 1.25rem;
    padding: 16px 36px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #9F6D4A;
    letter-spacing: 0.05em;
}

.urgencia-phone-btn:hover {
    background-color: #de9f7f;
    color: #ffffff;
    border-color: #de9f7f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(159, 109, 74, 0.25);
}

.urgencia-phone-btn svg {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. SECCIÓN PREGUNTAS FRECUENTES (FAQ)
   -------------------------------------------------------------------------- */
.seccion-faq-funeral {
    background-color: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #f3e5db;
}

.faq-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.faq-header-decor img {
    width: 60px;
    height: auto;
    display: block;
}

.faq-header-text {
    text-align: left;
}

.faq-pretitle {
    font-family: 'Sackers-Gothic-Medium', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #9F6D4A;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.faq-main-title {
    font-family: 'Cormorant-Medium', serif;
    font-size: 2.6rem;
    color: #2c2c2c;
    line-height: 1.15;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.faq-subtitle {
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.05rem;
    color: #666666;
    line-height: 1.5;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    border: none;
    background-color: #ffffff;
    margin-bottom: 18px;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 6px 18px rgba(222, 159, 127, 0.15);
}

.faq-item summary {
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 25px 20px 75px;
    background-color: #de9f7f;
    color: #ffffff;
    font-family: 'Muli-Bold', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.faq-item summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 54px;
    background-color: rgba(255, 255, 255, 0.08);
    border-right: 1.5px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    font-family: 'Muli-Bold', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: #ffffff;
    text-align: center;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: '\2212';
}

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

.faq-content {
    padding: 25px 30px;
    font-family: 'Muli-Light', sans-serif;
    font-size: 0.98rem;
    line-height: 1.8;
    color: #555555;
    background-color: #ffffff;
    border-bottom: 1.5px solid #f3e5db;
}

.faq-content p {
    margin: 12px 0 0 0;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 991px) {
    .grid-caracteristicas-funerales {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 25px;
    }

    .intro-funerales-grid {
        gap: 40px;
    }
}

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

    .hero-funerales-title {
        font-size: 1.9rem;
        letter-spacing: 0.12em;
    }

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

    .seccion-intro-funerales {
        padding: 25px 0 50px 0;
    }

    .intro-funerales-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    /* En mobile el texto y botón van PRIMERO según Recurso 2@4x-80.jpg */
    .intro-funerales-texto-col {
        order: 1;
    }

    /* La foto en arco va SEGUNDO (debajo del botón) */
    .intro-funerales-foto-col {
        order: 2;
        margin-top: 15px;
        padding: 0 10px;
    }

    .titulo-funerales-rama h2 {
        font-size: 1.75rem;
    }

    .rama-funerales-decorativa {
        width: 38px;
    }

    .intro-funerales-bajada {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .intro-funerales-parrafos {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .intro-funerales-btn-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .boton-premium {
        width: 100%;
        max-width: 360px;
        padding: 15px 24px;
        font-size: 1.25rem;
    }

    .arco-marco-externo {
        max-width: 320px;
        border-width: 15px;
        border-color: #9F6D4A;
        border-radius: 170px 170px 0 0;
    }

    .arco-foto-wrapper {
        border-radius: 155px 155px 0 0;
        aspect-ratio: 0.65;
    }

    .seccion-caracteristicas-funerales {
        padding: 25px 0 60px 0;
    }

    .caracteristicas-funerales-subtitulo {
        font-size: 1.55rem;
        margin-bottom: 35px;
    }

    .grid-caracteristicas-funerales {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }

    .item-caracteristica-funeral {
        gap: 18px;
    }

    .ico-wrapper-funeral {
        width: 55px;
        height: 55px;
    }

    .text-wrapper-funeral h3 {
        font-size: 1.3rem;
    }

    .text-wrapper-funeral p {
        font-size: 0.95rem;
    }

    .faq-header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 35px;
    }

    .faq-header-text {
        text-align: center;
    }

    .faq-main-title {
        font-size: 2.1rem;
    }

    .faq-item summary {
        padding: 16px 18px 16px 66px;
        font-size: 0.88rem;
    }

    .faq-item summary::before,
    .faq-item summary::after {
        width: 48px;
    }

    .faq-content {
        padding: 20px 22px;
        font-size: 0.95rem;
    }

    .urgencia-title {
        font-size: 1.8rem;
    }

    .urgencia-phone-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1rem;
    }
}
