/* navidad.css · Estilos navideños compartidos · Maderas Plásticas */

@keyframes fallCap {
    0% { transform: translateY(-20px) rotate(0deg); }
    100% { transform: translateY(105vh) rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

.animate-float { animation: floatAnim 6s ease-in-out infinite; }
.animate-glow { animation: pulseGlow 8s ease-in-out infinite; }
.animate-fade-in { animation: fadeInUp 0.35s ease-out both; }

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.christmas-string {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.25) 50px, rgba(255,255,255,0.25) 51px);
    z-index: 50;
    pointer-events: none;
}

.xmas-bulb {
    position: absolute;
    width: 14px;
    height: 18px;
    border-radius: 50%;
    animation: twinkle 1.2s infinite ease-in-out;
}

/* Sin la línea blanca del cordón: solo los foquitos parpadeando */
.christmas-string { background: none !important; }
.xmas-bulb:nth-child(2n) { animation-delay: 0.4s; }
.xmas-bulb:nth-child(3n) { animation-delay: 0.8s; }
.xmas-bulb:nth-child(4n) { animation-delay: 0.2s; }
.xmas-bulb:nth-child(5n) { animation-delay: 0.6s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 10px #fbbf24); }
}

/* ===== MARCO NAVIDEÑO: contorno anclado a la página (inicia arriba, cierra al final) ===== */
body { position: relative; }

.navidad-marco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 35;
    animation: marcoGlow 3.5s ease-in-out infinite;
}

.navidad-marco .marco-tira { position: absolute; }

.marco-top {
    top: 0; left: 0; right: 0;
    height: clamp(42px, 5vw, 85px);
    background: url('img_navidad/marco_top_tile.png') top center / auto 100% repeat-x;
}

.marco-bottom {
    bottom: 0; left: 0; right: 0;
    height: clamp(42px, 5vw, 85px);
    background: url('img_navidad/marco_bottom_tile.png') bottom center / auto 100% repeat-x;
}

.marco-left {
    top: 0; bottom: 0; left: 0;
    width: clamp(42px, 5vw, 85px);
    background: url('img_navidad/marco_left.png') top left / 100% auto repeat-y;
}

.marco-right {
    top: 0; bottom: 0; right: 0;
    width: clamp(42px, 5vw, 85px);
    background: url('img_navidad/marco_right.png') top right / 100% auto repeat-y;
}

@keyframes marcoGlow {
    0%, 100% { filter: brightness(0.9) saturate(1); }
    50% { filter: brightness(1.35) saturate(1.35) drop-shadow(0 0 22px rgba(251, 191, 36, 0.45)); }
}

/* ===== PINO DE FONDO: con halo de luz pulsante ===== */
.navidad-pino {
    position: fixed;
    inset: 0;
    background:
        url('img_navidad/pino.jpg') center bottom / contain no-repeat,
        radial-gradient(ellipse 55% 45% at 50% 62%, rgba(253, 224, 71, 0.16), rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    animation: pinoGlow 6s ease-in-out infinite;
}

@keyframes pinoGlow {
    0%, 100% { opacity: 0.14; }
    50% { opacity: 0.22; }
}

/* ===== ADORNOS COLGANTES (regalo y botella que se caen y vuelven a colgarse) ===== */
.orn-hang {
    position: fixed;
    top: 0;
    z-index: 38;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: sway 4s ease-in-out infinite;
}

.orn-hang .cuerda {
    width: 2px;
    background: linear-gradient(rgba(255, 255, 255, 0.5), #fbbf24);
}

.orn-hang img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.6));
}

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

.orn-fall {
    position: fixed;
    top: 0;
    z-index: 38;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: ornDrop 2.6s cubic-bezier(0.5, 0, 0.9, 0.6) forwards;
}

.orn-fall img { width: 110px; height: auto; filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.6)); }

@keyframes ornDrop {
    to { transform: translateY(110vh) rotate(420deg); opacity: 0.3; }
}
