/* ================================================================
   navidad-theme.css — Capa estacional de Navidad (SVG, sin emojis)
   Totalmente aditiva: todas las reglas están condicionadas a
   body.confia-navidad (ver core_confia_is_navidad_active() en
   core-confia.php). Si esa clase no está presente —fuera de
   temporada, o con el modo forzado a "off" desde Header → Config—
   esta hoja no cambia absolutamente nada del diseño por defecto.
   Construida en paralelo a halloween-theme.css, mismos puntos de
   anclaje (header, logo, nav, footer, login/otp/bienvenida, hero de
   cada módulo), con paleta e iconografía navideña.
   ================================================================ */

/* ── Oculta los canvas originales (azules) de cada pantalla para
   que los reemplace el canvas de nieve de navidad-particles.js ── */
body.confia-navidad #confiaAmbientParticles,
body.confia-navidad .confia-login-scope #clogCanvas,
body.confia-navidad .confia-otp-scope #cotpCanvas,
body.confia-navidad .confia-welcome-scope #cwelCanvas {
    display: none !important;
}

/* Brillo suave y continuo sobre los canvas de nieve
   (login, otp, bienvenida y fondo ambiental) */
body.confia-navidad .clog-canvas,
body.confia-navidad .cotp-canvas,
body.confia-navidad .cwel-canvas,
body.confia-navidad #confiaNavidadCanvas {
    animation: confia-navidad-canvas-glow 7s ease-in-out infinite;
}

@keyframes confia-navidad-canvas-glow {
    0%, 100% { filter: none; }
    50%      { filter: brightness(1.08) saturate(1.1); }
}

/* ── Brillo/destello sutil en los títulos (sin cambiar la
   tipografía original) ──────────────────────────────────────────── */
body.confia-navidad .confia-banner-scope .confia-banner__title,
body.confia-navidad .confia-welcome-scope .cwel-title,
body.confia-navidad .confia-login-scope .clog-title,
body.confia-navidad .confia-otp-scope .cotp-title {
    animation: confia-navidad-title-glow 5s ease-in-out infinite;
}

@keyframes confia-navidad-title-glow {
    0%, 100% { text-shadow: none; }
    50%      { text-shadow: 0 0 14px rgba(232, 181, 74, 0.55), 0 0 2px rgba(200, 32, 47, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
    body.confia-navidad .clog-canvas,
    body.confia-navidad .cotp-canvas,
    body.confia-navidad .cwel-canvas,
    body.confia-navidad #confiaNavidadCanvas,
    body.confia-navidad .confia-banner-scope .confia-banner__title,
    body.confia-navidad .confia-welcome-scope .cwel-title,
    body.confia-navidad .confia-login-scope .clog-title,
    body.confia-navidad .confia-otp-scope .cotp-title,
    body.confia-navidad .confia-logo::before,
    body.confia-navidad .confia-logo::after {
        animation: none !important;
    }
}

/* ── Guirnalda de luces reutilizable (bajo el header; esquinas de
   tarjetas y hero usan un copo de nieve en vez de telaraña) ────── */
body.confia-navidad .confia-header::before,
body.confia-navidad .confia-header::after,
body.confia-navidad .confia-login-scope .clog-card::before,
body.confia-navidad .confia-otp-scope .cotp-card::before,
body.confia-navidad .confia-welcome-scope .cwel-hero::before,
body.confia-navidad .confia-welcome-scope .cwel-hero::after {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* Header: esquinas con copos de nieve + guirnalda de luces abajo */
body.confia-navidad .confia-header {
    position: relative;
    overflow: visible;
}

body.confia-navidad .confia-header::before,
body.confia-navidad .confia-header::after {
    top: 8px;
    width: 46px;
    height: 46px;
    opacity: 0.7;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.75)' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

body.confia-navidad .confia-header::before { left: 12px; }
body.confia-navidad .confia-header::after  { right: 12px; }

/* Brillo dorado/rojo arriba y abajo del header, para enmarcarlo */
body.confia-navidad .confia-header {
    box-shadow: inset 0 3px 0 0 rgba(232, 181, 74, 0.55), inset 0 -3px 0 0 rgba(200, 32, 47, 0.3);
}

/* Esferas (bolas de Navidad) colgando junto al logo */
body.confia-navidad .confia-logo { position: relative; }

body.confia-navidad .confia-logo::before {
    content: '';
    position: absolute;
    left: -26px;
    top: -34px;
    width: 22px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 22px 40px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 2;
    transform-origin: top center;
    animation: confia-navidad-hang 4.5s ease-in-out infinite;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46'%3E%3Cline x1='20' y1='0' x2='20' y2='12' stroke='rgba(255,255,255,0.5)' stroke-width='1'/%3E%3Cg transform='translate(0,12)'%3E%3Crect x='15' y='0' width='10' height='7' rx='1.5' fill='%23e8b54a'/%3E%3Ccircle cx='20' cy='26' r='18' fill='%23c8202f'/%3E%3Cpath d='M3 24c6 4 28 4 34 0' stroke='rgba(255,255,255,0.55)' stroke-width='2.5' fill='none'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes confia-navidad-hang {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

/* Gorro de Santa sobre la esquina del logo — mismo SVG exacto que la
   guía del usuario (viewBox 0 0 40 30: cono rojo + banda blanca +
   pompón blanco), sin recrear la forma. */
body.confia-navidad .confia-logo::after {
    content: '';
    position: absolute;
    right: -22px;
    top: -14px;
    width: 26px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.95;
    pointer-events: none;
    z-index: 2;
    transform: rotate(-14deg);
    animation: confia-navidad-sway 3.6s ease-in-out infinite;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M6 24 C10 10 22 2 34 8 C30 12 28 18 28 24z' fill='%23c8202f'/%3E%3Crect x='3' y='21' width='28' height='7' rx='3.5' fill='%23fff'/%3E%3Ccircle cx='35' cy='9' r='4' fill='%23fff'/%3E%3C/svg%3E");
}

@keyframes confia-navidad-sway {
    0%, 100% { transform: rotate(-10deg); }
    50%      { transform: rotate(2deg); }
}

/* Estrella al final del menú de navegación */
body.confia-navidad .confia-nav-wrapper { position: relative; }

body.confia-navidad .confia-nav-wrapper::after {
    content: '';
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
    pointer-events: none;
    z-index: 2;
    animation: confia-navidad-twinkle 2.6s ease-in-out infinite;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,212,122,0.95)' d='M12 2l2.6 6.3 6.8.5-5.2 4.4 1.6 6.6L12 16.3l-5.8 3.5 1.6-6.6L2.6 8.8l6.8-.5z'/%3E%3C/svg%3E");
}

@keyframes confia-navidad-twinkle {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(0.85); }
    50%      { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

/* Campana junto a las acciones del header (buscador/notificaciones/usuario) */
body.confia-navidad .confia-header-actions { position: relative; }

body.confia-navidad .confia-header-actions::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
    pointer-events: none;
    z-index: 2;
    animation: confia-navidad-sway 3.2s ease-in-out infinite reverse;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='14' r='7' fill='rgba(232,181,74,0.95)'/%3E%3Ccircle cx='12' cy='19.5' r='1.6' fill='rgba(80,60,20,0.8)'/%3E%3Cpath d='M9 4.5c1-2 5-2 6 0' stroke='rgba(255,255,255,0.85)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

/* La barra blanca debajo del item de menú activo/hover → rojo navideño */
body.confia-navidad #core-confia .confia-header .confia-nav > .confia-nav-item > a::before {
    background: #c8202f !important;
    box-shadow: 0 0 6px rgba(200, 32, 47, 0.85);
}

@media (max-width: 767px) {
    body.confia-navidad .confia-header::before,
    body.confia-navidad .confia-header::after {
        width: 32px;
        height: 32px;
    }
    body.confia-navidad .confia-logo::after,
    body.confia-navidad .confia-logo::before,
    body.confia-navidad .confia-nav-wrapper::after,
    body.confia-navidad .confia-header-actions::before {
        display: none;
    }
}

/* ── Copo de nieve en la tarjeta de login y en la de OTP ────────── */
body.confia-navidad .confia-login-scope .clog-card,
body.confia-navidad .confia-otp-scope .cotp-card {
    position: relative;
    overflow: visible;
}

body.confia-navidad .confia-login-scope .clog-card::before,
body.confia-navidad .confia-otp-scope .cotp-card::before {
    top: -18px;
    left: -18px;
    width: 64px;
    height: 64px;
    opacity: 0.6;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(60,90,150,0.5)' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

body.confia-navidad.dark-mode .confia-login-scope .clog-card::before,
body.confia-navidad.dark-mode .confia-otp-scope .cotp-card::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(220,235,255,0.45)' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Pantalla de Bienvenida: copos de nieve en las esquinas del hero ─ */
body.confia-navidad .confia-welcome-scope .cwel-hero {
    position: relative;
    overflow: visible;
}

body.confia-navidad .confia-welcome-scope .cwel-hero::before,
body.confia-navidad .confia-welcome-scope .cwel-hero::after {
    top: 6px;
    width: 70px;
    height: 70px;
    opacity: 0.55;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

body.confia-navidad .confia-welcome-scope .cwel-hero::before { left: 6px; }
body.confia-navidad .confia-welcome-scope .cwel-hero::after  { right: 6px; }

body.confia-navidad .confia-welcome-scope .cwel-content {
    position: relative;
}

/* Arbolito + regalo pequeños bajo el contenido del hero */
body.confia-navidad .confia-welcome-scope .cwel-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.85;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 22'%3E%3Cg transform='translate(0,0) scale(0.18)'%3E%3Crect x='44' y='110' width='12' height='18' fill='%237a4a22'/%3E%3Cpath d='M50 14 80 54H66L90 86H72L98 114H2L28 86H10L34 54H20z' fill='%231f6b45'/%3E%3C/g%3E%3Cg transform='translate(32,4) scale(0.32)'%3E%3Crect x='6' y='22' width='48' height='36' rx='2' fill='%23c8202f'/%3E%3Crect x='3' y='15' width='54' height='10' rx='2' fill='%23c8202f'/%3E%3Crect x='26' y='15' width='8' height='43' fill='%23e8b54a'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Footer: guirnalda, estrella y acento dorado/rojo ───────────── */
body.confia-navidad #confia-footer-wrap {
    position: relative;
    overflow: visible;
}

body.confia-navidad .cft-footer {
    position: relative;
}

body.confia-navidad .cft-footer::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46'%3E%3Crect x='15' y='0' width='10' height='7' rx='1.5' fill='%23e8b54a'/%3E%3Ccircle cx='20' cy='26' r='18' fill='%231f6b45'/%3E%3Cpath d='M3 24c6 4 28 4 34 0' stroke='rgba(255,255,255,0.55)' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
}

body.confia-navidad .cft-footer::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 28px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

body.confia-navidad .cft-bottom {
    position: relative;
}

body.confia-navidad .cft-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(232, 181, 74, 0.85), transparent);
    pointer-events: none;
}

body.confia-navidad .cft-badge-dot {
    background: #c8202f !important;
    box-shadow: 0 0 6px rgba(200, 32, 47, 0.7) !important;
}

/* Brillo dorado arriba del footer, a juego con el del header */
body.confia-navidad .cft-footer {
    box-shadow: inset 0 3px 0 0 rgba(232, 181, 74, 0.5);
}

/* Trineo que cruza volando la barra inferior del footer de vez en
   cuando. Mismo dibujo (3 renos + trineo + Santa) que el de la guía
   del usuario, reutilizado también por navidad-particles.js. */
body.confia-navidad .cft-bottom::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -8%;
    width: 56px;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50'%3E%3Cg transform='translate(110 0)' fill='rgba(255,255,255,0.9)'%3E%3Cellipse cx='12' cy='26' rx='11' ry='5'/%3E%3Cpath d='M4 28l-3 10M8 29l1 10M18 28l-2 10M21 27l4 9M21 24l6-10 4 0M27 14l-2-6M29 14l4-6' stroke='rgba(255,255,255,0.9)' stroke-width='2' fill='none'/%3E%3C/g%3E%3Cg transform='translate(140 4)' fill='rgba(255,255,255,0.9)'%3E%3Cellipse cx='12' cy='26' rx='11' ry='5'/%3E%3Cpath d='M4 28l-3 10M8 29l1 10M18 28l-2 10M21 27l4 9M21 24l6-10 4 0M27 14l-2-6M29 14l4-6' stroke='rgba(255,255,255,0.9)' stroke-width='2' fill='none'/%3E%3C/g%3E%3Cg transform='translate(170 0)' fill='rgba(255,255,255,0.9)'%3E%3Cellipse cx='12' cy='26' rx='11' ry='5'/%3E%3Cpath d='M4 28l-3 10M8 29l1 10M18 28l-2 10M21 27l4 9M21 24l6-10 4 0M27 14l-2-6M29 14l4-6' stroke='rgba(255,255,255,0.9)' stroke-width='2' fill='none'/%3E%3C/g%3E%3Cpath d='M108 26 C80 28 70 30 62 30' stroke='rgba(255,255,255,0.9)' stroke-width='1.2' fill='none'/%3E%3Cpath d='M14 22h46l-4 14H18z' fill='rgba(255,255,255,0.9)'/%3E%3Cpath d='M8 40h56c4 0 6-3 6-6' stroke='rgba(255,255,255,0.9)' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='34' cy='14' r='7' fill='rgba(255,255,255,0.9)'/%3E%3Cpath d='M28 10l8-8 6 6' fill='rgba(255,255,255,0.9)'/%3E%3C/svg%3E");
    animation: confia-navidad-sleigh-fly 15s linear infinite;
}

@keyframes confia-navidad-sleigh-fly {
    0%   { left: -8%; top: -6px;  opacity: 0; }
    5%   { opacity: 0.9; }
    45%  { top: -16px; }
    50%  { left: 102%; opacity: 0.9; }
    55%  { opacity: 0; }
    100% { left: 102%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    body.confia-navidad .confia-logo::before,
    body.confia-navidad .cft-bottom::after {
        animation: none;
        opacity: 0;
    }
}


/* ================================================================
   Extras tomados de la guía de diseño que subió el usuario
   ("Intranet Navidad con animaciones.zip"): guirnalda de luces
   en el header, nieve acumulada y chispas doradas en login/
   bienvenida, y una luna de invierno decorativa de fondo. No
   reemplazan nada existente, se agregan encima.
   ================================================================ */

/* ── Guirnalda de luces colgante bajo el header ─────────────────── */
.confia-navidad-garland {
    position: relative;
    z-index: 5;
    height: 46px;
    max-width: 1440px;
    margin: 0 auto;
    pointer-events: none;
    overflow: visible;
}

.confia-navidad-garland-string {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 20px;
}

.confia-navidad-garland-item {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confia-navidad-garland-item .thread {
    width: 1px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
}

.confia-navidad-garland-bulb {
    width: 10px;
    height: 14px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation-name: confia-navidad-bulb-blink;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes confia-navidad-bulb-blink {
    0%, 100% { opacity: 1; filter: brightness(1.15); }
    50%      { opacity: 0.4; filter: brightness(0.7); }
}

/* ── Nieve acumulada que se desplaza suavemente ─────────────────── */
.confia-navidad-snowdrift {
    position: absolute;
    width: 70%;
    height: 180px;
    border-radius: 50%;
    background: rgba(230, 240, 255, 0.16);
    filter: blur(36px);
    z-index: 1;
    pointer-events: none;
    animation-name: confia-navidad-drift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

body.dark-mode .confia-navidad-snowdrift {
    background: rgba(255, 212, 122, 0.12);
}

@keyframes confia-navidad-drift {
    from { transform: translateX(-12%); }
    to   { transform: translateX(12%); }
}

/* ── Chispas doradas que suben y se desvanecen (guirnalda viva) ─── */
.confia-navidad-sparkle {
    position: absolute;
    border-radius: 50%;
    background: #ffd47a;
    box-shadow: 0 0 8px #ffd47a;
    z-index: 2;
    pointer-events: none;
    animation-name: confia-navidad-sparkle-rise;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

@keyframes confia-navidad-sparkle-rise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    12%  { opacity: 1; }
    100% { transform: translateY(-380px) scale(.4); opacity: 0; }
}

/* ── Wash de fondo frío + luna de invierno decorativa
   en login, bienvenida y otp (mismo tratamiento en las 3) ──────── */
body.confia-navidad .confia-login-scope::before,
body.confia-navidad .confia-welcome-scope::before,
body.confia-navidad .confia-otp-scope::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1100px 520px at 50% 115%, rgba(43, 76, 156, 0.18), transparent 70%),
        radial-gradient(800px 500px at 85% -10%, rgba(31, 107, 69, 0.14), transparent 70%);
}

body.confia-navidad .confia-login-scope::after,
body.confia-navidad .confia-welcome-scope::after,
body.confia-navidad .confia-otp-scope::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 60px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ffffff, #e8eefb 60%, #c3d0e6);
    box-shadow: 0 0 60px 20px rgba(220, 230, 255, 0.3);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    body.confia-navidad .confia-login-scope::after,
    body.confia-navidad .confia-welcome-scope::after,
    body.confia-navidad .confia-otp-scope::after {
        width: 84px;
        height: 84px;
        top: 20px;
        right: 20px;
    }
}

/* Último renglón del título de Bienvenida, en rojo navideño */
body.confia-navidad .confia-welcome-scope .cwel-title-line:last-child span {
    color: #c8202f;
}

/* Botones de CTA: hover en rojo navideño, como en la guía */
body.confia-navidad .confia-welcome-scope .cwel-btn:hover {
    background: #c8202f !important;
    box-shadow: 0 14px 40px -8px rgba(200, 32, 47, 0.6) !important;
}

body.confia-navidad .confia-login-scope .clog-btn:hover {
    background: #c8202f !important;
}

/* Insignia "Temporada navideña · X días para Navidad" */
.confia-navidad-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: #1f6b45;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.confia-navidad-badge img {
    width: 18px;
    height: 18px;
    display: block;
}

/* Árboles y regalos anclados abajo, estilo "guía" */
.confia-navidad-tree,
.confia-navidad-gift {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.confia-navidad-tree img,
.confia-navidad-gift img {
    display: block;
    width: 100%;
    height: auto;
}

/* Estrellas grandes de fondo (acompañan a los árboles) */
.confia-navidad-star-big {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    animation: confia-navidad-flicker 3s infinite;
}

@keyframes confia-navidad-flicker {
    0%, 100% { opacity: 1; }
    20%      { opacity: .7; }
    22%      { opacity: 1; }
    55%      { opacity: .8; }
    60%      { opacity: .55; }
    64%      { opacity: 1; }
}

/* Renos/trineo volando (login/bienvenida) */
.confia-navidad-sleigh {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    animation-name: confia-navidad-sleigh-cross;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.confia-navidad-sleigh img {
    display: block;
}

@keyframes confia-navidad-sleigh-cross {
    0%   { left: -10%; transform: translateY(0); }
    25%  { transform: translateY(-20px); }
    50%  { transform: translateY(8px); }
    75%  { transform: translateY(-12px); }
    100% { left: 108%; transform: translateY(0); }
}

/* Esferas (bolas de Navidad) que cuelgan de un hilo y se balancean */
.confia-navidad-ornament-drop {
    position: absolute;
    top: 0;
    z-index: 5;
    pointer-events: none;
    transform-origin: top center;
    animation-name: confia-navidad-drop-swing;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.confia-navidad-ornament-drop .thread-long {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 900px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
}

@keyframes confia-navidad-drop-swing {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

@media (max-width: 767px) {
    body.confia-navidad .confia-navidad-badge,
    .confia-navidad-tree,
    .confia-navidad-gift,
    .confia-navidad-star-big,
    .confia-navidad-sleigh,
    .confia-navidad-ornament-drop {
        transform: scale(0.75);
        transform-origin: bottom center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .confia-navidad-garland-bulb,
    .confia-navidad-snowdrift,
    .confia-navidad-sparkle,
    .confia-navidad-star-big,
    .confia-navidad-sleigh,
    .confia-navidad-sleigh img,
    .confia-navidad-ornament-drop {
        animation: none !important;
    }
    .confia-navidad-sleigh {
        display: none !important;
    }
}

/* ================================================================
   Pantalla "Inicio" (dashboard real: header + banner + noticias).
   Sigue agregando, no reemplaza nada existente.
   ================================================================ */

/* Gorro de Santa sobre la foto/iniciales de perfil en el header.
   Mismo SVG y mismas medidas/rotación exactas que el gorro sobre el
   avatar en la guía del usuario (viewBox 40x30, 32x24, rotate(-14deg)).
   ::before no se dibuja sobre elementos reemplazados como <img>, por
   eso se ancla al wrapper (siempre un <div>), que ya tiene
   position:relative, igual que en halloween-theme.css. */
body.confia-navidad .confia-user-wrapper::before {
    content: '';
    position: absolute;
    left: 2px;
    top: -15px;
    width: 32px;
    height: 24px;
    transform: rotate(-14deg);
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 3;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M6 24 C10 10 22 2 34 8 C30 12 28 18 28 24z' fill='%23c8202f'/%3E%3Crect x='3' y='21' width='28' height='7' rx='3.5' fill='%23fff'/%3E%3Ccircle cx='35' cy='9' r='4' fill='%23fff'/%3E%3C/svg%3E");
}

/* Copo de nieve en la tarjeta de saludo (confia_banner) */
body.confia-navidad .confia-banner-scope {
    position: relative;
}

body.confia-navidad .confia-banner-scope::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Estrella en la cabecera oscura de "Noticias / Cumpleaños / ..." */
body.confia-navidad .cpc-panel-head::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 14px;
    width: 34px;
    height: 34px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,212,122,0.9)' d='M12 2l2.6 6.3 6.8.5-5.2 4.4 1.6 6.6L12 16.3l-5.8 3.5 1.6-6.6L2.6 8.8l6.8-.5z'/%3E%3C/svg%3E");
}

/* Tipografía "Noticias" navideña, como en la guía */
body.confia-navidad .confia-portada-corta-scope .confia-noticias-header h2 {
    font-family: 'Mountains of Christmas', cursive !important;
    font-weight: 700 !important;
    font-size: 2.3rem !important;
    letter-spacing: .01em !important;
    color: #ffd47a !important;
    text-shadow: 0 2px 0 #c8202f, 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

body.confia-navidad .confia-portada-corta-scope .confia-noticias-header h2 svg {
    color: #ffd47a !important;
}

/* Copo de nieve pequeño en la esquina de cada tarjeta de noticia */
body.confia-navidad .confia-noticia-card {
    position: relative !important;
}

body.confia-navidad .confia-noticia-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Ancla correctamente la nieve/chispas/esferas-cayendo inyectadas
   por decorateDashboard() en #main-content (presente en TODAS las
   páginas, no solo en Inicio). */
body.confia-navidad #main-content {
    position: relative;
}

/* ================================================================
   Resto de "banners"/hero de otras páginas (Misión-Visión,
   Organigrama, Directorio, Documentos, Feriados, Buzón, Perfil,
   Eventos, Privilegios, Centro de Soporte, Diccionario, Beneficios):
   mismo tratamiento que ya tenía [confia_banner] — copo de nieve en
   la esquina + brillo automático en el título. No toca nada más.
   ================================================================ */
body.confia-navidad .cmv-hero,
body.confia-navidad .cog-banner,
body.confia-navidad .cdfw-header,
body.confia-navidad .cdb-banner,
body.confia-navidad .cfh-hero,
body.confia-navidad .cbz-hero,
body.confia-navidad .cbza-hero,
body.confia-navidad .cperf-hero,
body.confia-navidad .cevall-page-hero,
body.confia-navidad .cpriv-hero,
body.confia-navidad .csup-hero,
body.confia-navidad .cdic-hero,
body.confia-navidad .cbe-hero {
    position: relative;
}

body.confia-navidad .cmv-hero__title,
body.confia-navidad .cog-banner__title,
body.confia-navidad .cdfw-header-inner h1,
body.confia-navidad .cdb-banner__title,
body.confia-navidad .cfh-hero-title,
body.confia-navidad .cbz-hero-title,
body.confia-navidad .cbza-hero-title,
body.confia-navidad .cperf-hero-name,
body.confia-navidad .cevall-page-hero__titulo,
body.confia-navidad .cpriv-hero-title,
body.confia-navidad .csup-hero-title,
body.confia-navidad .cdic-hero-title,
body.confia-navidad .cbe-hero-title {
    animation: confia-navidad-title-glow 5s ease-in-out infinite;
}

/* Copo de nieve reutilizable, insertado como hijo (no ::before/::after,
   para no pelear por ese slot con decoraciones que el módulo ya
   trae) por navidad-particles.js en cada una de estas cajas */
.confia-navidad-hero-snow {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 46px;
    height: 46px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5M4 10.2l3.4.7-1 3.3M20 13.8l-3.4-.7 1-3.3'/%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    body.confia-navidad .cmv-hero__title,
    body.confia-navidad .cog-banner__title,
    body.confia-navidad .cdfw-header-inner h1,
    body.confia-navidad .cdb-banner__title,
    body.confia-navidad .cfh-hero-title,
    body.confia-navidad .cbz-hero-title,
    body.confia-navidad .cbza-hero-title,
    body.confia-navidad .cperf-hero-name,
    body.confia-navidad .cevall-page-hero__titulo,
    body.confia-navidad .cpriv-hero-title,
    body.confia-navidad .csup-hero-title,
    body.confia-navidad .cdic-hero-title,
    body.confia-navidad .cbe-hero-title {
        animation: none !important;
    }
}
