/* Sistema de Temas Globales */
:root {
    --primary-color: #2563eb; /* Azul Galianza */
    --primary-hover: #1d4ed8;
    --accent-color: #c5a059;  /* Dorado */
    --bg-header: #30302e;
    --nav-bg: rgba(18, 18, 18, 0.8);
}

/* Tema Buen Fin */
body.theme-buen-fin {
    --primary-color: #ff0000;
    --primary-hover: #cc0000;
    --accent-color: #facc15;
    --bg-header: #000000;
}

/* Tema Navidad */
body.theme-navidad {
    --primary-color: #10b981; 
    --primary-hover: #059669;
    --accent-color: #f59e0b; 
    --bg-header: radial-gradient(circle at 50% 0%, #064e3b 0%, #010a08 100%);
    --nav-bg: rgba(1, 8, 6, 0.85);

    /* SaaS Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --snow-speed: 25s;
    --snow-speed-far: 45s;
    --snow-speed-near: 20s;
    --transition-saas: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    
    font-feature-settings: "cv02", "cv03", "ss01";
    letter-spacing: -0.015em;
}

/* Tema Halloween */
body.theme-halloween {
    --primary-color: #f97316; /* Naranja */
    --primary-hover: #ea580c;
    --accent-color: #9333ea;  /* Morado */
    --bg-header: #0f0f0f;
}

/* Tema Día de Muertos */
body.theme-dia-muertos {
    --primary-color: #e11d48; 
    --primary-hover: #be123c;
    --accent-color: #f97316;  
    --bg-header: radial-gradient(circle at 50% 0%, #2e1065, #0a0a0a);
    --nav-bg: rgba(46, 16, 101, 0.8);
    /* SaaS Premium Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(249, 115, 22, 0.2);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.015em;
}

/* Tema Mes Patrio */
body.theme-mes-patrio {
    --primary-color: #006847; 
    --primary-hover: #008f58;
    --accent-color: #ce1126;  
    --bg-header: radial-gradient(circle at 50% -20%, #002b18, #050505);
    --nav-bg: rgba(0, 10, 7, 0.85);
    /* Finura Premium */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: linear-gradient(to right, #006847, rgba(255,255,255,0.4), #ce1126);
    --patriotic-glow: 0 15px 35px -5px rgba(0, 104, 71, 0.4);
    letter-spacing: -0.02em;
    font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

/* Tema Verano */
body.theme-verano {
    --primary-color: #06b6d4; 
    --primary-hover: #0891b2;
    --accent-color: #fb7185;
    --bg-header: linear-gradient(180deg, #0c4a6e 0%, #0ea5e9 100%);
    --nav-bg: rgba(12, 74, 110, 0.85);
    --wave-speed: 15s;
    letter-spacing: -0.015em;
}

/* --- ESTILOS DE DASHBOARD PREMIUM (GLASSMORPHISM) --- */
.glass-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.05));
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* --- SISTEMA DE VISIBILIDAD ESTACIONAL --- */
.bf-only, .navidad-only, .mes-patrio-only, .verano-only, .halloween-only, .dia-muertos-only { 
    display: none !important; 
}

body.theme-buen-fin .bf-only { display: block !important; }
body.theme-buen-fin #bf-countdown-container { display: flex !important; }
body.theme-buen-fin #bf-marquee { display: block !important; }

body.theme-navidad .navidad-only { display: block !important; }
body.theme-navidad #christmas-garland { display: flex !important; }

body.theme-mes-patrio .mes-patrio-only { display: block !important; }
body.theme-verano .verano-only { display: block !important; }
body.theme-halloween .halloween-only { display: block !important; }
body.theme-dia-muertos .dia-muertos-only { display: block !important; }

/* Marquee Animation */
.bf-marquee-content {
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Estilo de Botón Buen Fin */
body.theme-buen-fin .bg-blue-600:not(.profile-upload-btn) {
    background: linear-gradient(to bottom, #ff0000, #990000) !important;
    border: 2px solid #facc15 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 900 !important;
    letter-spacing: 1px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4) !important;
}

/* Etiquetas Popping */
.bf-pop-tag {
    position: absolute;
    background: #facc15;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: bf-pop 2s ease-out forwards;
}

@keyframes bf-pop {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    20% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    80% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-50px) scale(0.8); opacity: 0; }
}

/* Glow para el Hero */
body.theme-buen-fin header h1 {
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

body.theme-buen-fin header span.text-blue-500 {
    color: #facc15 !important;
}

body.theme-buen-fin nav {
    margin-top: 24px; /* Espacio para el marquee */
}

body.theme-buen-fin .bf-discount-badge {
    display: block !important;
}

/* Badge de Descuento Buen Fin */
.bf-discount-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background: #facc15;
    color: #000;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.5);
    z-index: 20;
    animation: bf-shake 0.4s infinite;
}

@keyframes bf-shake {
    0%, 100% { transform: translateX(0) rotate(-5deg); }
    25% { transform: translateX(-4px) rotate(-7deg); }
    75% { transform: translateX(4px) rotate(-3deg); }
}

/* --- COMPONENTES NAVIDAD PREMIUM --- */
body.theme-navidad::before,
body.theme-navidad::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1; /* Detrás de las tarjetas */
}

/* Nieve de Fondo (Lejana) */
body.theme-navidad::before {
    background-image: 
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 50% 10%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 40%, #fff, transparent);
    background-size: 400px 400px;
    animation: snow-parallax var(--snow-speed-far) linear infinite;
    opacity: 0.2;
}

/* Nieve Cercana */
body.theme-navidad::after {
    background-image: 
        radial-gradient(4px 4px at 30% 50%, #fff, transparent),
        radial-gradient(5px 5px at 70% 20%, #fff, transparent);
    background-size: 600px 600px;
    animation: snow-parallax var(--snow-speed-near) linear infinite;
    opacity: 0.5;
    z-index: 9999;
}

@keyframes snow-parallax {
    from { transform: translateY(-600px) rotate(0deg); }
    to { transform: translateY(600px) rotate(5deg); }
}

/* Luces Glow */
.bulb.red { background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: glow-pulse 2s infinite; }
.bulb.gold { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; animation: glow-pulse 2s infinite -0.5s; }
.bulb.green { background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: glow-pulse 2s infinite -1s; }

@keyframes glow-pulse {
    0%, 100% { filter: brightness(1) blur(0px); transform: scale(1); opacity: 0.8; }
    50% { filter: brightness(1.8) blur(1px); transform: scale(1.15); opacity: 1; box-shadow: 0 0 25px currentColor; }
}

/* --- BOTONES CONGELADOS PRO (Navidad) --- */
body.theme-navidad .bg-blue-600:not(.profile-upload-btn) {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    font-weight: 800 !important;
    transition: var(--transition-saas) !important;
}

body.theme-navidad .bg-blue-600:not(.profile-upload-btn)::after {
    content: "";
    position: absolute;
    top: -50%; left: -150%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: ice-shimmer 6s infinite linear;
}

@keyframes ice-shimmer {
    0% { left: -150%; }
    25% { left: 150%; }
    100% { left: 150%; }
}

/* Árbol Gigante Pro */
body.theme-navidad #christmas-tree {
    font-size: 10rem !important;
    filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.5));
    display: block !important;
    opacity: 1 !important;
}

/* Decoraciones Flotantes */
.christmas-deco {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    font-size: 2.5rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    animation: deco-float 5s ease-in-out infinite alternate;
}

@keyframes deco-float {
    from { transform: translateY(0) rotate(-10deg); opacity: 0.35; }
    to { transform: translateY(-30px) rotate(10deg); opacity: 0.4; }
}

/* Animación de Murciélagos Premium */
@keyframes bat-fly-path {
    0% { left: -50px; transform: translateY(0) rotate(10deg); }
    50% { transform: translateY(-40px) rotate(-10deg); }
    100% { left: 110vw; transform: translateY(0) rotate(10deg); }
}
.bat-fly {
    position: absolute;
    animation: bat-fly-path 7s linear forwards;
    z-index: 10000;
    opacity: 0.4; /* Transparencia para no invadir la pantalla */
}

/* --- COMPONENTES VERANO SaaS (ESCALA PRO) --- */

.summer-sun {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: sun-pulse 10s ease-in-out infinite;
}

@keyframes sun-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.summer-waves {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0; left: 0; width: 200%; height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    /* Turquesa visible con profundidad */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2306b6d4' fill-opacity='0.5' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,149.3C672,149,768,203,864,213.3C960,224,1056,192,1152,165.3C1248,139,1344,117,1392,128L1440,139L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: wave-slide var(--wave-speed) linear infinite;
}

@keyframes wave-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.summer-palm {
    position: absolute;
    bottom: -20px;
    left: 2%;
    font-size: 18rem; /* Escala Pro */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: palm-sway 6s ease-in-out infinite alternate;
    z-index: 10000;
    opacity: 0.4; /* Suavizado para no ser invasivo */
}

@keyframes palm-sway {
    from { transform: rotate(-5deg); }
    to { transform: rotate(3deg); }
}

.summer-ball {
    position: absolute;
    bottom: 50px;
    right: 10%;
    font-size: 8rem; /* Escala Pro */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: ball-float 4s ease-in-out infinite alternate;
    z-index: 10000;
    opacity: 0.4; /* Suavizado para no ser invasivo */
}

@keyframes ball-float {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-30px) rotate(45deg); }
}

/* Gaviotas en vuelo */
@keyframes seagull-fly-path {
    0% { left: -10%; transform: translateY(0) rotate(5deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(5deg); }
    75% { transform: translateY(-20px) rotate(-5deg); }
    100% { left: 110%; transform: translateY(0) rotate(5deg); }
}

.seagull-fly {
    position: absolute;
    z-index: 9997;
    font-size: 2.5rem;
    animation: seagull-fly-path 12s linear forwards;
    opacity: 0.5;
}

/* 2. HALLOWEEN PREMIUM: Telarañas y Arañas */
body.theme-halloween .bg-blue-600:not(.profile-upload-btn) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 0l40 40M40 0L0 40M20 0v40M0 20h40' stroke='rgba(0,0,0,0.2)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='none' stroke='rgba(0,0,0,0.2)'/%3E%3Ccircle cx='20' cy='20' r='10' fill='none' stroke='rgba(0,0,0,0.2)'/%3E%3C/svg%3E") !important;
    position: relative;
    border: 1px solid #7e22ce !important;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3) !important;
}

body.theme-halloween .bg-blue-600:not(.profile-upload-btn)::before {
    content: "🕷️";
    position: absolute;
    left: 5px; top: -5px;
    font-size: 0.8rem;
    animation: swing 2s ease-in-out infinite;
}

/* Telarañas en las esquinas */
body.theme-halloween::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 150px; height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='%23444' d='M0 0 L100 100 M0 0 L100 50 M0 0 L50 100 M20 0 Q 50 50 0 20 M40 0 Q 60 60 0 40 M60 0 Q 80 80 0 60'/%3E%3C/svg%3E");
    z-index: 9999;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes swing {
    0%, 100% { transform: rotate(-10deg); transform-origin: top; }
    50% { transform: rotate(10deg); transform-origin: top; }
}

/* 3. MES PATRIO: Botones Bandera y Pólvora */
body.theme-mes-patrio .bg-blue-600:not(.profile-upload-btn) {
    background-image: 
        linear-gradient(rgba(0, 104, 71, 0.25), transparent),
        url("https://thumbs.dreamstime.com/b/bandera-del-estado-de-m%C3%A9xico-sobre-una-superficie-met%C3%A1lica-372517404.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: var(--patriotic-glow) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

body.theme-mes-patrio .bg-blue-600:not(.profile-upload-btn):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 104, 71, 0.5), 0 0 20px rgba(206, 17, 38, 0.3) !important;
    filter: brightness(1.1);
}

body.theme-mes-patrio .bg-blue-600:not(.profile-upload-btn)::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.6s cubic-bezier(0.23, 1, 0.32, 1);
}

body.theme-mes-patrio .bg-blue-600:not(.profile-upload-btn):hover::after {
    left: 100%;
}

/* Efecto de Pólvora/Fuegos Artificiales en el fondo */
/* 4. VERANO PREMIUM: Arena y Mar */
body.theme-verano .bg-blue-600:not(.profile-upload-btn) {
    background: linear-gradient(to bottom, #0ea5e9, #075985) !important;
    border-bottom: 4px solid #f59e0b !important; /* Borde de arena */
    position: relative;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

body.theme-verano .bg-blue-600:not(.profile-upload-btn)::before {
    content: "🌊";
    position: absolute;
    left: -10px; top: -10px;
    font-size: 1.2rem;
    animation: wave-float 3s ease-in-out infinite;
}

@keyframes wave-float {
    0%, 100% { transform: translateX(0) rotate(0); }
    50% { transform: translateX(10px) rotate(10deg); }
}

/* --- COMPONENTES DÍA DE MUERTOS SaaS PREMIUM --- */

/* Papel Picado Flags */
.papel-picado-flag {
    width: 60px; height: 80px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Crect width='60' height='80'/%3E%3Ccircle cx='30' cy='40' r='10'/%3E%3Cpath d='M0 70 q15 10 30 0 t30 0'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Crect width='60' height='80'/%3E%3Ccircle cx='30' cy='40' r='10'/%3E%3Cpath d='M0 70 q15 10 30 0 t30 0'/%3E%3C/svg%3E");
    animation: sway-flag 3s ease-in-out infinite alternate;
    transform-origin: top;
}

@keyframes sway-flag {
    from { transform: rotateX(-10deg) rotateY(-5deg); }
    to { transform: rotateX(20deg) rotateY(5deg); }
}

/* Pétalos de Cempasúchil */
.cempasuchil-petal {
    position: absolute;
    width: var(--size, 14px);
    height: var(--size, 14px);
    background: radial-gradient(circle at 30% 30%, #fbbf24, #f97316);
    border-radius: 100% 0 100% 0;
    opacity: 0.4; /* Transparencia para no invadir la experiencia */
    pointer-events: none;
    z-index: 9998;
    filter: blur(0.5px) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    user-select: none;
    will-change: transform, opacity;
}

@keyframes cempasuchil-fall-organic {
    0% { transform: translate(0, -10vh) rotate(0deg); opacity: 0; }
    15% { opacity: 0.4; }
    85% { opacity: 0.4; }
    100% { transform: translate(var(--sway), 110vh) rotate(var(--rotation)); opacity: 0; }
}

/* Velas Animadas */
.muertos-candle {
    position: absolute;
    bottom: 20px;
    width: 20px; height: 40px;
    background: #fef3c7;
    border-radius: 4px;
}

.muertos-flame {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 18px;
    background: #f59e0b;
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 10px #f59e0b, 0 0 20px #f97316;
    animation: flicker-flame 0.1s infinite alternate;
}

@keyframes flicker-flame {
    from { transform: translateX(-50%) scale(1); opacity: 0.9; }
    to { transform: translateX(-50%) scale(1.1) rotate(2deg); opacity: 1; }
}

/* Calaveritas Decorativas */
.sugar-skull {
    position: absolute;
    bottom: 20px;
    font-size: 3rem;
    filter: drop-shadow(0 0 15px rgba(225, 29, 72, 0.4));
    animation: skull-float 4s ease-in-out infinite alternate;
}

@keyframes skull-float {
    from { transform: translateY(0) rotate(-5deg); }
    to { transform: translateY(-10px) rotate(5deg); }
}

/* Botones Día de Muertos */
body.theme-dia-muertos .bg-blue-600:not(.profile-upload-btn) {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.4) !important;
    position: relative;
    overflow: hidden;
}

body.theme-dia-muertos .bg-blue-600:not(.profile-upload-btn)::after {
    content: "🌸";
    position: absolute;
    right: 5px; bottom: -5px;
    font-size: 0.8rem;
    opacity: 0.3;
}

/* Efecto Aura Espiritual en el fondo */
body.theme-dia-muertos::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
/* Limpieza del aura espiritual */
body.theme-dia-muertos::before {
    content: none;
}

/* Overrides para aplicar las variables a las clases de Tailwind */
.bg-blue-600 { background-color: var(--primary-color) !important; }
.hover\:bg-blue-700:hover { background-color: var(--primary-hover) !important; }
.text-blue-500, .text-blue-600 { color: var(--primary-color) !important; }

/* Resaltado de texto global en botones y navegación durante temas */
body[class*="theme-"] .bg-blue-600,
body[class*="theme-"] nav a,
body[class*="theme-"] button {
    text-shadow: 0px 1px 3px rgba(0,0,0,0.8), 0px 0px 10px rgba(0,0,0,0.5) !important;
}

.border-blue-600 { border-color: var(--primary-color) !important; }
.bg-\[\#30302e\] { background: var(--bg-header) !important; }
.bg-\[\#121212\]\/80 { background-color: var(--nav-bg) !important; }

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Personalización de Scrollbar para modo oscuro */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #30302e; border-radius: 5px; border: 2px solid #121212; }
::-webkit-scrollbar-thumb:hover { background: #c5a059; }

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Calculator Specific Styles */
.progress-segment.active {
    background-color: #c5a059; /* Acento Dorado */
}

.results.visible {
    display: flex;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Animation Classes */
#annualModal.visible {
    opacity: 1;
}

#annualModal.visible #modalContent {
    transform: scale(1);
}

/* Blog Enhancements */
.blog-card:hover img {
    transform: scale(1.05);
}

#blogContainer article {
    background-color: #1e1e1c;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 2.5rem;
    overflow: hidden;
}

#postModal.visible {
    opacity: 1;
    display: block;
}

#postModal #postContent {
    background-color: #1a1a18;
    color: #f8fafc;
}

#postModal.visible #postContent {
    transform: translateY(0);
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.prose h1 {
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.prose h2, .prose h3 {
    color: #ffffff !important;
}

/* Notificación de Chat (Parpadeo) */
@keyframes chat-blink {
    0%, 100% { transform: scale(1); }
    50% { background-color: #dc2626 !important; transform: scale(1.05); box-shadow: 0 0 15px rgba(220, 38, 38, 0.6); }
}
.chat-notif-blink {
    animation: chat-blink 1s infinite !important;
}

/* Tamaños de Anuncio */
.modal-size-square { max-width: 32rem !important; } /* lg */
.modal-size-flyer { max-width: 24rem !important; }  /* md - Más alto */
.modal-size-banner { max-width: 56rem !important; } /* 4xl - Más ancho */

/* Ajustes de altura para Imagen en Modal Real, Preview y Miniaturas */
.modal-size-flyer #modalImage, 
.modal-size-flyer #previewModalImage,
.modal-size-flyer .mini-card-img { height: 24rem !important; }

.modal-size-banner #modalImage, 
.modal-size-banner #previewModalImage,
.modal-size-banner .mini-card-img { height: 16rem !important; }

/* Miniatura Completa en Tabla */
.mini-announcement-preview {
    width: 150px;
    height: 100px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #1a1a18;
}

.mini-card-scale {
    transform: scale(0.25);
    transform-origin: top left;
    width: 600px;
    height: auto;
    min-height: 400px;
    pointer-events: none;
}
.mini-card-scale.modal-size-banner { width: 900px; }

/* Editor Live Preview */
.announcement-live-monitor {
    background: #0f0f0e;
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    border: 2px dashed rgba(255,255,255,0.05);
    overflow: hidden;
}

.live-preview-box {
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Tab Styles */
.calc-tab {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.calc-tab.active {
    background: #2563eb;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* Blog Tab Styles */
.blog-tab {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.blog-tab.active {
    background: #2563eb;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* Animación sutil para el botón Mail cuando está pendiente */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.animate-pulse-subtle {
    animation: pulse-subtle 1.5s infinite ease-in-out;
}

/* --- SISTEMA DE EXPLORADOR DE ARCHIVOS --- */
.explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}
.explorer-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.folder-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.explorer-item:hover .folder-icon {
    transform: scale(1.1);
}
.file-icon {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}
