* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #001a33, #003366);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

.contenedor {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.cielo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

/* =========================================
   Z-INDEX HIERARCHY
   ========================================= */
.lights { z-index: 1; }
.snowflakes { z-index: 2; }
.christmas-tree, .gifts { z-index: 5; }
.avion { z-index: 10; }
.message-container, .countdown { z-index: 50; }
.footer { z-index: 60; }
.music-btn { z-index: 100; }

/* Avión */
.avion {
    position: absolute;
    right: 20px;
    top: 40%;
    transform: translateY(-50%);
    width: 500px;
    height: auto;
    animation: fly 15s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    pointer-events: none;
}

@keyframes fly {
    0% {
        left: -500px;
        transform: translateY(-50%) rotate(0deg);
    }
    40% {
        transform: translateY(-60%) rotate(5deg);
    }
    100% {
        left: 110%;
        transform: translateY(-50%) rotate(0deg);
    }
}

/* Mensaje principal */
.message-container {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 20, 40, 0.75);
    padding: 20px 30px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 650px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-30px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.greeting {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3.5rem;
    color: #ffcc00;
    margin-bottom: 10px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #ffcc00, 3px 3px 5px rgba(0, 0, 0, 0.7); }
    to { text-shadow: 0 0 20px #ff9900, 3px 3px 5px rgba(0, 0, 0, 0.7); }
}

.wishes {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #e6f7ff;
}

.santa-btn {
    background: linear-gradient(to bottom, #d32f2f, #b71c1c);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 10px;
}

.santa-btn:hover {
    background: linear-gradient(to bottom, #ff5252, #d32f2f);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.santa-message {
    margin-top: 10px;
    font-size: 1rem;
    color: #ffcc00;
    font-weight: 600;
    min-height: 25px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Árbol de Navidad */
.christmas-tree {
    position: absolute;
    bottom: 100px;
    left: 5%;
    transform: scale(0.9);
    transform-origin: bottom center;
}

.tree {
    position: relative;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #0a5c0a;
    margin-top: 50px;
}

.tree::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 110px solid #0e7e0e;
    top: -90px;
    left: -60px;
}

.tree::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 80px solid #12a012;
    top: -150px;
    left: -40px;
}

.star {
    position: absolute;
    top: -190px;
    left: -25px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid #ffcc00;
    transform: rotate(180deg);
    animation: twinkle 1.5s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.7; transform: rotate(180deg) scale(1); }
    100% { opacity: 1; transform: rotate(180deg) scale(1.2); }
}

.lights {
    position: absolute;
    width: 100%;
    height: 100%;
}

.lights::before, .lights::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: lightFlash 2s infinite;
}

.lights::before {
    background: #ff0000;
    top: 40px;
    left: -30px;
    animation-delay: 0s;
}

.lights::after {
    background: #00ff00;
    top: 70px;
    left: 10px;
    animation-delay: 0.5s;
}

@keyframes lightFlash {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.baubles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bauble {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: swing 3s infinite ease-in-out;
}

.bauble.red { background: #ff0000; top: 50px; left: -50px; }
.bauble.blue { background: #0066ff; top: 80px; left: 20px; }
.bauble.yellow { background: #ffff00; top: 100px; left: -30px; }
.bauble.green { background: #00cc00; top: 120px; left: 10px; }

@keyframes swing {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Regalos */
.gifts {
    position: absolute;
    bottom: 100px;
    right: 5%;
    display: flex;
    gap: 20px;
    transform: scale(0.9);
    transform-origin: bottom center;
}

.gift {
    width: 80px;
    height: 80px;
    position: relative;
    animation: bounce 3s infinite;
}

.red-gift { background: linear-gradient(to bottom, #ff3333, #cc0000); animation-delay: 0s; }
.green-gift { background: linear-gradient(to bottom, #33cc33, #009900); animation-delay: 0.3s; }
.blue-gift { background: linear-gradient(to bottom, #3399ff, #0066cc); animation-delay: 0.6s; }

.ribbon {
    position: absolute;
    width: 100%;
    height: 20px;
    background: #ffcc00;
    top: 50%;
    transform: translateY(-50%);
}

.ribbon::before, .ribbon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffcc00;
    border-radius: 50%;
    top: -10px;
}
.ribbon::before { left: 30px; }
.ribbon::after { right: 30px; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Copos de nieve */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Contador regresivo */
.countdown {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 30, 60, 0.75);
    padding: 15px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    min-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 50;
}

.countdown h3 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

.countdown-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-size: 2rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 60px;
    color: #ffcc00;
    font-family: 'Poppins', monospace;
}

.countdown-item p {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #0e0e0e; /* color de informacion*/
}

/* Footer */
.footer {
    position: relative;
    background: linear-gradient(to right, #001a33, #003366);
    padding: 15px 20px;
    text-align: center;
    border-top: 2px solid #ffcc00;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #e6f7ff;
}

.heart {
    color: #ff3333;
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Footer - Solo icono discreto */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #8cb3d9;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-size: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.linkedin-link:hover {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5; /* Color oficial de LinkedIn */
    transform: scale(1.1);
}

.linkedin-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

/* Texto que aparece solo al pasar el ratón */
.linkedin-link::after {
    content: 'LinkedIn';
    font-size: 0;
    transition: font-size 0.3s ease;
}

.linkedin-link:hover::after {
    content: 'LinkedIn';
    font-size: 0.8rem;
    margin-left: 8px;
    opacity: 0.8;
}
/* Botón de música */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 30, 60, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.music-btn:hover {
    background: rgba(0, 50, 100, 0.9);
    transform: scale(1.1);
}

/* ============================================= */
/* MEDIA QUERIES */
/* ============================================= */

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .avion {
        width: 150px !important;
        top: 20% !important;
    }
    
    .message-container {
        top: 20px !important;
        padding: 15px !important;
        width: 95% !important;
    }
    
    .countdown {
        top: auto !important;
        bottom: 20px !important;
        width: 95% !important;
        min-width: auto !important;
        transform: translateX(-50%) !important;
    }
    
    .christmas-tree, .gifts {
        display: none !important;
    }
    
    .greeting { font-size: 2rem !important; }
    .countdown-item span { font-size: 1.5rem !important; min-width: 40px !important; }
}

/* Tablets (481px a 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .avion { width: 250px !important; }
    
    .message-container { top: 5% !important; }
    
    .countdown {
        top: 55% !important;
        min-width: 80% !important;
    }
    
    .christmas-tree {
        left: -20px !important;
        bottom: 80px !important;
        transform: scale(0.6) !important;
    }
    
    .gifts {
        right: -20px !important;
        bottom: 80px !important;
        transform: scale(0.6) !important;
    }
}

/* Laptops pequeñas (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .countdown {
        top: 60% !important;
        padding: 10px 20px !important;
    }
    
    .message-container { top: 5% !important; }
    
    .christmas-tree, .gifts {
        bottom: 90px !important;
        transform: scale(0.75) !important;
    }
    
    .avion { width: 350px !important; }
}

/* Pantallas apaisadas/Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .christmas-tree, .gifts { display: none !important; }
    .message-container { top: 10px !important; padding: 5px 15px !important; }
    .countdown { top: auto !important; bottom: 10px !important; transform: translateX(-50%) !important; }
    .avion { width: 120px !important; top: 10% !important; }
    .greeting { font-size: 1.5rem !important; margin: 0 !important; }
    .santa-btn { padding: 5px 15px !important; }

}
