/* ====================================
   INVITACIÓN DANYSHA - TOY STORY THEME
   ==================================== */

/* === VARIABLES === */
:root {
    --sky-blue: #4FC3F7;
    --sky-dark: #1565C0;
    --toy-yellow: #FFD700;
    --toy-yellow-dark: #E8A800;
    --toy-red: #E10024;
    --toy-red-dark: #B8001E;
    --toy-green: #4CAF50;
    --toy-green-dark: #388E3C;
    --navy: #1A237E;
    --white: #FFFFFF;
    --cream: #FFF8E1;
    --text-dark: #2C2B2C;
    --text-blue: #05428A;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.3);
    --border-radius: 20px;
    --font-title: 'Fredoka One', cursive;
    --font-fun: 'Bangers', cursive;
    --font-body: 'Nunito', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    /* Fondo celeste estilo Toy Story */
    background-color: #6EC1E4;
    
    /* Dos patrones: Nubes grandes y nubes pequeñas */
    background-image:
        url("images/nube.svg"),
        url("images/nube.svg");
        
    /* Tamaño de cada patrón (nubes grandes y pequeñas) */
    background-size:
        400px auto,
        250px auto;
        
    background-repeat:
        repeat,
        repeat;
        
    /* Desplazamos el segundo patrón para evitar que se alineen */
    background-position:
        0 0,
        200px 150px;
        
    background-attachment: fixed;
}

/* ============================
   CONTENEDOR PRINCIPAL
   ============================ */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    position: relative;
    overflow-x: hidden;
}

/* ============================
   OVERLAY CARTA DE INICIO
   ============================ */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--sky-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.carta-container {
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

.carta-img {
    max-width: 80%;
    width: 400px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.welcome-overlay:hover .carta-img {
    transform: scale(1.05) rotate(-2deg);
}

.carta-text {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--white);
    text-shadow: 3px 3px 0 var(--toy-red);
    margin-top: 1.5rem;
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes moveCloud {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

@keyframes moveCloudReverse {
    0% { transform: translateX(calc(100vw + 200px)); }
    100% { transform: translateX(-300px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: translateY(60px) scale(0.8); }
    60% { transform: translateY(-10px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes rotateBlock {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Animate on scroll - initial hidden state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   SECCIÓN 1: HERO / PORTADA
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, 
        #87CEEB 0%, 
        #4FC3F7 30%, 
        #29B6F6 60%, 
        #81D4FA 80%,
        #E1F5FE 100%
    );
    overflow: hidden;
    padding: 1rem;
}

/* Nubes */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.9;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 10%;
    animation: moveCloud 35s linear infinite;
}
.cloud-1::before {
    width: 100px;
    height: 80px;
    top: -40px;
    left: 30px;
}
.cloud-1::after {
    width: 70px;
    height: 60px;
    top: -30px;
    left: 90px;
}

.cloud-2 {
    width: 160px;
    height: 50px;
    top: 25%;
    animation: moveCloudReverse 40s linear infinite;
    opacity: 0.7;
}
.cloud-2::before {
    width: 80px;
    height: 60px;
    top: -35px;
    left: 20px;
}
.cloud-2::after {
    width: 60px;
    height: 50px;
    top: -25px;
    left: 70px;
}

.cloud-3 {
    width: 250px;
    height: 70px;
    top: 60%;
    animation: moveCloud 45s linear infinite;
    animation-delay: -10s;
    opacity: 0.6;
}
.cloud-3::before {
    width: 120px;
    height: 90px;
    top: -50px;
    left: 40px;
}
.cloud-3::after {
    width: 80px;
    height: 70px;
    top: -35px;
    left: 120px;
}

.cloud-4 {
    width: 140px;
    height: 45px;
    top: 40%;
    animation: moveCloudReverse 50s linear infinite;
    animation-delay: -15s;
    opacity: 0.5;
}
.cloud-4::before {
    width: 70px;
    height: 55px;
    top: -30px;
    left: 15px;
}
.cloud-4::after {
    width: 50px;
    height: 40px;
    top: -20px;
    left: 55px;
}

.cloud-5 {
    width: 180px;
    height: 55px;
    top: 75%;
    animation: moveCloud 38s linear infinite;
    animation-delay: -20s;
    opacity: 0.4;
}
.cloud-5::before {
    width: 90px;
    height: 70px;
    top: -40px;
    left: 25px;
}
.cloud-5::after {
    width: 65px;
    height: 55px;
    top: -28px;
    left: 80px;
}

/* Estrellas */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    color: var(--toy-yellow);
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    font-size: var(--size);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

/* Contenido Hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

.hero-ts-logo {
    max-width: 80%;
    width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    margin-bottom: -1rem;
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 90%;
    width: 450px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Buzz-Woody imagen de fondo con degradado */
.hero-bg-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

.hero-characters {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-top: 0.5rem;
}

.scroll-indicator {
    margin-top: 2rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.7;
}

/* ============================
   DECORACIONES FLOTANTES (PERSONAJES)
   ============================ */
.character-float {
    position: absolute;
    z-index: 12;
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2));
    pointer-events: none;
}

.character-left {
    left: 0;
    top: 10%;
    animation: float 4.5s ease-in-out infinite;
}

.character-right {
    right: 0;
    top: 50%;
    animation: floatSlow 5.5s ease-in-out infinite;
}

/* Separador Inferior */
.section-divider {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.divider-soldados {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

/* Ajustes Responsive para decoraciones */
@media (max-width: 768px) {
    .character-float {
        max-width: 90px;
        opacity: 0.9;
    }
    .character-left {
        left: -15px;
    }
    .character-right {
        right: -15px;
    }
}

/* ============================
   SECCIÓN 2: MENSAJE EMOTIVO
   ============================ */
.message-section {
    position: relative;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, #E1F5FE 0%, var(--cream) 50%, #FFF3E0 100%);
}

.section-container {
    width: 65%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

@media (max-width: 500px) {
    .section-container {
        width: 85%;
    }
}

/* Bloques de juguete */
.toy-blocks-deco {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.toy-block {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-fun);
    font-size: 1.5rem;
    color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2), var(--shadow-soft);
    animation: rotateBlock 3s ease-in-out infinite;
}

@media (max-width: 400px) {
    .toy-block {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

.block-d {
    background: var(--toy-red);
    animation-delay: 0s;
}
.block-a {
    background: var(--toy-green);
    animation-delay: 0.3s;
}
.block-n {
    background: var(--sky-blue);
    animation-delay: 0.6s;
}
.block-y {
    background: var(--toy-yellow);
    color: var(--navy);
    animation-delay: 0.9s;
}
.block-s {
    background: var(--toy-red-dark);
    animation-delay: 1.2s;
}
.block-h {
    background: var(--toy-green-dark);
    animation-delay: 1.5s;
}
.block-a2 {
    background: var(--sky-dark);
    animation-delay: 1.8s;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 3px solid var(--toy-yellow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--toy-red), var(--toy-yellow), var(--toy-green), var(--sky-blue), var(--toy-red));
    background-size: 200% 100%;
    animation: gradient-move 4s linear infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.message-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-name {
    color: var(--toy-red);
    font-family: var(--font-title);
    font-size: 1.4rem;
}

.message-quote {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--text-blue);
    margin-top: 1.5rem;
}

/* ============================
   SECCIÓN 3: CUENTA REGRESIVA
   ============================ */
.countdown-section {
    position: relative;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--navy) 0%, #283593 50%, #1565C0 100%);
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.countdown-section .section-title {
    color: var(--toy-yellow);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.title-star {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap; /* Fuerza a estar en una sola línea */
}

.countdown-item {
    text-align: center;
    min-width: 50px;
    flex: 1;
}

.countdown-number {
    font-family: var(--font-fun);
    font-size: 2.2rem;
    color: var(--white);
    text-shadow: 2px 2px 0 var(--toy-red);
    line-height: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.4rem 0.2rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.countdown-label {
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: var(--toy-yellow);
    margin-top: 0.5rem;
}

.countdown-separator {
    font-family: var(--font-fun);
    font-size: 1.8rem;
    color: var(--toy-yellow);
    animation: pulse 1s ease-in-out infinite;
    align-self: flex-start;
    padding-top: 0.4rem;
}

/* ============================
   SECCIÓN 4: DETALLES DEL EVENTO
   ============================ */
.details-section {
    position: relative;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, #FFF3E0 0%, var(--cream) 50%, #E1F5FE 100%);
}

.details-section .section-title {
    color: var(--text-blue);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border-bottom: 4px solid var(--toy-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.detail-card-wide {
    grid-column: 1 / -1;
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.detail-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--toy-red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.detail-highlight {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--text-blue);
    margin: 0.3rem 0;
}

.detail-address {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Botones de Acción */
.action-btns-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 3px solid var(--toy-yellow);
}

.calendar-btn {
    background: linear-gradient(135deg, var(--text-blue), var(--sky-dark));
    box-shadow: 0 4px 15px rgba(5, 66, 138, 0.4);
}

.map-btn {
    background: linear-gradient(135deg, var(--toy-green), var(--toy-green-dark));
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.calendar-btn:hover {
    box-shadow: 0 6px 25px rgba(5, 66, 138, 0.5);
}

.map-btn:hover {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.action-btn-icon {
    font-size: 1.5rem;
}

/* Imagen Volando */
.volando-container {
    text-align: center;
    margin-top: 2.5rem;
}

.volando-img {
    max-width: 400px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.15));
    animation: float 5s ease-in-out infinite;
}

/* ============================
   SECCIÓN 5: RSVP
   ============================ */
.rsvp-section {
    position: relative;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #E1F5FE 100%);
}

.rsvp-section .section-title {
    color: var(--text-blue);
}

.rsvp-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 3px solid var(--toy-green);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--text-blue);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--toy-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background: var(--white);
}

.form-group input::placeholder {
    color: #BDBDBD;
}

.rsvp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    margin-top: 0.5rem;
}

.rsvp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.rsvp-btn:active {
    transform: translateY(0);
}

.whatsapp-icon svg {
    display: block;
}

/* ============================
   SECCIÓN 6: FOOTER
   ============================ */
.footer {
    position: relative;
    padding: 3rem 1rem 0; /* Padding bottom 0 para que la imagen quede al ras */
    background: linear-gradient(180deg, #81D4FA 0%, #4FC3F7 40%, #29B6F6 100%);
    overflow: hidden;
}

.footer-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud-bottom-1 {
    position: absolute;
    width: 300px;
    height: 80px;
    background: rgba(255,255,255,0.4);
    border-radius: 100px;
    bottom: 20%;
    animation: moveCloud 50s linear infinite;
}
.cloud-bottom-1::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 100px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    top: -50px;
    left: 50px;
}

.cloud-bottom-2 {
    position: absolute;
    width: 200px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    border-radius: 100px;
    bottom: 40%;
    animation: moveCloudReverse 45s linear infinite;
}
.cloud-bottom-2::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 80px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    top: -40px;
    left: 30px;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.footer-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--white);
    text-shadow: 3px 3px 0 var(--toy-red);
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}

.footer-stars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-stars span {
    animation: twinkle 2s ease-in-out infinite;
}
.footer-stars span:nth-child(2) { animation-delay: 0.4s; }
.footer-stars span:nth-child(3) { animation-delay: 0.8s; }
.footer-stars span:nth-child(4) { animation-delay: 1.2s; }
.footer-stars span:nth-child(5) { animation-delay: 1.6s; }

/* Imagen Grupal */
.grupal-container {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 2.5rem;
    line-height: 0; /* Previene espacio extra debajo de la imagen */
}

.grupal-img {
    max-width: 700px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.15));
    display: block;
    margin: 0 auto;
}

/* ============================
   BOTÓN DE MÚSICA
   ============================ */
.music-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, var(--toy-red), var(--toy-red-dark));
    color: var(--white);
    border: 3px solid var(--toy-yellow);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(225, 0, 36, 0.4);
    transition: all 0.3s ease;
    animation: pulse 3s ease-in-out infinite;
}

.music-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(225, 0, 36, 0.5);
}

.music-btn.playing {
    background: linear-gradient(135deg, var(--toy-green), var(--toy-green-dark));
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    animation: none;
}

.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.music-icon svg {
    fill: currentColor;
}

.music-btn.playing .icon-play { display: none !important; }
.music-btn.playing .icon-stop { display: block !important; }
.music-btn:not(.playing) .icon-play { display: block; }
.music-btn:not(.playing) .icon-stop { display: none; }

.music-btn.playing .music-icon {
    animation: pulse 1s ease-in-out infinite;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .age-number {
        font-size: 2.5rem;
    }

    .age-text {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown-number {
        font-size: 3rem;
        padding: 0.4rem 0.8rem;
    }

    .countdown-item {
        min-width: 70px;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .message-card {
        padding: 2rem 1.5rem;
    }

    .message-text {
        font-size: 1.05rem;
    }

    .message-quote {
        font-size: 1.3rem;
    }

    .detail-highlight {
        font-size: 1.3rem;
    }

    .rsvp-card {
        padding: 2rem 1.5rem;
    }

    .toy-block {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .toy-deco-left,
    .toy-deco-right {
        display: none;
    }

    .footer-title {
        font-size: 2.2rem;
    }

    .music-text {
        display: none;
    }

    .music-btn {
        padding: 0.8rem;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .countdown-grid {
        gap: 0.5rem;
    }

    .countdown-number {
        font-size: 2.2rem;
        min-width: auto;
        padding: 0.3rem 0.6rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-label {
        font-size: 0.85rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
        padding-top: 0.4rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-card-wide {
        grid-column: 1;
    }

    .calendar-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .badge {
        width: 65px;
        height: 65px;
    }

    .badge span {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .music-btn,
    .scroll-indicator,
    .clouds,
    .stars-container,
    .footer-clouds {
        display: none !important;
    }
}
