/* --- ESTILOS VISUALES (TEMA TOY STORY) --- */
:root {
    --woody-yellow: #f9d62e;
    --woody-red: #d32f2f;
    --woody-brown: #8d6e63;
    --buzz-green: #8bc34a;
    --buzz-purple: #795548;
    --buzz-white: #ffffff;
    --andy-blue: #42a5f5;
    --logo-blue: #1565c0;
    --text-dark: #d1660e;

    --bg-color: #87ceeb;
    --font-title: "Carter One", cursive;
    --font-body: "Quicksand", sans-serif;

    --wood-main: #795548;  /* Marrón medio */
    --wood-dark: #3e2723;  /* Marrón muy oscuro (bordes) */
    --wood-light: #a1887f; /* Brillo superior */
    --text-cream: #ffe0b2;
    --rope-texture: #d7ccc8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 18px;
}

/* --- NUEVO FONDO DE NUBES (MEJORADO) --- */
.andy-cloud-bg {
    background-color: #4facfe;
    /* Degradado azul cielo para profundidad */
    background-image: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='60' viewBox='0 0 100 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.5 16.5c0-6.9 5.6-12.5 12.5-12.5 4.3 0 8.1 2.2 10.5 5.6 2.4-2.1 5.6-3.4 9.1-3.4 7.6 0 13.8 6.2 13.8 13.8 0 0.8-0.1 1.5-0.2 2.3 4.2 1.3 7.2 5.2 7.2 9.9 0 5.7-4.6 10.4-10.4 10.4H22.5c-6.9 0-12.5-5.6-12.5-12.5 0-4.9 2.9-9.1 7.1-11.2 0-0.8-0.1-1.6-0.1-2.4z' fill='%23ffffff' fill-opacity='0.85'/%3E%3C/svg%3E");

    /* Nubes más grandes y espaciadas */
    background-size: 100% 100%, 350px 210px;
    background-position: 0 0, 0 0;
    background-repeat: no-repeat, repeat;
    /* Efecto parallax premium */
    background-attachment: fixed, fixed;

    animation: floatingClouds 60s linear infinite;
}

@keyframes floatingClouds {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 0 0, 350px 210px;
    }
}

/* --- ANIMACIONES --- */
@keyframes smooth-slide-down {
    0% {
        transform: translateY(-120%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes tilt-in {
    0% {
        transform: translateY(40px) rotateX(20deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes shimmer-effect {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes premium-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-8px) rotate(1deg);
    }

    66% {
        transform: translateY(4px) rotate(-0.5deg);
    }
}

@keyframes bounce-in-letter {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.5) rotate(-10deg);
    }

    60% {
        opacity: 1;
        transform: translateY(10px) scale(1.1) rotate(5deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.anim-float {
    animation: premium-float 6s infinite ease-in-out;
}

.anim-pop {
    animation: pop-logo 2.5s infinite ease-in-out;
}

.woody-pattern {
    background-color: var(--woody-yellow);
    background-image: linear-gradient(
            rgba(211, 47, 47, 0.4) 2px,
            transparent 2px
        ),
        linear-gradient(90deg, rgba(211, 47, 47, 0.4) 2px, transparent 2px);
    background-size: 40px 40px;
}

/* --- SOBRE (Intro) --- */
#envelope-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--andy-blue) 0%, #1976d2 100%);
    z-index: 9999;
    transition: opacity 0.5s ease;
    padding: 15px;
}

.intro-text {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--woody-yellow);
    text-shadow: 2px 2px 0 var(--woody-red), 4px 4px 0 #333;
    text-align: center;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 20px;
    border: 3px solid white;
    transform: rotate(-2deg);
    z-index: 2;
}

.envelope-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4/3;
    margin-bottom: 20px;
    perspective: 1000px;
    z-index: 20;
}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--woody-brown);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-preview {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: white;
    border-radius: 10px;
    border: 2px dashed var(--andy-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Añadido padding superior para que el texto no choque con la estrella */
    padding-top: 30px;
}

.envelope-wrapper.open .card-preview {
    transform: translateY(-60%) scale(1.1) rotate(2deg);
    z-index: 20;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--woody-yellow);
}

.seal-btn {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--woody-red);
    color: white;
    font-family: var(--font-title);
    font-size: 1.3rem;
    padding: 12px 35px;
    border-radius: 50px;
    border: 3px solid var(--woody-yellow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
    text-transform: uppercase;
}

.seal-btn:active {
    transform: translateX(-50%) translateY(3px);
}

/* --- MODIFICACIÓN DE LA ESTRELLA --- */
.sheriff-badge {
    position: absolute;
    /* Centrado horizontal */
    left: 50%;
    transform: translateX(-50%);
    /* Posición vertical superior, como un sello */
    top: 10%;
    /* Tamaño aumentado */
    font-size: 5rem;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
    animation: premium-float 5s infinite;
    /* Z-index alto para estar hasta enfrente */
    z-index: 30;
}

/* --- HERO --- */
#main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 20px 20px 40px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Degradado sutil en la parte inferior para fusionar con el contenido */
    background: linear-gradient(
        to bottom,
        rgba(79, 172, 254, 0.3) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 62%;
    background-image: url("../img/portada.png");
    background-size: cover;
    background-position: top center;
    z-index: -1;
    opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.top-banner-wrapper {
    width: 100%;
    position: relative;
    z-index: 20;
    margin-top: 10px;
    margin-bottom: auto;
    opacity: 0;
    animation: smooth-slide-down 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.2s;
}

.subtitle-top-banner {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--text-cream);
    
    /* --- FONDO DE UNA SOLA TABLA --- */
    background-color: var(--wood-main);
    
    /* 1. Degradado lineal vertical: Luz arriba, sombra abajo (Da efecto de volumen/cilindro) */
    /* 2. Clavos en las esquinas: Círculos oscuros simulados */
    background-image: 
        radial-gradient(circle, var(--wood-dark) 4px, transparent 5px), /* Clavo Izq */
        radial-gradient(circle, var(--wood-dark) 4px, transparent 5px), /* Clavo Der */
        linear-gradient(to bottom, var(--wood-light) 0%, var(--wood-main) 40%, var(--wood-dark) 100%);
    
    /* Posición de los "clavos" */
    background-position: 
        15px 50%,   /* Clavo Izquierda centrado verticalmente */
        calc(100% - 15px) 50%, /* Clavo Derecha centrado verticalmente */
        0 0;        /* Fondo de madera */
    
    background-repeat: no-repeat;

    /* Padding extra a los lados para no tapar los clavos */
    padding: 12px 40px; 
    
    border-radius: 4px; /* Esquinas casi rectas, como una tabla cortada */
    display: inline-block;
    
    /* EFECTO QUEMADO / VIEJO */
    /* Sombra externa + Sombra interna negra fuerte para envejecer la madera */
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.5), 
        inset 0 0 20px rgba(20, 10, 5, 0.9);
        
    border: 3px solid var(--wood-dark);
    
    /* Texto con sombra para que parezca tallado o pintado */
    text-shadow: 1px 1px 0px #3e2723, 0 0 10px rgba(0,0,0,0.5);
    
    position: relative;
    animation: premium-float 8s infinite ease-in-out;
}

/* --- SOGAS / CUERDAS --- */
.subtitle-top-banner::before,
.subtitle-top-banner::after {
    content: "";
    position: absolute;
    top: -120px;
    width: 6px;
    height: 125px; 
    
    /* Textura de soga */
    background-image: repeating-linear-gradient(
        45deg,
        var(--rope-texture) 0px,
        var(--rope-texture) 4px,
        #8d6e63 4px,
        #8d6e63 8px
    );
    
    z-index: -1;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Posición de las cuerdas alineadas con los clavos visuales */
.subtitle-top-banner::before {
    left: 15px; 
    transform: rotate(3deg);
}

.subtitle-top-banner::after {
    right: 15px;
    transform: rotate(-3deg);
}
.hero-title-group {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 343px;
    transform: rotate(-2deg);
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 4.5rem;
    line-height: 0.9;
    color: var(--woody-yellow);
    -webkit-text-stroke: 2px var(--logo-blue);
    text-shadow: 5px 5px 0 var(--woody-red), 10px 10px 25px rgba(0, 0, 0, 0.4);
    margin: 10px 0;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.hero h1 span {
    display: inline-block;
    opacity: 0;
    animation: bounce-in-letter 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero h1 span:nth-child(1) {
    animation-delay: 0.6s;
}

.hero h1 span:nth-child(2) {
    animation-delay: 0.7s;
}

.hero h1 span:nth-child(3) {
    animation-delay: 0.8s;
}

.hero h1 span:nth-child(4) {
    animation-delay: 0.9s;
}

.hero h1 span:nth-child(5) {
    animation-delay: 1s;
}

.hero h1 span:nth-child(6) {
    animation-delay: 1.1s;
}

.hero h1::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    background-position: -200% center;
    animation: shimmer-effect 2.5s ease-out forwards;
    animation-delay: 2.2s;
    pointer-events: none;
    -webkit-text-stroke: 0;
    mix-blend-mode: overlay;
}

.hero .age-badge {
    display: inline-block;
    background: var(--woody-red);
    color: white;
    font-family: var(--font-title);
    font-size: 2rem;
    padding: 10px 35px;
    border-radius: 50px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(21, 101, 192, 0.5);
    margin-top: 15px;
    opacity: 0;
    animation: tilt-in 1s ease-out forwards,
        premium-float 6s infinite ease-in-out 1.5s;
    animation-delay: 1.5s;
    text-transform: uppercase;
}

.hero-bottom-group {
    width: 100%;
    z-index: 2;
    margin-top: auto;
    opacity: 0;
    animation: tilt-in 1s ease-out forwards;
    animation-delay: 1.8s;
}

/* --- CONTADOR --- */
.countdown-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px 10px;
    border-radius: 25px;
    border: 4px solid var(--buzz-green);
    margin-top: 25px;
    width: 100%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: rotate(1deg);
}

.countdown-container::before {
    content: "🌵 LA AVENTURA INICIA EN 🌵";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--logo-blue);
    color: white;
    font-family: var(--font-title);
    padding: 5px 25px;
    border-radius: 20px;
    font-size: 1.1rem;
    white-space: nowrap;
    border: 2px solid white;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.countdown-box {
    background: linear-gradient(135deg, white, #e0e0e0);
    color: var(--buzz-purple);
    width: 65px;
    height: 75px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--buzz-green);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-box span {
    font-family: var(--font-title);
    font-size: 1.9rem;
    color: var(--buzz-purple);
    line-height: 1;
}

.countdown-box small {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #555;
}

/* --- SECCIONES --- */
.section-wrapper {
    padding: 20px 15px;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    margin-top: -30px;
}

section {
    background: white;
    border-radius: 30px;
    padding: 30px 20px;
    margin-bottom: 40px;
    position: relative;
    border: 4px solid var(--andy-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

section:hover {
    transform: scale(1.02) rotate(0deg) !important;
}

section:nth-child(odd) {
    border-color: var(--woody-yellow);
    transform: rotate(-1deg);
}

section:nth-child(even) {
    border-color: var(--buzz-green);
    transform: rotate(1deg);
}

section > * {
    transform: rotate(1deg);
}

section:nth-child(even) > * {
    transform: rotate(-1deg);
}

h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--logo-blue);
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--woody-yellow);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 25px;
    border-radius: 20px;
    z-index: 2;
    border: 3px dashed var(--woody-red);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.info-card {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #ddd;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.icon-large {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 10px;
    animation: premium-float 4s infinite ease-in-out;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-family: var(--font-title);
    font-size: 1.2rem;
    text-align: center;
    color: white;
    background: var(--woody-red);
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 0px #b71c1c;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    top: 0;
    margin-top: 10px;
}

@keyframes jelly {
    0% {
        transform: scale(1, 1);
    }

    30% {
        transform: scale(1.25, 0.75);
    }

    40% {
        transform: scale(0.75, 1.25);
    }

    50% {
        transform: scale(1.15, 0.85);
    }

    65% {
        transform: scale(0.95, 1.05);
    }

    75% {
        transform: scale(1.05, 0.95);
    }

    100% {
        transform: scale(1, 1);
    }
}

.btn:active {
    top: 5px;
    box-shadow: 0 3px 0px #b71c1c;
    animation: jelly 0.5s;
}

.btn-map {
    background: var(--buzz-green);
    box-shadow: 0 8px 0px #689f38;
}

.btn-map:active {
    box-shadow: 0 3px 0px #689f38;
}

/* Timeline */
.timeline {
    border-left: 4px dashed var(--woody-brown);
    margin-left: 25px;
    padding-left: 25px;
}

.event {
    position: relative;
    margin-bottom: 35px;
}

.timeline-icon-box {
    position: absolute;
    left: -50px;
    top: -5px;
    width: 50px;
    height: 50px;
    background: var(--woody-yellow);
    border-radius: 50%;
    border: 3px solid var(--woody-red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    z-index: 2;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.time {
    font-family: var(--font-title);
    color: white;
    font-size: 1.1rem;
    background: var(--logo-blue);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
}

/* Gifts */
.gift-options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.gift-card {
    flex: 1 1 200px;
    max-width: 300px;
    background: #fff;
    border-radius: 25px;
    border: 3px solid #eee;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gift-card.envelope {
    border-color: var(--woody-yellow);
    background: linear-gradient(to bottom, #fffde7, #fff);
}

.gift-card.present {
    border-color: var(--buzz-green);
    background: linear-gradient(to bottom, #f1f8e9, #fff);
}

.clothing-sizes {
    margin-top: 25px;
    background: var(--buzz-purple);
    color: white;
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--buzz-green);
    transform: rotate(-1deg);
}

.size-tag {
    display: inline-block;
    background: white;
    color: var(--buzz-purple);
    font-family: var(--font-title);
    padding: 8px 20px;
    margin: 5px;
    border-radius: 20px;
    font-size: 1.1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Polaroid */
.polaroid {
    background: white;
    padding: 12px 12px 45px 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg) scale(0.95);
    border-radius: 2px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    min-width: 200px;
    position: relative;
    transition: transform 0.3s;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.polaroid::after {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.polaroid img {
    width: 100%;
    border: 1px solid #eee;
}

/* RSVP Styled */
.rsvp-card-styled {
    border: 5px solid var(--woody-brown);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 30px 25px;
    position: relative;
    transform: rotate(1deg) !important;
    background-color: white;
    background-image: radial-gradient(
            ellipse at 20% 20%,
            #333 15%,
            transparent 16%
        ),
        radial-gradient(ellipse at 80% 30%, #333 12%, transparent 13%),
        radial-gradient(ellipse at 40% 70%, #333 18%, transparent 19%),
        radial-gradient(ellipse at 90% 80%, #333 10%, transparent 11%);
    background-size: 200px 200px;
}

.rsvp-card-styled .form-content-white {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid var(--woody-brown);
}

.coco-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--woody-brown);
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    background: #fff;
    text-align: center;
    outline: none;
}

.coco-input:focus {
    background: #fff;
    border-color: var(--woody-yellow);
    box-shadow: 0 0 0 4px rgba(249, 214, 46, 0.3);
}

.step-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-family: var(--font-title);
    font-size: 1.5rem;
    cursor: pointer;
    background: #eee;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-plus.blue {
    background: var(--logo-blue);
    color: white;
}

.btn-plus.red {
    background: var(--woody-red);
    color: white;
}

.btn-submit-rsvp {
    background: var(--buzz-green);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    padding: 15px;
    width: 100%;
    font-family: var(--font-title);
    cursor: pointer;
    box-shadow: 0 8px 0px #689f38;
    margin-top: 15px;
    text-transform: uppercase;
}

.btn-submit-rsvp:active {
    box-shadow: 0 4px 0px #689f38;
    transform: translateY(4px);
    animation: jelly 0.4s;
}

.hanging-toy {
    position: absolute;
    top: -60px;
    right: 10px;
    width: 80px;
    z-index: 20;
    animation: premium-float 6s infinite ease-in-out;
}

.hanging-toy::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    width: 4px;
    height: 132px;
    background: #d32f2f;
    z-index: -1;
    border-radius: 5px;
}

/* --- FOOTER MEJORADO TOY STORY --- */
/* --- FOOTER FINAL --- */
footer {
    text-align: center;
    padding: 50px 20px 40px;
    background: var(--logo-blue);
    color: white;
    margin-top: 80px;
    position: relative;

    /* AQUÍ ESTÁ LA LÍNEA ROJA BONITA */
    border-top: 12px solid var(--woody-red);

    /* Sombra interna sutil para que la línea roja resalte y se vea "profunda" */
    box-shadow: inset 0 15px 15px -10px rgba(0, 0, 0, 0.3);
}

/* ELIMINAMOS LA NUBE (IMPORTANTE) */
footer::before {
    display: none;
    content: none;
}

/* Decoración: Los Soldaditos Verdes (Siluetas) */
.army-men-patrol {
    position: absolute;
    top: -85px;
    /* Justo encima de las nubes */
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Toy_Soldiers_Silhouette.png/640px-Toy_Soldiers_Silhouette.png");
    /* Imagen de siluetas libres */
    background-size: contain;
    background-repeat: repeat-x;
    opacity: 0.9;
    animation: march 20s linear infinite;
    z-index: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

@keyframes march {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 0;
    }
}

/* El texto de "Gracias" estilo Toy Story Logo */
.footer-thanks {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--woody-yellow);
    text-shadow: 3px 3px 0 var(--woody-red), -1px -1px 0 var(--logo-blue),
        1px -1px 0 var(--logo-blue), -1px 1px 0 var(--logo-blue),
        1px 1px 0 var(--logo-blue);
    margin-bottom: 15px;
    transform: rotate(-2deg);
    display: inline-block;
}

/* Créditos finales */
.footer-credits {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

footer::before {
    content: "☁️";
    font-size: 3rem;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation: premium-float 4s infinite;
}

.music-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 3px solid var(--buzz-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: pop-logo 3s infinite;
}

.music-fab:active {
    animation: jelly 0.4s;
}

/* --- ESTILOS SWEETALERT --- */
div:where(.swal2-container) .swal2-title {
    font-family: var(--font-title) !important;
    font-size: 2rem !important;
    color: var(--woody-yellow) !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 0 var(--woody-red) !important;
    -webkit-text-stroke: 1px var(--logo-blue) !important;
    background: white !important;
    padding: 10px 20px !important;
    border: 3px solid var(--logo-blue) !important;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2) !important;
    border-radius: 15px !important;
}

div:where(.swal2-container) .swal2-confirm {
    background: var(--buzz-green) !important;
    box-shadow: 0 5px 0 #558b2f !important;
    border-radius: 50px !important;
    font-family: var(--font-title) !important;
}

/* Partículas Estrella en el Hero */
.star-particle {
    position: absolute;
    color: #ffd700;
    z-index: 0;
    animation: pop-logo 3s infinite alternate ease-in-out;
    opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* --- CONTENEDORES PARA COHETE Y FUEGOS --- */
#fireworks-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 95;
}

#fireworks-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ESTILO DEL COHETE INTERACTIVO */
#buzz-bouncer {
    position: fixed;
    /* Fixed para que te siga aunque hagas scroll */
    top: 0;
    left: 0;
    font-size: 5rem;
    z-index: 20000;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3));
    will-change: transform;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    /* Importante: Sin transición para que el JS controle el movimiento fluido */
    transition: none;
}

/* Efecto al volverse loco */
.crazy-mode {
    animation: crazy-shake 0.5s infinite linear;
}

@keyframes crazy-shake {
    0% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(90deg);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}

/* Animación para el número */
@keyframes numberPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Animación para el botón al pulsar */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(0.85) translateY(3px);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pop {
    animation: numberPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-active-anim {
    animation: buttonPress 0.2s ease-out;
}

/* Estilo base mejorado para los botones para que parezcan botones de comando */
.step-btn {
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
}

.step-btn:active {
    box-shadow: 0 0px 0 rgba(0, 0, 0, 0.2);
}

.btn-calendar-toy {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(
        135deg,
        #4285f4,
        #1a73e8
    ); /* Azul Google pero con punch */
    color: white !important;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1rem;
    padding: 12px 25px;
    border-radius: 50px;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 0px #0d47a1, 0 10px 20px rgba(0, 0, 0, 0.2); /* Sombra sólida estilo juguete */
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
    top: 0;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-calendar-toy:active {
    top: 4px; /* Efecto de hundimiento */
    box-shadow: 0 2px 0px #0d47a1, 0 5px 10px rgba(0, 0, 0, 0.2);
}

.calendar-icon-wrapper {
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-icon-wrapper img {
    width: 20px;
    height: 20px;
}

/* Animación extra de "brillo" que pasa sobre el botón */
.btn-calendar-toy::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.btn-calendar-toy:hover::after {
    left: 100%;
}
