:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --bg-light: #F7FFF7;
    --text-dark: #2F3E46;
    --text-light: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Evita el scroll doble */
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary);
}

/* PixiJS Canvas Layer */
#pixi-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Por encima del BG pero debajo del contenido */
    display: block;
    pointer-events: none;
}

/* Background Image Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background_infantil_mateo.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    /* Capa más profunda */
    pointer-events: none;
}

/* Content Layout */
.content-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 10;
    height: 100dvh;
    /* Altura dinámica para móviles */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* Full Screen Section */
.full-screen {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: background-color 0.5s ease;
    box-sizing: border-box;
}

/* Colores por Sección (Menos la primera) */
.date-section {
    background-color: rgba(78, 205, 196, 0.12);
    /* Menos opaco para ver el fondo */
}

.countdown-section {
    background-color: rgba(255, 230, 109, 0.15);
}

.maps-section {
    background-color: rgba(108, 92, 231, 0.08);
}

.rsvp-section {
    background-color: rgba(255, 107, 107, 0.08);
}

/* Hero Section */
.hero-section {
    text-align: center;
    background-color: transparent;
    /* Mantiene el fondo original/Pixi */
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0px var(--accent);
    line-height: 1.2;
}

.scroll-indicator {
    margin-top: 40px;
    font-size: 2rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Info Cards */
.info-section {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.info-card {
    background: var(--card-bg);
    padding: 25px 20px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 3px solid var(--secondary);
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 90%;
}

.icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Countdown */
.countdown-section {
    text-align: center;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
    margin: 25px 0;
    opacity: 0.5;
}

.date-section h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.time-block {
    background: var(--primary);
    color: var(--text-light);
    padding: 10px;
    border-radius: 12px;
    min-width: 60px;
    box-shadow: var(--shadow);
}

.time-block span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.time-block small {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Map Facade */
.map-facade {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    border-radius: 15px;
    margin-top: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4ECDC4 0%, #2ab2a8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* RSVP Button */
.rsvp-section {
    text-align: center;
    margin-top: 40px;
}

.rsvp-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    border: none;
    margin-bottom: 15px;
}

.rsvp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.calendar-button {
    display: block;
    margin: 10px auto;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.calendar-button:hover {
    background: var(--secondary);
    color: white;
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Responsive */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .countdown-container {
        gap: 8px;
    }

    .time-block {
        min-width: 65px;
        padding: 10px;
    }

    .time-block span {
        font-size: 1.4rem;
    }
}