/* ==========================================================================
   SISTEMA DE DISEÑO NEO-BRUTALISTA - LANDING PAGE
   Manual Estratégico Municipal - Morelos
   ========================================================================== */

/* Habilitar scroll suave */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f0;
    font-family: 'Space Grotesk', sans-serif;
    color: #000000;
}

/* ==========================================================================
   BARRA DE PROGRESO DE LECTURA (SCROLL PROGRESS)
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    background-color: #ff2a2a;
    z-index: 100;
    width: 0%;
}

/* ==========================================================================
   NAVEGACIÓN ACTIVA EN CABECERO (STICKY NAVBAR)
   ========================================================================== */
.nav-link {
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    background-color: #cbfb45;
    border-bottom-color: #000000;
}

/* Resaltado del enlace actual según sección activa */
.nav-link.active {
    background-color: #cbfb45;
    border-bottom-color: #000000;
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
    transform: translate(-1px, -1px);
}

/* ==========================================================================
   BORDES Y TEXTOS ESPECIALES
   ========================================================================== */
.brutal-border {
    border: 4px solid #000000;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px #000000;
}

/* ==========================================================================
   BOTONES NEO-BRUTALISTAS CON MICRO-INTERACCIONES
   ========================================================================== */
.brutal-button {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Hover: Eleva y proyecta sombra */
.brutal-button:hover:not(:disabled) {
    transform: translate(-2px, -2px);
}

.brutal-button.shadow-brutal:hover:not(:disabled) {
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1) !important;
}

.brutal-button.shadow-brutal-green:hover:not(:disabled) {
    box-shadow: 10px 10px 0px 0px #cbfb45 !important;
}

/* Active: Hunde y elimina sombra */
.brutal-button:active:not(:disabled) {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 1) !important;
}

/* ==========================================================================
   MARQUEE (TEXTO EN MOVIMIENTO EN FOOTER)
   ========================================================================== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
    background-color: #cbfb45;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   SCROLLBAR PERSONALIZADO (BRUTALISTA)
   ========================================================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f4f4f0;
    border-left: 4px solid #000000;
}

::-webkit-scrollbar-thumb {
    background: #ff2a2a;
    border: 3px solid #f4f4f0;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* ==========================================================================
   NUEVAS ANIMACIONES: REVEAL ON SCROLL
   ========================================================================== */

/* Clase base para elementos a revelar */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Estado activo cuando entra al viewport */
.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para efectos de revelado secuencial (en cascada) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================================================
   MEJORA DE HOVER EN TARJETAS BRUTALISTAS
   ========================================================================== */
.brutal-card-hover {
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.brutal-card-hover:hover {
    transform: translate(-4px, -4px) rotate(-0.5deg);
    box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 1) !important;
}

.brutal-card-hover-green {
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.brutal-card-hover-green:hover {
    transform: translate(-4px, -4px) rotate(0.5deg);
    box-shadow: 12px 12px 0px 0px #cbfb45 !important;
}

/* ==========================================================================
   EFECTO DE TERMINAL (IA SECTION)
   ========================================================================== */
.terminal-cursor::after {
    content: '█';
    display: inline-block;
    margin-left: 6px;
    color: #cbfb45;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Simulación de scanlines estilo CRT para la terminal */
.crt-screen {
    position: relative;
    overflow: hidden;
}

.crt-screen::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}
