/*
Theme Name: Narrative Center
Theme URI: https://github.com/Start-Narrative/narrative-center-theme
Author: Leoharing.com
Description: Central de Inteligencia Narrativa — Premium, High-Tech, Glassmorphism.
Version: 1.4.1
*/

/* ========================================
   DESIGN TOKENS
======================================== */
:root {
    --primary: #0a0e1a;
    --secondary: #1e293b;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.25);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --slate-700: #334155;
    --slate-300: #cbd5e1;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;

    --container-max: 1280px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.7;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-top: 0;
}

strong {
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LAYOUT UTILITIES
======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-padding {
    padding: 6rem 0;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

/* ========================================
   GLASSMORPHISM
======================================== */
.glass-effect,
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--slate-700);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-hero {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: all var(--transition-base);
}

.nav-links .btn-primary {
    color: #ffffff;
}

.btn-hero:hover {
    color: var(--accent);
}

.btn-hero i {
    animation: bounce-down 2s infinite;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ========================================
   NAVIGATION
======================================== */
.site-header {
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    transition: background var(--transition-base);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-box {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    font-family: var(--font-display);
}

.nav-logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.nav-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    font-family: var(--font-display);
}

.nav-links {
    display: none;
    gap: 2.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    color: #fff;
}

.menu-toggle {
    display: flex;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Open state for mobile menu */
.nav-links.is-active {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    z-index: 1000;
    text-align: center;
    animation: slide-in-top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slide-in-top {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-links.is-active a {
    font-size: 1.25rem;
    color: #fff;
}

/* ========================================
   HERO INTRO (VIDEO)
======================================== */
/* ========================================
   HERO INTRO TACTICAL HUD
======================================== */
.hero-intro {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-background video,
.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%; /* Fix centering on mobile */
    text-align: center;
    /* Reducción fluida del margen superior: libera espacio vertical en pantallas chaparras */
    padding: clamp(60px, 8vh, 120px) 1.5rem 0; /* Reduced horizontal padding for mobile */
    max-width: 72rem;
    margin: 0 auto;
}

.hero-hud-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    padding: 3rem;
}

.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    opacity: 0.6;
}

.hud-corner--tl {
    top: 3rem;
    left: 3rem;
    border-right: 0;
    border-bottom: 0;
}

.hud-corner--tr {
    top: 3rem;
    right: 3rem;
    border-left: 0;
    border-bottom: 0;
}

.hud-corner--bl {
    bottom: 3rem;
    left: 3rem;
    border-right: 0;
    border-top: 0;
}

.hud-corner--br {
    bottom: 3rem;
    right: 3rem;
    border-left: 0;
    border-top: 0;
}

.hud-scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.05), transparent);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    /* animation: hud-scan 8s linear infinite; - REMOVED TO PREVENT FLICKER */
}

@keyframes hud-scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

.hud-data {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    opacity: 0.4;
    text-transform: uppercase;
}

.hud-data--left {
    bottom: 8rem;
    left: 4rem;
}

.hud-data--right {
    bottom: 8rem;
    right: 4rem;
    text-align: right;
}

/* Typography & Content */
.hero-main-title.split-text {
    display: block;
    text-align: center;
    width: 100%;
    max-width: min(900px, 95vw); /* Ajuste preventivo para evitar desbordes */
    /* Margen inferior fluido: Se comprime en pantallas chaparras (bajo vh) para subir los botones */
    margin: 0 auto clamp(0.5rem, 5vh, 3rem) auto;
    padding: 0 1rem;
}

.word-block {
    display: inline;
    /* Tipografía fluida que respeta el espacio más crítico (ancho O alto): 
     * Minimo: 1.5rem
     * Fluido: 6vmin (Escala proporcional al lado más pequeño de la pantalla, evitando el corte vertical en pantallas apaisadas)
     /* Máximo: 61px */
    font-size: clamp(
        calc(1.58rem * var(--hero-title-scale, 1)), 
        calc(6.3vmin * var(--hero-title-scale, 1)), 
        calc(61px * var(--hero-title-scale, 1))
    ); 
    font-weight: 800;
    line-height: 1.05; /* Ajuste más estricto entre líneas */
    text-transform: uppercase;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--d);
    white-space: normal; 
    word-break: break-word;
}

.hero-animate .word-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.accent-text {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.hero-intro-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--slate-300);
    margin: -1rem auto clamp(1rem, 5vh, 2rem) auto;
    max-width: 800px;
    padding: 0 1rem;
    line-height: 1.6;
}

.hero-intro-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(1rem, 4vh, 2rem);
    flex-wrap: nowrap;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro-actions .btn-tact {
    flex: 1;
    padding: 1rem 0.5rem;
    font-size: clamp(0.65rem, 3vw, 0.8rem);
    text-align: center;
    justify-content: center;
    min-width: 0;
}

@media (max-width: 400px) {
    .hero-intro-actions {
        flex-wrap: wrap;
        flex-direction: column;
    }
    .hero-intro-actions .btn-tact {
        width: 100%;
    }
}

.btn-tact--hero-primary {
    background: var(--accent);
    color: #000 !important;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-tact--hero-primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.btn-tact--hero-outline {
    background: #000;
    color: #fff !important;
    border: 1px solid var(--accent);
}

.btn-tact--hero-outline:hover {
    background: var(--accent);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Se eliminan las media queries estáticas para .word-block ya que clamp() las reemplaza */

/* Scroll Indicator Upgrade */
.hero-scroll-indicator {
    margin-top: clamp(0.5rem, 3vh, 2rem);
}

.btn-hero-minimal {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.scroll-txt {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    font-weight: 700;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 0;
}

.btn-hero-minimal:hover .scroll-txt {
    color: var(--accent);
}

.btn-hero-minimal:hover .scroll-arrow {
    border-color: var(--accent);
    transform: translateY(5px);
}

.btn-hero-minimal:hover .scroll-arrow::before {
    transform: translateY(0);
}

.btn-hero-minimal:hover .scroll-arrow i {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.scroll-arrow i {
    font-size: 0.8rem;
    animation: bounce-down 2s infinite;
}

/* ========================================
   HERO LANDING (GRID + CANVAS)
======================================== */
.hero-landing {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #000000; /* Forzando fondo negro puro según petición */
    /* Agrega padding horizontal fluido (5vw/2rem mínimo) para proteger contenido pegado a bordes en layouts divididos */
    padding: 6rem clamp(1.5rem, 5vw, 4rem); 
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none; /* Cuadrícula apagada */
    pointer-events: none;
}

.grid-overlay svg {
    width: 100%;
    height: 100%;
}

.landing-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .landing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.landing-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    background: rgba(56, 189, 248, 0.05);
}

/* ========================================
   HERO TACTICAL REDESIGN
======================================== */
.hero-tactical-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .hero-tactical-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 6rem;
    }
}

.hero-logo-superior {
    display: inline-block;
    margin-bottom: 2.5rem;
}

.hero-logo-superior img {
    height: auto;
    width: 120px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.hero-badge-superior {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.landing-title {
    /* Tipografía fluida y algo más pequeña para que encaje alineado al hub de botones */
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
    display: inline-block;
    width: 100%;
}

.landing-title .text-accent {
    display: inline;
    white-space: nowrap; /* Evita que la palabra destacada se rompa del resto del título si hay espacio suficiente */
}

@media (min-width: 1024px) {
    .landing-title {
        font-size: 2.8rem;
        max-width: 350px;
    }
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem; /* Compactando márgenes a botones */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-marker {
    color: #22c55e;
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
}

.status-marker::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

/* Tactical Buttons */
.hero-action-group {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap; /* Fuerza la misma línea */
    align-items: center;
}

.btn-tact {
    padding: 1.2rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-tact--accent {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border: 2px solid var(--accent) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.btn-tact--accent:hover {
    background: transparent !important;
    color: var(--accent) !important;
    box-shadow: none !important;
}

.btn-tact--outline {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid var(--accent) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.btn-tact--outline:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.btn-tact--small {
    padding: 0.8rem 1rem;
    min-width: 180px;
    font-size: 0.7rem;
}

.btn-tact--mini {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.65rem !important;
    min-width: unset !important;
    width: auto !important;
    letter-spacing: 0.05em !important;
}


/* Tactical Terminal */
.tactical-terminal-wrapper {
    position: relative;
    padding: 1rem;
}

.terminal-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tactical-monitor {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.monitor-header {
    background: rgba(56, 189, 248, 0.05);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.monitor-controls {
    display: flex;
    gap: 0.5rem;
}

.monitor-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.monitor-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex: 1;
}

/* Punto LED desactivado (grisecito base) */
.monitor-controls span.led-point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Punto LED iluminado (Cyan) controlado por JS */
.monitor-controls span.led-point.is-active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.monitor-label {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    opacity: 0.8;
}

.monitor-screen {
    padding: 1.5rem 2rem;
    height: 160px; /* Reducido para dar ilusión de laptop wide screen */
    position: relative;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.05) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.15;
    animation: scanner 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.terminal-output {
    margin-bottom: 0;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
}

.typing-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.term-line {
    padding-left: 2.2ch; /* Espacio para el símbolo "> " y el margen natural */
    text-indent: -2.2ch; /* Retrae la primera línea exactamente donde empieza el texto */
    display: block;
}

.term-process {
    color: var(--accent);
}

.term-scan {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.term-alert {
    color: #f87171;
    text-shadow: 0 0 15px rgba(248, 113, 113, 0.6);
}

.term-success {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
}

.terminal-visuals {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.data-bars {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 120px;
}

.data-bar {
    width: 14px;
    height: var(--height);
    background: var(--accent);
    opacity: 0.6;
    border-radius: 2px 2px 0 0;
    animation: bar-pulse 2s ease-in-out infinite alternate;
}

.radar-circle {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    position: relative;
}

.radar-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 50%;
    background: var(--accent);
    transform-origin: top center;
    animation: rotate 3s linear infinite;
    opacity: 0.5;
}

.monitor-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    display: flex;
    gap: 2rem;
}

.footer-stat {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
}

@keyframes scanner {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(224px);
        /* Match height of .monitor-screen */
    }
}

@keyframes bar-pulse {
    0% {
        transform: scaleY(0.8);
        opacity: 0.4;
    }

    100% {
        transform: scaleY(1.2);
        opacity: 0.8;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bar-grow {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* Typing Cursor Effect */
.typing-cursor::after {
    content: '▋';
    display: inline-block;
    vertical-align: text-bottom;
    animation: blink-cursor 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Terminal States */
.term-scan {
    color: var(--accent);
}

.term-alert {
    color: #f59e0b;
}

/* Amber/Warning */
.term-success {
    color: #22c55e;
}

/* Green/Success */
.term-process {
    color: #94a3b8;
}

/* Muted/Process */

/* ========================================
   SECTION TITLES
======================================== */
.section-title {
    font-size: 2.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-divider {
    width: 4rem;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 3rem auto;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ========================================
   ABOUT / NOSOTROS (TACTICAL REDESIGN)
======================================== */
.about-section {
    background: linear-gradient(180deg, rgba(10, 14, 26, 1) 0%, rgba(15, 23, 42, 0.8) 100%);
    position: relative;
    border-top: 1px solid rgba(56, 189, 248, 0.05);
}

.about-tactical-layout {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.terminal-status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse-glow 2s infinite;
}

.about-description {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 300;
}

.highlight-text {
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

.pillars-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.pillar-tag {
    padding: 0.75rem 1.5rem;
    background: rgba(56, 189, 248, 0.03);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--accent);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.pillar-tag:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.1);
}

/* @keyframes pulse-glow REMOVED */

/* ========================================
   SERVICES
======================================== */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Hover glow line at top */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.service-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    /* Íconos permanentemente activos / iluminados */
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 15px var(--accent-glow);
    color: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
}

.service-card-slogan {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    display: block;
    line-height: 1.5;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--slate-300);
    font-size: 0.8rem;
    line-height: 1.4;
}

.service-list li {
    margin-bottom: 0.6rem;
    padding-left: 0;
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem; /* Más espacio entre el punto y el texto */
    align-items: flex-start;
}

.bullet-mr {
    flex-shrink: 0;
    margin-top: -0.05em; /* Compensación óptica precisa para alinear el punto con la primera línea */
}

/* Highlighted Card */
.service-card--featured {
    border-color: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.06);
}

/* CTA Card (Slot 6) */
.service-card--cta {
    border-color: var(--accent);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6) 0%, rgba(56, 189, 248, 0.08) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card--cta .service-icon-box {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ========================================
   MODALIDADES / DELIVERABLES
======================================== */
/* ========================================
   MODALIDADES / DELIVERABLES (TACTICAL)
======================================== */
.deliverables-section {
    background-color: #000000;
    /* background-image: url('assets/img/poster.jpg'); - REMOVED TO PREVENT TEXTURE/GRID */
    position: relative;
    padding: 8rem 0;
}

.deliverables-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    z-index: 1; /* Asegurar que bloquea el fondo */
    pointer-events: none;
}

.tact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .tact-grid {
        grid-template-columns: 350px 1fr;
        align-items: stretch;
    }
}

/* Vertical Flow Layout for Deliverables */
.deliverables-vertical-flow {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.deliverables-block {
    width: 100%;
}

/* CTA Block - Centered */
.deliverables-cta-block {
    width: 100%;
}

.panel-brand-action--centered {
    text-align: center;
    padding: 3rem 2.5rem;
    border-left: none !important;
    border-top: 2px solid var(--accent) !important;
    box-shadow: 0 -5px 30px rgba(56, 189, 248, 0.08);
}

.panel-brand-action--centered .panel-title {
    margin-bottom: 1.5rem;
}

.panel-list--inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-bottom: 2rem;
}

.panel-list--inline li {
    justify-content: center;
}

.btn-tact--cta-inline {
    width: 300px !important;
    max-width: 100%;
    padding: 1rem 3rem;
    display: inline-flex;
    margin: 0 auto;
}

/* Base Panel Brand */
.panel-brand-action,
.panel-brand-info {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    background: rgba(10, 14, 26, 0.98); /* Fondo casi opaco para bloquear destellos del canvas */
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.panel-brand-action {
    border-left: 4px solid var(--accent) !important;
    box-shadow: -10px 0 30px rgba(56, 189, 248, 0.1);
}

.panel-brand-info {
    border-left: 4px solid var(--accent) !important;
    box-shadow: -10px 0 30px rgba(56, 189, 248, 0.1);
}

/* ========================================
   ABOUT TACTICAL SECTION (NOSOTROS)
======================================== */
.about-section {
    background: linear-gradient(180deg, #0f172a 0%, #050810 100%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .about-section .section-title {
        padding-top: 30px;
    }
}

.about-tactical-layout {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.terminal-status-header {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.status-text {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2em;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--slate-300);
    margin: 0 auto 3.5rem auto;
}

.highlight-text {
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

.pillars-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.pillar-tag {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent); /* Se aplica el color iluminado de forma base */
    border: 1px solid var(--accent); /* Borde iluminado de forma base */
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: rgba(56, 189, 248, 0.05); /* Fondo base activo */
    letter-spacing: 0.1em;
}

.pillar-tag:hover {
    background: rgba(56, 189, 248, 0.15); /* Incremento del fondo al hacer hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2); /* Sutil halo cyan al hover */
}

.pillar-tag.pillar-tag--btn:hover {
    background: var(--accent);
    color: #0f172a; /* Color oscuro para mayor contraste */
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Panel Utility (if still used) */
.panel-header {
    margin-bottom: 2rem;
}

.panel-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.panel-title {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
    letter-spacing: 0.05em;
}

.panel-brand-action .panel-title {
    color: var(--accent);
}

.panel-brand-info .panel-title {
    color: var(--accent);
}

.panel-body {
    flex-grow: 1;
}

.panel-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--slate-300);
}

.panel-list li i {
    font-size: 0.8rem;
    color: var(--accent);
}

.panel-footer {
    margin-top: 2rem;
}

.panel-header--flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.panel-status-tag {
    display: none; /* Removido por solicitud de sobriedad */
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    /* animation: pulse-glow 1.5s ease-in-out infinite; - REMOVED TO PREVENT FLASH */
    box-shadow: 0 0 5px var(--accent);
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        box-shadow: 0 0 0px var(--accent);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px var(--accent);
    }
}

.deliverable-item-tact {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    color: var(--slate-300);
    position: relative;
    height: 100%; /* Asegura que todos los recuadros en la misma fila tengan la misma altura */
}

.item-check {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    opacity: 0.8;
}

/* Item Meta/ID removed for sobriety */

.item-content {
    font-weight: 500;
    color: #f8fafc;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .item-content {
        font-size: 0.75rem;
    }
}

.deliverable-item-tact:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.deliverables-tact-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr; /* Todas las filas tendrán la misma altura que la más alta */
}

@media (min-width: 768px) {
    .deliverables-tact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Unused tact-dot removed */

/* Check Item Tactical - Compact Mode */
.check-item-tact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.05) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.check-item-tact i {
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.check-item-tact strong {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Button Tactical */
.btn-tact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.btn-tact--accent {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.btn-tact--accent:hover {
    background: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
    color: var(--primary);
}

/* ========================================
   FOUNDER (TACTICAL DOSSIER)
======================================== */
.founder-section {
    position: relative;
    z-index: 20;
    overflow: hidden;
    background-color: #0A0E1A;
    padding: 10rem 0;
}

.founder-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(10, 14, 26, 0.8) 0%, #0A0E1A 100%);
    pointer-events: none;
}

.founder-tactical-centered {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.founder-tactical-centered .founder-content-col {
    width: 100%;
}

/* Profile Card */
.founder-profile-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.founder-profile-card .img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%) brightness(0.9);
    transition: all 0.5s ease;
}

.founder-profile-card:hover .founder-img {
    filter: grayscale(20%) contrast(100%) brightness(1);
    transform: scale(1.05);
}

/* Scanner Line Animation */
.card-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    z-index: 10;
    animation: scan 3s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

.card-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.meta-label {
    color: var(--text-muted);
}

.meta-status {
    color: var(--accent);
    font-weight: 800;
}

.founder-signature {
    margin-top: 2rem;
}

.sig-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 0.25rem;
}

.sig-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2em;
}

/* Dossier Content */
.dossier-header {
    margin-bottom: 2.5rem;
}

.dossier-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.01em;
}

.glass-panel-tact {
    background: rgba(10, 14, 26, 0.95); /* Opacidad aumentada para evitar filtraciones de fondo */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.bio-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--slate-300);
}

.bio-content p {
    margin-bottom: 1.5rem;
}

.panel-accent-bar {
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}



/* ========================================
   CONTACT
======================================== */
.contact-section {
    background: var(--accent);
    color: var(--primary);
}

.contact-section .section-title {
    color: var(--primary);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-actions {
        flex-direction: row;
    }
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
    min-width: 260px;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
    background: var(--primary);
    color: white;
}

.btn-whatsapp:hover {
    color: white;
}

.btn-email {
    background: white;
    color: var(--primary);
}

.btn-email:hover {
    color: var(--primary);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--primary);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-copyright {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ========================================
   HERO ANIMATION (CSS-only, no JS dependency)
======================================== */
.hero-animate {
    animation: heroReveal 1s ease forwards;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SCROLL ANIMATIONS (IntersectionObserver)
======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: if JS hasn't activated after 4s, show content anyway */
@keyframes fallbackReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fallbackReveal 0.5s ease 4s forwards;
}

/* ========================================
   RESPONSIVE FINE-TUNING
======================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.8rem;
    }

    .founder-img-box {
        width: 14rem;
        height: 14rem;
    }

    .deliverables-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero highlight effect */
.hero-highlight {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.8), 0 0 60px rgba(56, 189, 248, 0.4);
    /* animation: hero-pulse 2s ease-in-out infinite; - REMOVED TO PREVENT FLASH */
    display: inline-block;
}

/* @keyframes hero-pulse REMOVED */

/* Stats animation */
.stat-number {
    animation: stat-pulse 3s ease-in-out infinite;
}

.stat-item:nth-child(2) .stat-number {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) .stat-number {
    animation-delay: 1s;
}

@keyframes stat-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Bar chart animation */
@keyframes bar-grow {
    from {
        height: 0;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.75rem;
    }

    .hero-subtitle-block {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }

    .nc-logo-box {
        width: 4rem;
        height: 4rem;
    }

    .nc-logo-text {
        font-size: 1.5rem;
    }

    .landing-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   SINGLE POST TEMPLATE
======================================== */

/* Single Hero & Header */
.single-article {
    padding-top: 8rem;
    /* Space for fixed header */
    padding-bottom: 4rem;
}

.entry-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px !important;
}

.entry-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nc-badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #fff;
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 3.5rem;
    }
}

.entry-meta-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

/* Featured Image */
.entry-featured-img-container {
    max-width: 1100px !important;
    margin-bottom: 4rem;
    position: relative;
}

.entry-featured-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

/* Content Area */
.entry-content {
    max-width: 800px !important;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate-300);
}

.entry-content p {
    margin-bottom: 2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #fff;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 3rem 0;
    font-size: 1.35rem;
    font-style: italic;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Footer & Share */
.entry-footer {
    max-width: 800px !important;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .entry-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

.tags-links a {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--secondary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-base);
}

.tags-links a:hover {
    background: var(--accent);
    color: var(--primary);
}

.share-article {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
}

.share-article a {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.share-article a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    display: inline-block;
}

/* ========================================
   ARCHIVE / BLOG GRID
======================================== */

.archive-section {
    padding-top: 8rem;
    min-height: 80vh;
}

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.archive-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid--home {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Post Card Tactical Upgrade */
.post-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
}

.post-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.post-card-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}

.post-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card-img-wrapper img {
    transform: scale(1.1);
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.meta-cat {
    font-weight: 800;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.post-card-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 800;
}

.post-card-title a {
    color: #fff;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.post-card-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.read-more-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.read-more-link i {
    font-size: 0.7rem;
}

.read-more-link:hover {
    gap: 1.25rem;
    text-shadow: 0 0 10px var(--accent);
}

/* Pagination Upgrade */
.pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.page-numbers.current,
.page-numbers:hover:not(.dots) {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.page-numbers.dots {
    background: transparent;
    border: none;
}

/* ========================================
   HOME LATEST POSTS
======================================== */

#latest-posts {
    background-color: #0b1120;
    /* Tech Grid Effect */
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ========================================
   CONTACT TACTICAL SECTION
======================================== */
.contact-tactical-section {
    background: #050810;
    padding-bottom: 8rem;
}

.contact-terminal-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.terminal-header {
    background: rgba(56, 189, 248, 0.08);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    /* animation: pulse-green 2s infinite; - REMOVED TO PREVENT FLASH */
}

@keyframes pulse-green {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.status-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.terminal-actions {
    display: flex;
    gap: 0.4rem;
}

.terminal-actions span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.contact-grid-tact {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1.5rem;
    /* Reduced for mobile */
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid-tact {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact-grid-tact {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.tactical-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.tactical-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.form-container-tact,
.form-container-tact form,
.form-container-tact .fluentform,
.form-container-tact .frm_forms {
    width: 100% !important;
    max-width: 100% !important;
}

/* Form Styling - Deep overrides for common WP plugins */
.form-container-tact form input:not([type="submit"]),
.form-container-tact form textarea,
.form-container-tact form select {
    width: 100% !important;
    display: block !important;
    margin: 0 0 1.25rem 0 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.85rem 1rem !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-body) !important;
    transition: all 0.3s ease !important;
}

.form-container-tact form input:focus,
.form-container-tact form textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    background: rgba(56, 189, 248, 0.03) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1) !important;
}

.form-container-tact form input[type="submit"],
.form-container-tact form button {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.8rem !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    width: auto !important;
}

/* Info Side */
.info-label-tact {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.direct-lines-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.secure-link {
    width: 100%;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
}

.secure-link i {
    font-size: 1.2rem;
}

.location-metadata {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 0.2rem 0.5rem;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.1em;
}