/* =========================================
   CIERRE DE INVITACIÓN
========================================= */

.cierre-section {
    position: relative;
    min-height: 750px;
    padding: 110px 0 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient( ellipse at center, rgba(30, 100, 76, .55), transparent 65%), linear-gradient( 135deg, #061e19, #103e31, #071f19);
}


/* Brillo ambiental */

.cierre-section::before,
.cierre-section::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.cierre-section::before {
    top: -200px;
    left: -150px;
    background: rgba(40, 130, 91, .18);
}

.cierre-section::after {
    right: -150px;
    bottom: -200px;
    background: rgba(211, 173, 104, .12);
}


/* Contenido */

.cierre-content {
    position: relative;
    z-index: 3;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.cierre-section.visible .cierre-content {
    opacity: 1;
    transform: translateY(0);
}


/* Encabezado */

.cierre-eyebrow {
    display: block;
    color: #d9c18e;
    font-size: .85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
}


/* Ornamentos */

.cierre-ornamento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #d9b978;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.cierre-ornamento span {
    width: 75px;
    height: 1px;
    background: linear-gradient( to right, transparent, #d9b978);
}

.cierre-ornamento span:last-child {
    transform: rotate(180deg);
}


/* Título */

.cierre-content h2 {
    color: #fff8e9;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}


/* Mensaje */

.cierre-mensaje {
    max-width: 570px;
    margin: 0 auto;
    color: rgba(255, 248, 233, .78);
    font-size: 1.08rem;
    line-height: 2;
}


/* Corazón */

.cierre-corazon {
    margin: 35px 0 20px;
    color: #e6a6ac;
    font-size: 1.5rem;
    animation: cierreLatido 2s ease-in-out infinite;
}

@keyframes cierreLatido {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}


/* Firma */

.cierre-firma-label {
    display: block;
    color: #d9c18e;
    font-size: .85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cierre-nombre {
    color: #e5c98e;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 30px;
}


/* Fecha */

.cierre-fecha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    border-top: 1px solid rgba(217, 185, 120, .4);
    border-bottom: 1px solid rgba(217, 185, 120, .4);
    color: #fff8e9;
    margin-bottom: 35px;
}

.cierre-fecha>span {
    color: #e5c98e;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.cierre-fecha div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cierre-fecha strong {
    font-size: .85rem;
    letter-spacing: 3px;
}

.cierre-fecha small {
    color: #d9c18e;
    font-size: .8rem;
    letter-spacing: 3px;
}


/* Ornamento inferior */

.cierre-ornamento-bottom {
    margin-bottom: 35px;
}


/* Botón */

.cierre-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border: 1px solid #d9b978;
    border-radius: 30px;
    color: #e5c98e;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    transition: all .3s ease;
}

.cierre-button:hover {
    color: #103e31;
    background: #e5c98e;
    transform: translateY(-4px);
}


/* Flores decorativas */

.cierre-decoracion {
    position: absolute;
    z-index: 1;
    color: rgba(217, 185, 120, .15);
    font-size: 9rem;
    pointer-events: none;
}

.cierre-flor-superior {
    top: 35px;
    left: 5%;
    transform: rotate(-20deg);
}

.cierre-flor-inferior {
    right: 5%;
    bottom: 35px;
    transform: rotate(25deg);
}


/* Luciérnagas */

.cierre-luciernagas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.cierre-luciernagas span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffe6a3;
    box-shadow: 0 0 8px 3px rgba(255, 220, 130, .5), 0 0 20px 5px rgba(255, 220, 130, .2);
    animation: luciernaga 4s ease-in-out infinite;
}

.cierre-luciernagas span:nth-child(1) {
    top: 15%;
    left: 12%;
    animation-delay: 0s;
}

.cierre-luciernagas span:nth-child(2) {
    top: 30%;
    left: 85%;
    animation-delay: 1s;
}

.cierre-luciernagas span:nth-child(3) {
    top: 65%;
    left: 8%;
    animation-delay: 2s;
}

.cierre-luciernagas span:nth-child(4) {
    top: 80%;
    left: 80%;
    animation-delay: .5s;
}

.cierre-luciernagas span:nth-child(5) {
    top: 45%;
    left: 92%;
    animation-delay: 1.5s;
}

.cierre-luciernagas span:nth-child(6) {
    top: 20%;
    left: 65%;
    animation-delay: 2.5s;
}

.cierre-luciernagas span:nth-child(7) {
    top: 75%;
    left: 35%;
    animation-delay: 1.2s;
}

.cierre-luciernagas span:nth-child(8) {
    top: 10%;
    left: 45%;
    animation-delay: 3s;
}

.cierre-luciernagas span:nth-child(9) {
    top: 55%;
    left: 18%;
    animation-delay: 2.2s;
}

.cierre-luciernagas span:nth-child(10) {
    top: 90%;
    left: 60%;
    animation-delay: .8s;
}

@keyframes luciernaga {
    0%,
    100% {
        opacity: .2;
        transform: translateY(0) scale(.7);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.3);
    }
}


/* Footer */

.cierre-footer {
    position: absolute;
    z-index: 3;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 248, 233, .45);
    font-size: .75rem;
    letter-spacing: 1px;
}

.cierre-footer i {
    color: #d9a0a6;
    margin-left: 5px;
}


/* Responsive */

@media (max-width: 576px) {
    .cierre-section {
        min-height: 720px;
        padding: 85px 20px 100px;
    }
    .cierre-eyebrow {
        font-size: .7rem;
        letter-spacing: 3px;
    }
    .cierre-mensaje {
        font-size: .95rem;
    }
    .cierre-decoracion {
        font-size: 5rem;
    }
    .cierre-flor-superior {
        top: 15px;
        left: 5px;
    }
    .cierre-flor-inferior {
        right: 5px;
        bottom: 40px;
    }
    .cierre-footer {
        padding: 0 15px;
        font-size: .65rem;
    }
}


/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    .cierre-content {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cierre-corazon,
    .cierre-luciernagas span {
        animation: none;
    }
}