:root {
    --color-primary: #e11d48; /* Vivid Red from Logo */
    --color-bg: #020617; /* Tailwind Slate 950 */
    --color-surface: #0f172a; /* Tailwind Slate 900 */
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Orbitron', sans-serif;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(225, 29, 72, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(225, 29, 72, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(225, 29, 72, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.4;
}

/* Glow Effects */
.glow-red {
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
}

.text-glow-red {
    text-shadow: 0 0 10px rgba(225, 29, 72, 0.8);
}

/* Card Aesthetics */
.cyber-card {
    background: rgba(15, 23, 42, 0.8); /* Slate 900 with opacity */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    background-color: var(--color-primary);
    transition: height 0.3s ease;
}

.cyber-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9); /* Slate 800 with opacity */
}

.cyber-card:hover::before {
    height: 100%;
}

/* WhatsApp Float */
.whatsapp-float {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.nav-blur {
    backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.85); /* Slate 950 with opacity */
}

/* Tactical Text Animation */
.reveal.tactical-text {
    transition: none; /* Desactivamos la transición normal para usar animación */
}

.reveal.tactical-text.active {
    animation: tactical-glitch 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes tactical-glitch {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(4px); }
    20% { opacity: 0.8; transform: translateY(0) scale(1); filter: blur(0); }
    30% { opacity: 0.2; transform: translateX(-3px); }
    40% { opacity: 1; transform: translateX(3px); }
    50% { opacity: 0.4; transform: translateX(0); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Sensor Dot */
.sensor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-primary);
    animation: sensor-blink 1s infinite ease-in-out;
}

@keyframes sensor-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Typewriter Cursor */
.typing-cursor::after {
    content: '█';
    color: var(--color-primary);
    margin-left: 5px;
    animation: cursor-blink 1s step-start infinite;
    text-shadow: 0 0 8px var(--color-primary);
}

@keyframes cursor-blink {
    50% { opacity: 0; }
}