/* --- CONFIGURACIÓN GLOBAL TIPOGRÁFICA --- */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #EAE6DF;
    font-family: 'Lora', serif;
    line-height: 1.6;
    overflow: hidden;
    /* Evita el scroll horizontal en móvil */
    max-width: 100vw;
}

/* --- WRAPPER PARA LIMITAR TAMAÑO (SIMULAR MÓVIL EN DESKTOP) --- */
.mobile-wrapper {
    max-width: 890px;
    margin: 0 auto;
    background-color: transparent;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

/* --- SCROLL CONTAINER --- */
.scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- SECCIONES SNAP --- */
.snap-section {
    width: 100%;
    height: 150vh;
    /* 50% más alto que la pantalla — el background se ve mucho más grande */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-sizing: border-box;
}

/* Gradiente muy sutil para suavizar la unión entre secciones */
.snap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(155, 100, 20, 0.25), transparent);
    z-index: 1;
    pointer-events: none;
}

.snap-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(155, 100, 20, 0.25));
    z-index: 1;
    pointer-events: none;
}

.bg-fondo1 {
    background-image: url('fondos/Fondo 1.png');
}

.bg-fondo2 {
    background-image: url('fondos/Fondo 2.png');
}

/* --- TEXTOS, FUENTES Y COLORES --- */
.font-helvetica {
    font-family: 'Helvetica', 'Arial', sans-serif;
}

.font-great-vibes {
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
}

.font-lora {
    font-family: 'Lora', serif;
}

.text-brown {
    color: #54330b;
}

.text-grad-0 {
    background: linear-gradient(0deg, #000000, #bf8b16);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-grad-90 {
    background: linear-gradient(90deg, #000000, #c89116);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Contador */
.reloj {
    background: #784419;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.segundos {
    background: #de9c48;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- ANIMACIONES --- */
.anim-pan-text {
    animation: panTextEffect 8s ease-out forwards;
}

@keyframes panTextEffect {
    0% {
        transform: scale(1) translateX(15px);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: scale(1.05) translateX(-5px);
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 3s ease-in-out, transform 3s ease-in-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESPECÍFICOS DE SECCIONES --- */

/* Pantalla Inicial */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-p1 {
    font-size: 30px;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.hero-p2 {
    font-size: 100px; /* Ampliado a los 100px solicitados */
    margin-bottom: 20px;
    padding: 0 10px;  /* Espacio extra a los lados para que no se corte la tipografía cursiva */
    text-align: center;
}

.hero-foto-container {
    width: 250px;
    height: auto;
    margin-bottom: 5px;
}

.hero-foto {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-p4 {
    font-size: 110px;
    position: relative;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    text-shadow: 0px 4px 10px rgba(255, 255, 255, 0.4);
    z-index: 3;
}

/* Scroll 1 */
.scroll1-content {
    text-align: center;
    width: 100%;
    max-width: 636px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.scroll1-p1 {
    font-size: 18px;
    line-height: 1.8;
}

.scroll1-p2 {
    font-size: 28px;
    line-height: 1.5;
}

.scroll1-p3 {
    font-size: 18px;
}

/* Scroll 2 */
.scroll2-content {
    text-align: center;
    width: 100%;
    max-width: 636px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.scroll2-p1 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    text-align: left;
}

.icon-img {
    width: 55px;
    height: auto;
    object-fit: contain;
}

/* Máscara de color para SVG negros que deben ser #9d6420 */
.icon-brown-mask {
    background-color: #9d6420;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

.btn-ubicacion {
    background: linear-gradient(0deg, #b77480, #feaaa0, #b77480, #f7e8c9, #b77480);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Scroll 3 */
.scroll3-content {
    text-align: center;
    width: 100%;
    max-width: 636px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.scroll3-p1 {
    font-size: 28px;
    font-weight: bold;
}

.scroll3-p2 {
    font-size: 24px;
}

.scroll3-p3-p4 {
    font-size: 20px;
    max-width: 200px;
}

.scroll3-p5 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
}

.scroll3-p6 {
    font-size: 18px;
    line-height: 1.6;
}

/* Scroll 4 */
.scroll4-content {
    text-align: center;
    width: 100%;
    max-width: 636px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.scroll4-p1 {
    font-size: 18px;
    line-height: 1.6;
}

.btn-confirm {
    background: linear-gradient(180deg, #e7aa51, #ffe499, #8d5a1b, #e7aa51, #ac7031);
    color: #54330b !important;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.time-box p {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 5px;
    color: #54330b;
}

.regalos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.regalo-icon {
    width: 40px;
    height: auto;
    mix-blend-mode: multiply;
}

/* Control audio y scroll indicator */
.music-container-block {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.music-control-princess {
    background: linear-gradient(135deg, #efe2ba 0%, #ffffff 50%, #e0ce96 100%);
    color: #4A3B32;
    border-radius: 30px;
    border: 1px solid #b89535;
    padding: 10px 20px;
    font-family: 'Lora', serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator p {
    font-size: 12px;
    font-family: 'Helvetica', sans-serif;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-indicator span {
    font-size: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* ============================================================
   RESPONSIVE — MÓVIL (max-width: 600px) - MÁXIMA SEGURIDAD
   ============================================================ */
@media (max-width: 600px) {

    .mobile-wrapper {
        max-width: 100%;
        box-shadow: none;
    }

    .scroll-container {
        height: 100dvh;
        height: 100vh;
    }

    /* Forzamos un padding lateral del 15% para obligar a CUALQUIER texto
       a quedarse estrictamente en la zona central limpia del fondo */
    .snap-section {
        height: 100dvh !important;
        height: 100vh !important;
        padding: 40px 10% !important; 
        background-size: 100% 100%;
        background-position: center center;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* ---- PANTALLA INICIAL (HERO) ---- */
    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-p1 {
        font-size: 4vw; /* Fuente fluida según el ancho de pantalla */
        letter-spacing: 2px;
        margin-bottom: 5px;
        margin-top: 0px;
    }

    .hero-p2 {
        font-size: 15vw;
        margin-bottom: 10px;
        padding: 0 20px; /* Evita que las colitas de la fuente cursiva toquen el borde de la pantalla */
        white-space: nowrap; /* Fuerza a que se mantenga en una sola línea si es necesario */
    }

    .hero-foto-container {
        width: 200px; /* La foto se escala proporcionalmente */
        /* max-width: 195px; */
    }

    .hero-foto {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin-left: 25px;
    margin-top: -33px;
}

    .hero-p4 {
        font-size: 15vw; /* CORREGIDO: Reducido de 18vw a 14vw para que no se corte en los bordes */
        width: 90%;
        text-align: center;
        /* line-height: 1.1; */
        word-wrap: break-word;
        /* margin-top: -50px; */
    }

    /* ---- SCROLL 1 (La Frase) ---- */
    .scroll1-content {
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .scroll1-p1 {
        font-size: 4.2vw;
        line-height: 1.4;
    }

    .scroll1-p2 {
        font-size: 7.3vw;
        line-height: 1.2;
    }

    .scroll1-p3 {
        font-size: 4.5vw;
    }

    /* ---- SCROLL 2 (Ubicación e Itinerario) — ¡CORREGIDO Y CENTRADO! ---- */
    .scroll2-content {
        width: 100%;
        max-width: 100%;
        gap: 20px; /* Un poco más de espacio entre bloques para mejor lectura */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .scroll2-p1 {
        font-size: 6vw;
        margin-bottom: 5px;
    }

    /* Cambiamos a columna para colocar el icono arriba y el texto abajo, ambos centrados */
    .icon-row {
        gap: 8px;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center; /* Centra las líneas de texto */
    }

    /* Reducción controlada de iconos para dar espacio al texto */
    .icon-img, .icon-brown-mask {
        width: 32px !important;
        height: 32px !important;
    }

    .icon-row p {
        font-size: 3.8vw !important;
        line-height: 1.4;
        white-space: normal;
        text-align: center; /* Asegura el centrado del párrafo */
        margin: 0;
    }

    .btn-ubicacion {
        font-size: 3.8vw;
        padding: 10px 22px;
        margin-top: 5px;
        display: inline-block;
    }

    /* ---- SCROLL 3 (Código de Vestimenta) ---- */
    .scroll3-content {
        width: 100%;
        max-width: 100%;
        gap: 10px;
    }

    .scroll3-p1 {
        font-size: 7.5vw;
    }

    .scroll3-p2 {
        font-size: 5.5vw;
    }

    .scroll3-p3-p4 {
        font-size: 4vw;
        max-width: 100%;
    }

    .scroll3-p5 {
        font-size: 6.0vw;
        margin-top: 2px;
    }

    .scroll3-p6 {
        font-size: 3.8vw;
        line-height: 1.4;
    }

    /* ---- SCROLL 4 (Contador y Regalos) ---- */
    .scroll4-content {
        width: 100%;
        max-width: 100%;
        gap: 10px;
    }

    .scroll4-p1 {
        font-size: 3.8vw;
        line-height: 1.4;
    }

    .btn-confirm {
        font-size: 4vw;
        padding: 12px 24px;
    }

    .countdown-container {
        gap: 8px;
        margin: 4px 0;
    }

    .time-box span {
        font-size: 7vw;
    }

    .time-box p {
        font-size: 2.8vw;
    }

    .regalos-container {
        gap: 8px;
        margin-top: 4px;
    }

    .regalo-icon {
        width: 28px;
    }

    /* ---- BOTÓN DE MÚSICA FLOTANTE ---- */
    .music-container-block {
        bottom: 12px;
        right: 12px;
    }

    .music-control-princess {
        font-size: 11px;
        padding: 8px 14px;
    }
}