/* =========================================
   GLOBAL.CSS // NÚCLEO DEL SISTEMA INTERDYM
   ========================================= */
:root {
    --bg-dark: #080a0b;
    --neon-yellow: #ffea00;
    --neon-yellow-glow: rgba(255, 234, 0, 0.4);
    --tech-gray: #b0b5b9;
    --font-display: 'Orbitron', sans-serif;
    --font-text: 'Rajdhani', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-text);
    background-color: #0b0c0d;
    background-image: repeating-radial-gradient(circle, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px);
    color: white;
    overflow-x: hidden;
}

/* 1. Malla de Ingeniería (Triple Capa Visible) */
.bg-base-textura { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -12; background-color: var(--bg-dark); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 10px), linear-gradient(rgba(255,234,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,234,0,0.05) 1px, transparent 1px); background-size: 100% 100%, 40px 40px, 40px 40px; }
.bg-brillo-central { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -11; background: radial-gradient(circle at 20% 50%, rgba(255, 234, 0, 0.05) 0%, transparent 60%); }
.video-split-container { position: absolute; top: 52%; right: 2%; transform: translateY(-50%); width: 48vw; aspect-ratio: 16 / 9; z-index: -10; overflow: hidden; border-radius: 4px; box-shadow: -50px 0 100px var(--bg-dark), 0 0 30px rgba(255,234,0,0.05); }
.bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 4px); z-index: 1; pointer-events: none; }
.video-marco-decorativo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid rgba(255, 255, 255, 0.05); border-left: 2px solid var(--neon-yellow); z-index: 2; pointer-events: none; }

/* ELEMENTOS HUD Y SISTEMA */
.hud-marco { position: fixed; width: 50px; height: 50px; border: 2px solid var(--neon-yellow); z-index: 9000; opacity: 0.5; pointer-events: none; }
.top-left { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.top-right { top: 30px; right: 30px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.bottom-right { bottom: 30px; right: 30px; border-left: none; border-top: none; }
.etiqueta-sistema { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.2); padding: 8px 15px; font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; margin-bottom: 30px; background: rgba(0,0,0,0.5); }
.punto-rojo { width: 8px; height: 8px; background-color: #ff3333; border-radius: 50%; box-shadow: 0 0 10px red; }

/* BOTONES GLOBALES */
.btn-cyber-outline { flex-shrink: 0; border: 1px solid var(--neon-yellow); padding: 10px 18px; color: var(--neon-yellow); font-family: var(--font-display); font-size: 11px; text-decoration: none; position: relative; overflow: hidden; letter-spacing: 1px; white-space: nowrap; }
.btn-cyber-outline:hover { background-color: var(--neon-yellow); color: var(--bg-dark); box-shadow: 0 0 20px var(--neon-yellow-glow); }
.btn-cyber-solid { background-color: var(--neon-yellow); color: var(--bg-dark); font-family: var(--font-display); font-weight: 900; padding: 15px 35px; font-size: 13px; text-decoration: none; letter-spacing: 2px; display: inline-flex; align-items: center; gap: 15px; transition: 0.3s; clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%); white-space: nowrap; }
.btn-cyber-solid:hover { background-color: white; transform: scale(1.05); }
.btn-cyber-solid.alt { background-color: transparent; color: var(--neon-yellow); border: 2px solid var(--neon-yellow); }
.btn-cyber-solid.alt:hover { background-color: var(--neon-yellow); color: var(--bg-dark); border-color: var(--neon-yellow); }

/* HEADER CYBER */
.header-2099 { position: fixed; top: 0; left: 0; width: 100%; padding: 10px 3%; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 15px; z-index: 9999; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(8, 10, 11, 0.85); backdrop-filter: blur(10px); }
.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-imagen { height: 60px; width: auto; display: block; image-rendering: crisp-edges; filter: drop-shadow(0px 0px 8px var(--neon-yellow-glow)); transition: transform 0.3s ease; }
.logo-imagen:hover { transform: scale(1.05); }

.nav-cyber { display: flex; gap: 12px; align-items: center; justify-content: center; flex-grow: 1; }
.nav-cyber > a { font-family: var(--font-display); font-size: 10px; color: white; text-decoration: none; letter-spacing: 1px; position: relative; transition: color 0.3s; padding: 4px 0; white-space: nowrap; }
.nav-cyber > a::before, .nav-cyber > a::after { position: absolute; opacity: 0; color: var(--neon-yellow); transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); font-weight: 900; }
.nav-cyber > a::before { content: '['; left: -10px; }
.nav-cyber > a::after { content: ']'; right: -10px; }
.nav-cyber > a:hover { color: var(--neon-yellow); text-shadow: 0 0 8px var(--neon-yellow-glow); }
.nav-cyber > a:hover::before { opacity: 1; left: -6px; }
.nav-cyber > a:hover::after { opacity: 1; right: -6px; }

/* MEGA MENÚ */
.nav-item-mega { position: static; display: inline-block; }
.nav-link-mega { cursor: pointer; position: relative; padding-bottom: 15px; font-family: var(--font-display); font-size: 10px; color: white; text-decoration: none; letter-spacing: 1px; transition: 0.3s;}
.nav-link-mega:hover { color: var(--neon-yellow); text-shadow: 0 0 8px var(--neon-yellow-glow); }
.flecha-mega { font-size: 8px; color: var(--neon-yellow); vertical-align: middle; margin-left: 5px; transition: 0.3s; display: inline-block;}
.mega-menu { position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(2, 11, 20, 0.95); backdrop-filter: blur(15px); border-top: 2px solid var(--neon-yellow); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 40px 5%; box-shadow: 0 30px 60px rgba(0,0,0,0.9); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease-in-out; z-index: 999; box-sizing: border-box; }
.nav-item-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item-mega:hover .flecha-mega { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; max-width: 1500px; margin: 0 auto; }
.mega-columna h4 { font-family: var(--font-display); font-size: 13px; color: white; letter-spacing: 2px; margin-bottom: 20px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px; }
.mega-columna ul { list-style: none; padding: 0; margin: 0; }
.mega-columna li { margin-bottom: 12px; }
.mega-columna a { font-family: var(--font-text); font-size: 11px; color: #999; text-decoration: none; transition: 0.3s ease; display: inline-block; }
.mega-columna a:hover { color: var(--neon-yellow); transform: translateX(5px); }
.mega-subtitulo { font-family: var(--font-display); font-size: 10px; color: var(--tech-gray); margin: 15px 0 8px 0 !important; letter-spacing: 1px; }

/* FOOTER B2B */
.interdym-footer { background-color: #01060b; border-top: 2px solid var(--tech-gray); padding: 50px 5% 20px 5%; font-family: var(--font-text); color: #888; position: relative; z-index: 20; }
.footer-versiculo { text-align: center; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.footer-versiculo p { font-family: 'Georgia', serif; font-style: italic; font-size: 15px; color: #b0b0b0; letter-spacing: 1px; max-width: 800px; margin: 0 auto; line-height: 1.6; }
.versiculo-ref { display: block; margin-top: 15px; font-family: var(--font-display); font-style: normal; font-size: 10px; color: var(--neon-yellow); letter-spacing: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: 1400px; margin: 0 auto 50px auto; }
.footer-col h4 { font-family: var(--font-display); font-size: 11px; color: white; letter-spacing: 2px; margin-bottom: 25px; border-left: 3px solid var(--neon-yellow); padding-left: 10px; }
.marca-col h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: 4px; margin-bottom: 15px; }
.desc-marca { font-size: 12px; line-height: 1.6; color: #999; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; font-size: 11px; color: #999; font-family: var(--font-display); letter-spacing: 1px;}
.footer-links a { color: #999; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--neon-yellow); transform: translateX(5px); }
.redes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.red-link { display: flex; align-items: center; justify-content: center; height: 40px; border: 1px solid var(--tech-gray); color: #ccc; font-family: var(--font-display); font-size: 12px; text-decoration: none; transition: all 0.3s ease; background: rgba(0,0,0,0.5); letter-spacing: 1px; }
.red-link:hover { background: var(--neon-yellow); color: black; border-color: var(--neon-yellow); font-weight: bold; box-shadow: 0 0 15px rgba(255,234,0,0.3); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; max-width: 1400px; margin: 0 auto; }
.legal-content { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-family: var(--font-display); letter-spacing: 1px; color: #666; }
.status-terminal { color: #0f0; display: flex; align-items: center; gap: 10px; }
.punto-verde { width: 8px; height: 8px; background-color: #0f0; border-radius: 50%; box-shadow: 0 0 10px #0f0; animation: latido-terminal 1.5s infinite; }
@keyframes latido-terminal { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* GLOBALES RESPONSIVE */
@media (max-width: 1200px) {
    .header-2099 { flex-wrap: wrap; justify-content: center; padding: 15px; gap: 15px;}
    .nav-cyber { width: 100%; order: 3; } 
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .legal-content { flex-direction: column; gap: 15px; text-align: center; }
}

/* =========================================
   ENLACE TÁCTICO WHATSAPP (SLIDE-OUT)
   ========================================= */
.wsp-flotante {
    position: fixed;
    bottom: 40px;
    right: 0; /* Pegado milimétricamente al borde derecho */
    background: rgba(5, 8, 12, 0.95);
    border: 1px solid var(--neon-yellow);
    border-right: none; /* Sin borde derecho para que parezca salir de la pantalla */
    border-radius: 4px 0 0 4px; /* Suavizamos solo el lado izquierdo */
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 9999;
    backdrop-filter: blur(5px);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
    
    /* LA MAGIA: Lo movemos hacia la derecha ocultando el texto, dejando solo 45px visibles */
    transform: translateX(calc(100% - 43px)); 
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.wsp-flotante:hover {
    /* Al pasar el mouse, regresa a su posición original (0) revelando todo */
    transform: translateX(0); 
    background: var(--neon-yellow);
}

.wsp-texto {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--neon-yellow);
    letter-spacing: 2px;
    transition: color 0.3s;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
    padding-right: 15px; /* Damos un pequeño respiro al final del texto */
}

.wsp-flotante:hover .wsp-texto {
    color: black;
    font-weight: bold;
}

.wsp-ping {
    width: 10px;
    height: 10px;
    background-color: var(--neon-yellow);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0; /* Impide que el punto se aplaste */
    margin-left: 5px; /* Centra el punto en la pestaña asomada */
}

.wsp-ping::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border: 1px solid var(--neon-yellow);
    border-radius: 50%;
    animation: pulso-radar 1.5s infinite;
}

.wsp-flotante:hover .wsp-ping {
    background-color: black;
}
.wsp-flotante:hover .wsp-ping::after {
    border-color: black;
}