:root {
    --bg-principal: #040608; /* Negro militar ultra oscuro */
    --bg-secundario: #090e12; /* Verde grisáceo táctico profundo */
    --bg-tarjeta: rgba(14, 22, 30, 0.45); /* Base de cristal templado */
    --color-primario: #a3e635; /* Verde oliva brillante táctico estilo Medal of Honor */
    --color-secundario: #38bdf8; /* Cyan tecnológico de soporte */
    --texto-principal: #f8fafc;
    --texto-mutado: #475569;
    --color-linea-empresa: #84cc16; /* Verde de seguridad */
    --glass-border: rgba(255, 255, 255, 0.03);
    --tactical-border: rgba(163, 230, 53, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-principal);
    color: var(--texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- RED DE PARTÍCULAS TÁCTICAS EN MOVIMIENTO --- */
.particles-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    background: rgba(163, 230, 53, 0.08);
    border-radius: 50%;
}
.p1 { width: 3px; height: 3px; top: 15%; left: 15%; animation: floatTactic 14s infinite ease-in-out; }
.p2 { width: 5px; height: 5px; top: 50%; left: 75%; animation: floatTactic 20s infinite ease-in-out 1s; }
.p3 { width: 3px; height: 3px; top: 80%; left: 35%; animation: floatTactic 16s infinite ease-in-out 2s; }
.p4 { width: 4px; height: 4px; top: 30%; left: 60%; animation: floatTactic 24s infinite ease-in-out 3s; }

@keyframes floatTactic {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
    50% { transform: translateY(-40px) translateX(15px); opacity: 0.6; }
}

/* --- RESPLANDORES AMBIENTALES DE OPERACIONES --- */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(140px);
    opacity: 0.15;
    animation: pulseGlow 12s infinite ease-in-out;
}
.bg-glow-1 { top: -100px; right: -50px; background: radial-gradient(circle, var(--color-primario) 0%, transparent 80%); }
.bg-glow-2 { top: 140vh; left: -200px; background: radial-gradient(circle, var(--color-secundario) 0%, transparent 80%); }

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.1); opacity: 0.22; }
}

/* --- TIPOGRAFÍAS --- */
h1, h2, h3, .brand-logo, .badge-mercado, .btn-primary, .btn-secondary, .tech-tags span, .section-subtitle, .icon-header-estrategica {
    font-family: 'Space Grotesk', sans-serif;
}
.typewriter-title {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-subtitle {
    font-size: 0.8rem;
    color: var(--color-primario);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

/* --- NAV --- */
nav {
    background-color: rgba(4, 6, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo { font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; color: var(--texto-principal); }
.brand-logo span { color: var(--color-primario); }
.nav-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover { color: var(--color-primario); }
.nav-links .nav-cta {
    border: 1px solid var(--tactical-border);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    color: var(--color-primario);
}
.nav-links .nav-cta:hover { background: rgba(163, 230, 53, 0.05); }

/* --- GRID DE CABECERA (HERO + INTERFAZ DE RADAR) --- */
header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 13rem 2rem 6rem 2rem;
    min-height: 90vh;
}
.hero-wrapper-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.badge-mercado {
    background: rgba(163, 230, 53, 0.03);
    border: 1px solid var(--tactical-border);
    color: var(--color-primario);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    letter-spacing: 1.5px;
}
.pulse-dot {
    width: 6px; height: 6px;
    background-color: var(--color-linea-empresa);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}
header h1 { font-size: 3.4rem; line-height: 1.15; margin-bottom: 2rem; font-weight: 700; color: var(--texto-principal); }
header h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); font-weight: 400; }
header .meta-sub { color: #94a3b8; font-size: 1.15rem; max-width: 700px; margin-bottom: 3rem; }

/* --- EL RADAR MINI OPERATIVO --- */
.radar-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.radar-screen {
    position: relative;
    width: 280px; height: 280px;
    background-color: #030507;
    border: 2px solid rgba(163, 230, 53, 0.2);
    border-radius: 50%;
    overflow: hidden;
}
.radar-sweep {
    position: absolute;
    width: 100%; height: 100%;
    background: conic-gradient(from 0deg, rgba(163, 230, 53, 0.15) 0deg, transparent 90deg);
    border-radius: 50%;
    animation: sweep 4s linear infinite;
    transform-origin: center;
}
@keyframes sweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.radar-ping {
    position: absolute;
    width: 8px; height: 8px;
    background-color: var(--color-primario);
    border-radius: 50%;
    opacity: 0.3;
    filter: drop-shadow(0 0 6px var(--color-primario));
    transition: all 0.5s ease;
}
.radar-grid-circle {
    position: absolute;
    top: 50%; left: 50%;
    border: 1px dashed rgba(163, 230, 53, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.circle-1 { width: 80px; height: 80px; }
.circle-2 { width: 160px; height: 160px; }
.circle-3 { width: 240px; height: 240px; }
.radar-crosshair-v { position: absolute; left: 50%; width: 1px; height: 100%; background: rgba(163, 230, 53, 0.05); }
.radar-crosshair-h { position: absolute; top: 50%; height: 1px; width: 100%; background: rgba(163, 230, 53, 0.05); }
.radar-telemetry {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: var(--texto-mutado);
    margin-top: 1rem;
    display: flex; gap: 2rem;
    text-transform: uppercase;
}

/* --- BOTONES --- */
.cta-container { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.btn-primary {
    background-color: var(--color-primario); color: #000;
    padding: 1rem 2.2rem; border-radius: 2px; text-decoration: none; font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
}
.btn-primary:hover { background-color: var(--color-linea-empresa); transform: translateY(-1px); }
.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1); color: var(--texto-principal);
    padding: 1rem 2.2rem; border-radius: 2px; text-decoration: none; font-weight: 600;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; background: transparent; transition: all 0.3s;
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.02); }

/* --- CAPACIDADES (SERVICIOS) --- */
.servicios-section { padding: 8rem 2rem; }
.section-title { max-width: 1200px; margin: 0 auto 4.5rem auto; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.6rem; }
.section-title p { color: var(--texto-mutado); font-size: 0.95rem; }
.grid-servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.card-servicio {
    background: var(--bg-tarjeta); border: 1px solid var(--glass-border); border-radius: 3px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.card-servicio::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(163, 230, 53, 0.05), transparent); transition: all 0.6s ease;
}
.card-servicio:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, 0.25); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.card-servicio:hover::before { left: 100%; }
.card-inner { padding: 2.5rem; }
.card-header-icon {
    width: 42px; height: 42px; background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 2px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.8rem;
}
.card-header-icon i { color: var(--color-primario); font-size: 1.1rem; }
.card-servicio h3 { font-size: 1.35rem; margin-bottom: 1rem; font-weight: 600; }
.card-servicio p { color: #94a3b8; font-size: 0.92rem; margin-bottom: 2rem; line-height: 1.6; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-tags span { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.04); padding: 0.25rem 0.6rem; border-radius: 2px; font-size: 0.7rem; color: #cbd5e1; }

/* --- DIRECCIÓN ESTRATÉGICA (MISIÓN / VISIÓN) --- */
.estrategia-section { max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 6rem 2rem; }
.estrategia-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.card-estrategica { background: linear-gradient(180deg, rgba(14, 22, 35, 0.2) 0%, rgba(6, 9, 14, 0.05) 100%); border: 1px solid var(--glass-border); padding: 3rem; border-radius: 2px; }
.icon-header-estrategica { font-size: 1.25rem; font-weight: 600; color: var(--color-primario); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; text-transform: uppercase; }
.card-estrategica p { color: #94a3b8; font-size: 0.95rem; line-height: 1.65; }

/* --- MANIFIESTO --- */
.manifiesto-section { background-color: var(--bg-secundario); padding: 6rem 2rem; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.manifiesto-block { max-width: 900px; margin: 0 auto; }
.manifiesto-tag { font-family: 'Courier Prime', monospace; color: var(--texto-mutado); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 1.2rem; letter-spacing: 1.5px; }
.manifiesto-block p { font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; line-height: 1.6; color: #cbd5e1; }

/* --- TRAYECTORIA Y CONSOLA --- */
.trayectoria-section { background-color: var(--bg-secundario); padding: 8rem 2rem; }
.trayectoria-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.trayectoria-text h3 { font-size: 2rem; margin-bottom: 1.2rem; }
.trayectoria-text p { color: #94a3b8; margin-bottom: 1.5rem; font-size: 0.98rem; }
.terminal-container { background-color: #020305; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); overflow: hidden; }
.terminal-header { background-color: rgba(255, 255, 255, 0.01); padding: 0.8rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.03); display: flex; align-items: center; gap: 0.5rem; }
.terminal-header .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.terminal-header .dot.red { background-color: #ef4444; }
.terminal-header .dot.yellow { background-color: #f59e0b; }
.terminal-header .dot.green { background-color: #10b981; }
.terminal-title { font-family: 'Courier Prime', monospace; font-size: 0.72rem; color: var(--texto-mutado); margin-left: 0.8rem; }
.bitacora-logs { font-family: 'Courier Prime', monospace; padding: 2rem; font-size: 0.8rem; color: #22c55e; background-color: #020304; }
.bitacora-logs .log-line { margin-bottom: 0.8rem; line-height: 1.5; }
.bitacora-logs .log-line span.log-tag { color: var(--color-primario); font-weight: bold; margin-right: 0.4rem; }
.blink-line span { animation: blink 1.1s infinite; color: var(--color-secundario); }

/* --- CONTACTO --- */
.contacto-section { padding: 8rem 2rem; max-width: 1200px; margin: 0 auto; }
.contacto-wrapper {
    border: 1px solid var(--glass-border); background: linear-gradient(180deg, rgba(14, 22, 35, 0.25) 0%, rgba(4, 6, 10, 0.05) 100%);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 4.5rem 3.5rem; border-radius: 4px;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center;
}
.contacto-info h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.contacto-info p { color: #94a3b8; font-size: 1rem; }
.contacto-actions { display: flex; flex-direction: column; gap: 1rem; }
.btn-whatsapp {
    background-color: #16a34a; color: #fff; padding: 1.1rem 2rem; border-radius: 2px; text-decoration: none; font-weight: 700;
    font-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; font-size: 0.82rem; transition: background-color 0.3s;
}
.btn-whatsapp:hover { background-color: #15803d; }
.btn-email {
    border: 1px solid rgba(255, 255, 255, 0.08); color: var(--texto-principal); padding: 1.1rem 2rem; border-radius: 2px; text-decoration: none; font-weight: 600;
    font-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; font-size: 0.82rem; background: transparent; transition: all 0.3s ease;
}
.btn-email:hover { background-color: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.2); }

/* --- FOOTER --- */
footer { background-color: #010203; padding: 2.5rem 2rem; text-align: center; border-top: 1px solid var(--glass-border); font-family: 'Courier Prime', monospace; font-size: 0.75rem; color: #334155; }

/* --- ANIMACIONES --- */
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.4); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(132, 204, 22, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-wrapper-grid, .estrategia-container, .trayectoria-container, .contacto-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    header h1 { font-size: 2.6rem; }
    .radar-viewport { order: -1; margin-bottom: 2rem; }
    .nav-links { display: none; }
}
