/* ==========================================================================
           DISEÑO STYLE DAMA - ELEGANTE Y FEMENINO
           ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 15px;
    background-color: #0c081d;
    /* Fondo de seguridad oscuro */
}

/* ESTRUCTURA PROFESIONAL PARA VIDEO DE FONDO */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantiene la proporción sin deformar */
    z-index: -1;
    /* Se sitúa por detrás de todo el contenido */
    pointer-events: none;
}

/* Capa de contraste sobre el video */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 10, 35, 0.3), rgba(15, 10, 35, 0.45));
    z-index: 0;
    pointer-events: none;
}

/* FONDOS INTERNOS DE CADA SLIDER */
.msg-nevado {
    background-image: url('/img/nevado.jpg');
}

.msg-montana {
    background-image: url('/img/senderimos.jpg');
}

.msg-mar {
    background-image: url('/img/mar.jpg');
}

.msg-comida {
    background-image: url('/img/comida.jpg');
}

.msg-chiste {
    background-image: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?auto=format&fit=crop&w=800&q=80');
}

.card-wrapper {
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 10;
}

.message {
    display: none;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 45px 30px;
    text-align: center;
    color: white;
    /* Resplandor rosa fino y bordes de oro rosa */
    box-shadow: 0 30px 60px rgba(255, 182, 193, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 182, 193, 0.4);
    position: relative;
    overflow: hidden;
}

/* CAPA INTERNA CRISTALINA SUAVE EN LAS TARJETAS */
.message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 10, 25, 0.12);
    z-index: 1;
}

.message-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* TRANSICIÓN CINEMÁTICA EN ENFOQUE SUAVE Y LENTO */
.message.active {
    display: block;
    animation: fadeBlur 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeBlur {
    from {
        opacity: 0;
        filter: blur(15px);
    }

    to {
        opacity: 1;
        filter: blur(0px);
    }
}

/* ==========================================================================
           TIPOGRAFÍA Y ESTILO PREMIUM
           ========================================================================== */
h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 58px;
    margin-bottom: 2px;
    color: #ffb6c1;
    /* Rosa Pastel Claro */
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), -2px -2px 6px rgba(139, 92, 246, 0.4);
}

.marlin-title {
    font-weight: 600;
    font-size: 29px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 1), 0 0 10px rgba(255, 182, 193, 0.5);
}

.text {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1), -2px -2px 6px rgba(0, 0, 0, 1), 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Frase del chiste final estilizada */
.joke-text {
    font-size: 23px;
    font-weight: 600;
    color: #fff4e3;
    /* Crema suave */
    line-height: 1.6;
    font-style: italic;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), -2px -2px 8px rgba(255, 105, 180, 0.3);
    margin: 20px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 15px 0;
}

.verse {
    font-style: italic;
    color: #fef08a;
    /* Dorado Suave */
    font-size: 16px;
    line-height: 1.5;
    background: rgba(20, 15, 35, 0.88);
    padding: 15px;
    border-radius: 15px;
    border-left: 4px solid #ffb6c1;
    width: 100%;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.verse strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
    text-align: right;
}

.dedication {
    border-left: 4px solid #ff7495 !important;
    color: #ffccd7 !important;
}

/* BOTÓN INTERACTIVO */
button.btn-next {
    margin-top: 25px;
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2e102f;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
    transition: all 0.3s ease;
}

button.btn-next:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.6);
}


.balloon-container{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:4;
}


.balloon{

    position:absolute;

    left:var(--left);

    bottom:-150px;

    width:70px;
    height:85px;

    border-radius:50% 50% 45% 45%;

    opacity:.95;

    background:
    radial-gradient(circle at 30% 25%,
    rgba(255,255,255,.85) 0%,
    rgba(255,255,255,.25) 15%,
    transparent 35%),
    linear-gradient(
    135deg,
    rgba(255,255,255,.35),
    transparent 35%
    ),
    var(--color);

    box-shadow:
    inset -12px -18px 25px rgba(0,0,0,.18),
    inset 10px 8px 15px rgba(255,255,255,.35),
    0 8px 20px rgba(0,0,0,.15);


    animation:
    balloonFloat linear forwards;

}


/* Nudo del globo */
.balloon::before{

    content:"";

    position:absolute;

    width:14px;
    height:14px;

    left:28px;

    bottom:-7px;

    background:inherit;

    clip-path:polygon(
    50% 100%,
    0 0,
    100% 0
    );

    filter:brightness(.85);

}



/* Hilo */
.balloon::after{

    content:"";

    position:absolute;

    left:34px;

    top:82px;

    width:2px;

    height:100px;

    background:
    linear-gradient(
    to bottom,
    rgba(255,255,255,.7),
    rgba(255,255,255,.15)
    );

    transform-origin:top;

}



/* Movimiento natural */

@keyframes balloonFloat{


0%{

transform:
translate3d(0,0,0)
rotate(0deg);

}


25%{

transform:
translate3d(-35px,-30vh,0)
rotate(-8deg);

}


50%{

transform:
translate3d(25px,-60vh,0)
rotate(7deg);

}


75%{

transform:
translate3d(-20px,-90vh,0)
rotate(-6deg);

}


100%{

transform:
translate3d(15px,-140vh,0)
rotate(5deg);

}


}

/* MODAL DE ENTRADA */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 25, 0.96);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-box {
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 154, 158, 0.2);
    border: 1px solid rgba(255, 182, 193, 0.5);
}

.modal-box h1 {
    color: #db2777;
    font-size: 38px;
    text-shadow: none;
    margin-bottom: 10px;
}

.modal-box p {
    margin: 15px 0 25px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

.modal-box button {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    padding: 14px 42px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.modal-box button:hover {
    transform: scale(1.03);
}

.modal-signature {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 20px;
    display: block;
}

.modal-signature strong {
    color: #db2777;
    font-weight: 600;
}

footer {
    margin-top: 25px;
    font-size: 13px;
    opacity: 0.9;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 15, 40, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    padding: 10px 16px;
    border-radius: 50px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    z-index: 20;
}

@media (max-width: 480px) {
    h1 {
        font-size: 42px;
    }

    .marlin-title {
        font-size: 22px;
    }

    .text {
        font-size: 16px;
    }

    .verse {
        font-size: 14px;
    }

    .message {
        padding: 35px 20px;
    }

    .joke-text {
        font-size: 19px;
    }
}