/* ==========================================================================
   TEKVANCE STYLESHEET - PREMIUM DESIGN INTERACTION CORE (2026)
   ========================================================================== */

/* Optimizaciones estructurales de transiciones globales de tema */
*, *::before, *::after {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                text-shadow 0.3s ease;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #040814;
}
.light ::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #0b1329;
    border-radius: 10px;
}
.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

/* Efectos de texto basados exactamente en el gradiente de image_504dc0.jpg */
.text-gradient {
    background: linear-gradient(135deg, #00b4d8 0%, #ff9f1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Dinámico según el modo de color activo */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dark .glass-card {
    background: linear-gradient(135deg, rgba(11, 19, 41, 0.4) 0%, rgba(4, 8, 20, 0.3) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Animaciones Estilizadas */
@keyframes pulseSlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.04); }
}
.animate-pulse-slow {
    animation: pulseSlow 6s ease-in-out infinite;
}

/* Efecto Parpadeo Cursor del Typewriter */
.cursor-blink {
    font-weight: 400;
    animation: blink 0.8s infinite;
    color: #ff9f1c;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Clases de Control del Simulador Presupuestal */
.service-btn.active {
    background-color: rgba(0, 180, 216, 0.1) !important;
    border-color: #00b4d8 !important;
    color: #00b4d8 !important;
}
.dark .service-btn.active {
    background-color: rgba(0, 180, 216, 0.15) !important;
    border-color: #00b4d8 !important;
    color: #00b4d8 !important;
}

/* ==========================================================================
   SCROLL REVEAL EFFECT LAYERS (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays de animación para flujos de diseño asíncronos */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }