/* =========================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    /* Paleta Base */
    --bg-deep: #02040a;       /* Fondo principal */
    --bg-panel: #0b1221;      /* Fondo tarjetas */
    --text-main: #e0f2fe;     /* Texto principal */
    --text-muted: #94a3b8;    /* Texto secundario */
    
    /* Acentos Neón */
    --neon-cyan: #00f3ff;     /* Color primario */
    --neon-blue: #0066ff;     /* Color secundario */
    
    /* Efectos */
    --glow-text: 0 0 15px rgba(0, 243, 255, 0.6);
    --glow-box: 0 0 20px rgba(0, 102, 255, 0.2);
    --border-tech: 1px solid rgba(0, 243, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 110px; /* Altura de la barra superior */
    --radius: 4px;
    --ease-tech: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 120px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Fondo de circuito/grid */
    background-image: 
        linear-gradient(rgba(2, 4, 10, 0.9), rgba(2, 4, 10, 0.95)),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    padding-top: var(--header-height);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 4px; }
::selection { background: var(--neon-cyan); color: var(--bg-deep); }

/* --- PRELOADER (CENTRADO) --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #02040a; 
    z-index: 10000; 
    
    /* Centrado Flexbox */
    display: flex; 
    align-items: center; 
    justify-content: center;
    
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
body.loaded #preloader { opacity: 0; visibility: hidden; }

.loader-text { 
    font-family: 'Courier New', monospace; 
    color: var(--neon-cyan); 
    text-align: center; 
    font-size: 0.9rem; 
}
.loader-text p { animation: flicker 1.5s infinite alternate; }
.loader-text p:last-child { animation-delay: 0.5s; }
.loader-line {
    display: block; width: 100%; height: 2px; background: var(--neon-blue);
    margin-top: 15px; animation: loading 2s linear infinite;
}
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: 0.3; } }
@keyframes loading { 0% { width: 0; } 100% { width: 100%; } }


/* =========================================
   3. HEADER & NAVEGACIÓN
   ========================================= */
.site-header {
    position: fixed; top: 0; width: 100%; height: var(--header-height); z-index: 1000;
    background: rgba(2, 4, 10, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

/* Contenedor Header Expandido */
.site-header .container {
    max-width: 100% !important;
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    height: 100%;
}

.header-grid {
    display: flex;
    justify-content: space-between; /* Separa Logo (Izq) de Menú (Der) */
    align-items: center;
    height: 100%;
}

/* --- LOGO --- */
.logo-3d { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-3d img { width: 70px; height: 70px; filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)); transition: transform 0.6s var(--ease-tech); }
.logo-3d:hover .logo-spin { transform: rotate(180deg) scale(1.1); }
.logo-text { font-size: 2.2rem; font-weight: 700; letter-spacing: 1px; color: var(--text-main); }
.accent { background: linear-gradient(135deg, #00f3ff, #0066ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }

/* --- MENÚ DE NAVEGACIÓN --- */
.main-nav {
    display: flex; align-items: center; gap: 30px;
    
    /* Alineación a la derecha */
    justify-content: flex-end;
    margin-left: auto; 
}

/* Enlaces de texto */
.main-nav a:not(.cta-button) {
    text-decoration: none; color: var(--text-muted); font-weight: 500;
    font-size: 1.1rem; transition: color 0.3s ease; position: relative; white-space: nowrap;
}
.main-nav a:not(.cta-button):hover { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0, 243, 255, 0.4); }
.main-nav a:not(.cta-button)::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--neon-cyan); transition: width 0.3s ease; box-shadow: 0 0 5px var(--neon-cyan);
}
.main-nav a:not(.cta-button):hover::after { width: 100%; }

/* --- BOTÓN DE CONTACTO --- */
.cta-button {
    margin-left: 20px;
    border-radius: 50px; /* Redondo */
    /* Fondo Oscuro */
    background: linear-gradient(135deg, rgba(2, 10, 30, 0.9) 0%, rgba(0, 40, 100, 0.6) 100%);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan) !important;
    font-weight: 700; letter-spacing: 1px; font-size: 1rem; padding: 14px 40px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease; position: relative; overflow: hidden;
}

.cta-button:hover {
    background: linear-gradient(90deg, var(--neon-blue), #008cff);
    color: #ffffff !important; /* Blanco legible */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border-color: white;
    box-shadow: 0 0 25px var(--neon-blue);
    transform: translateY(-2px);
}

/* --- DROPDOWN --- */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: transparent; color: var(--text-muted); font-size: 1.1rem; text-transform: uppercase; border: none; cursor: pointer; font-family: inherit; font-weight: 500; padding: 10px 0; transition: 0.3s; }
.dropdown:hover .dropbtn { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

.dropdown-content {
    display: none; /* Oculto por defecto */
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background-color: var(--bg-panel); min-width: 180px;
    border: 1px solid var(--neon-blue); box-shadow: var(--glow-box);
    z-index: 1001; border-top: 2px solid var(--neon-cyan);
}
/* Solo se muestra al hacer hover */
.dropdown:hover .dropdown-content { display: block; animation: fadeInTech 0.3s ease; }

.dropdown-content a { color: var(--text-main); padding: 12px 16px; text-decoration: none; display: block; font-size: 0.9rem; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dropdown-content a:hover { background-color: rgba(0, 243, 255, 0.1); color: var(--neon-cyan); }
@keyframes fadeInTech { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero { min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vw; height: 80vw; background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%); pointer-events: none; z-index: -1; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: -1px; }
.text-gradient { color: var(--neon-cyan); text-shadow: 0 0 20px rgba(0, 243, 255, 0.4); }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 2.5rem; }

/* Botones Generales */
.btn { display: inline-block; padding: 14px 32px; border-radius: 2px; font-weight: 600; text-decoration: none; text-transform: uppercase; transition: all 0.3s ease; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--neon-cyan); color: var(--bg-deep); border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); }
.btn.primary:hover { background: white; box-shadow: 0 0 30px var(--neon-cyan); }
.btn.secondary { background: transparent; border: 1px solid var(--text-muted); color: var(--text-main); }
.btn.secondary:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

/* =========================================
   5. COMPONENTES Y SECCIONES
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 100px 0; position: relative; }
.section-title { font-size: 2.2rem; text-align: center; margin-bottom: 60px; text-transform: uppercase; color: white; }

/* Carrusel Infinito (Marquee) */
.tech-marquee {
    background: var(--bg-panel); border-top: 1px solid rgba(0, 243, 255, 0.1); border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding: 25px 0; overflow: hidden; position: relative; white-space: nowrap;
}
.tech-marquee::before { content: ''; position: absolute; top: 0; left: 0; width: 150px; height: 100%; z-index: 2; background: linear-gradient(to right, var(--bg-deep), transparent); }
.tech-marquee::after { content: ''; position: absolute; top: 0; right: 0; width: 150px; height: 100%; z-index: 2; background: linear-gradient(to left, var(--bg-deep), transparent); }

.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.tech-item { display: flex; align-items: center; padding: 0 40px; font-size: 1.2rem; font-weight: 700; color: var(--text-muted); letter-spacing: 2px; transition: 0.3s; }
.tech-item:hover { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg-panel); border: 1px solid rgba(0, 243, 255, 0.1); padding: 32px; transition: 0.3s; clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%); }
.card:hover { transform: translateY(-5px); border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); }
.card .icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.card h3 { color: white; margin-bottom: 10px; }

/* Calculadora ROI (Estilo Terminal) */
.roi-calculator {
    background: var(--bg-panel); border: 1px solid var(--neon-cyan);
    padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: center; max-width: 900px; margin: 0 auto; box-shadow: var(--glow-box);
    border-radius: 4px;
}
.roi-calculator .input-group label { display: block; color: var(--text-muted); margin-bottom: 8px; text-align: left; font-size: 0.9rem; position: static; }
.roi-calculator .input-group input {
    width: 100%; padding: 16px; background: var(--bg-deep);
    border: 1px solid #334155; color: var(--neon-cyan);
    font-family: 'Courier New', monospace; outline: none;
    transition: 0.3s; border-radius: 4px; font-size: 1rem;
}
.roi-calculator .input-group input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); }
.roi-result { text-align: center; border-left: none; }
/* Ajuste del resultado para que NO rompa la página */
.roi-result h3 {
    font-size: 3rem; 
    font-weight: 800; 
    margin: 15px 0;
    
    /* --- NUEVO: CONTROL DE DESBORDAMIENTO --- */
    word-wrap: break-word;       /* Rompe la palabra si es muy larga */
    overflow-wrap: break-word;   /* Estándar moderno */
    max-width: 100%;             /* No permite que sea más ancho que su padre */
    line-height: 1.1;            /* Mejor espaciado si ocupa dos líneas */
}

/* Ajuste para móviles (Reducir fuente si es muy grande) */
@media (max-width: 768px) {
    .roi-result h3 {
        font-size: 2.2rem; /* Texto más pequeño en móvil */
    }
}

/* Casos de Uso */
.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.compare-card { border: 1px solid var(--neon-blue); background: rgba(11, 18, 33, 0.6); border-radius: 4px; overflow: hidden; }
.compare-header { padding: 15px; text-align: center; font-weight: bold; background: rgba(0,0,0,0.3); color: var(--text-muted); }
.compare-header.active { background: rgba(0, 243, 255, 0.1); color: var(--neon-cyan); border-top: 1px solid var(--neon-blue); }
.compare-body { padding: 20px; font-size: 0.9rem; }
.compare-body ul { list-style: none; padding: 0; }
.compare-body li { margin-bottom: 10px; color: var(--text-muted); }
.compare-divider { text-align: center; font-weight: 800; color: white; background: var(--neon-blue); padding: 5px; font-size: 0.8rem; }

/* Metodología */
.method-lead { max-width: 800px; margin: 0 auto 50px; text-align: center; color: var(--text-muted); }
.method-lead strong { color: var(--neon-cyan); }
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 800px; margin: 0 auto; }
.step { background: rgba(2, 4, 10, 0.6); border: 1px solid rgba(0, 102, 255, 0.2); padding: 24px; display: flex; gap: 20px; align-items: center; }
.step .num { font-size: 1.5rem; font-weight: 800; color: var(--bg-deep); background: var(--neon-cyan); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }

/* Quienes Somos */
.about-section { background: linear-gradient(to bottom, #0a0f1e, var(--bg-deep)); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.founder-quote { border-left: 3px solid var(--neon-cyan); padding-left: 20px; margin-top: 30px; color: white; font-style: italic; }
.value-card { display: flex; gap: 20px; background: var(--bg-panel); padding: 20px; border: 1px solid rgba(0, 102, 255, 0.2); margin-bottom: 15px; transition: 0.3s; }
.value-card:hover { border-color: var(--neon-cyan); transform: translateX(10px); }
.value-icon { font-size: 1.5rem; color: var(--neon-cyan); }


/* =========================================
   6. FORMULARIO
   ========================================= */
.contact-section { background: linear-gradient(to bottom, var(--bg-deep), #0a0f1e); }
.contact-subtitle { text-align: center; color: var(--text-muted); margin-top: -40px; margin-bottom: 40px; }
.contact-subtitle .highlight { color: var(--neon-cyan); }

.contact-form {
    max-width: 600px; margin: 0 auto; padding: 40px;
    background: rgba(11, 18, 33, 0.9); border: 1px solid var(--neon-blue);
    box-shadow: var(--glow-box); position: relative;
}
.contact-form::after { content: ''; position: absolute; bottom: -5px; right: -5px; width: 20px; height: 20px; border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }
.contact-form::before { content: ''; position: absolute; top: -5px; left: -5px; width: 20px; height: 20px; border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.input-group { position: relative; margin-bottom: 24px; }
.input-group input, .input-group textarea {
    width: 100%; padding: 16px; background: var(--bg-deep);
    border: 1px solid #334155; color: var(--neon-cyan);
    font-family: 'Courier New', monospace; outline: none;
    transition: 0.3s; border-radius: 2px;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); }
.input-group label { position: absolute; left: 16px; top: 16px; color: #64748b; pointer-events: none; transition: 0.3s; }
/* Efecto label flotante */
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label, .input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px; left: 10px; font-size: 0.8rem; background: var(--bg-deep); padding: 0 6px; color: var(--neon-cyan);
}
.full-width { width: 100%; margin-top: 10px; cursor: pointer; }
.checkbox-wrapper label a { color: var(--neon-cyan); }

/* =========================================
   7. PÁGINA DE GRACIAS (CENTRADO)
   ========================================= */
.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;  /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    padding: 20px;
    background-image: 
        linear-gradient(rgba(2, 4, 10, 0.9), rgba(2, 4, 10, 0.95)),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.success-card {
    background: rgba(11, 18, 33, 0.9); 
    border: 1px solid var(--neon-cyan);
    padding: 50px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.success-card::before { content: ''; position: absolute; top: -2px; left: -2px; width: 20px; height: 20px; border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.success-card::after { content: ''; position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }

.success-icon { position: relative; width: 80px; height: 80px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: center; }
.success-icon .ring { position: absolute; width: 100%; height: 100%; border: 2px dashed var(--neon-blue); border-radius: 50%; animation: spinSlow 10s linear infinite; }
.success-icon .check { font-size: 2.5rem; color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan); animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.glitch-text { font-size: 2.2rem; color: white; margin-bottom: 20px; letter-spacing: 3px; font-weight: 800; text-transform: uppercase; text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); }
.terminal-output { background: #050912; border-left: 3px solid var(--neon-blue); padding: 15px; text-align: left; font-family: 'Courier Prime', monospace; color: var(--neon-cyan); font-size: 0.85rem; margin-bottom: 25px; box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.05); }
.human-msg { color: var(--text-muted); margin-bottom: 30px; font-size: 1rem; }
.redirect-box { margin-top: 40px; }
.redirect-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.progress-fill { position: absolute; top: 0; left: 0; height: 100%; width: 100%; background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan)); transform-origin: left; animation: progress 3s linear forwards; }
.manual-redirect-btn { margin-top: 10px; }
@keyframes spinSlow { 100% { transform: rotate(360deg); } }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }


/* =========================================
   8. FOOTER, LEGAL Y EXTRAS
   ========================================= */
.site-footer { background-color: #010205; border-top: 1px solid rgba(0, 243, 255, 0.2); padding-top: 60px; margin-top: 80px; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent); opacity: 0.5; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; align-items: start; justify-items: start; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.footer-title { color: white; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 25px; text-transform: uppercase; font-weight: 700; position: relative; }
.footer-title::after { content: ''; display: block; width: 30px; height: 2px; background: var(--neon-blue); margin-top: 8px; }
.footer-nav-list, .contact-details { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; width: 100%; }
.footer-nav-list a, .contact-item { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.3s; display: block; }
.footer-nav-list a:hover { color: var(--neon-cyan); transform: translateX(5px); text-shadow: 0 0 8px rgba(0, 243, 255, 0.4); }
.contact-item { display: flex; align-items: center; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 25px 0; text-align: center; font-size: 0.8rem; color: #ffffff; margin-top: 20px; width: 100%; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: -100%; left: 20px; right: 20px; max-width: 900px; margin: 0 auto; background: rgba(11, 18, 33, 0.95); border: 1px solid var(--neon-blue); box-shadow: 0 0 30px rgba(0, 243, 255, 0.15); padding: 20px; z-index: 9999; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: bottom 0.6s ease; border-left: 4px solid var(--neon-cyan); }
.cookie-banner.show { bottom: 20px; }
.cookie-content { display: flex; align-items: center; gap: 15px; }
.cookie-icon { font-size: 1.5rem; animation: flicker 2s infinite; }
.cookie-text h4 { color: var(--neon-cyan); font-size: 0.9rem; margin-bottom: 4px; letter-spacing: 1px; }
.cookie-text p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.cookie-text a { color: white; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.btn.small { padding: 8px 16px; font-size: 0.8rem; }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: rgba(0, 20, 40, 0.9); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(0, 243, 255, 0.3); z-index: 1000; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); background: var(--neon-cyan); color: #000; }

/* Legal Page Tables */
.table-responsive { overflow-x: auto; margin: 30px 0; border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 4px; }
.tech-table { width: 100%; border-collapse: collapse; background: rgba(11, 18, 33, 0.5); font-size: 0.9rem; }
.tech-table th { background: rgba(0, 243, 255, 0.1); color: var(--neon-cyan); text-align: left; padding: 15px; border-bottom: 2px solid var(--neon-blue); }
.tech-table td { padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.code-font { font-family: 'Courier New', monospace; color: var(--neon-blue) !important; font-weight: bold; }
.legal-wrapper { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.legal-nav { background: var(--bg-panel); padding: 20px; border: 1px solid var(--neon-blue); position: sticky; top: 100px; }
.legal-nav h3 { color: var(--neon-cyan); font-size: 0.9rem; text-transform: uppercase; margin-bottom: 15px; border-bottom: 1px solid rgba(0, 243, 255, 0.2); padding-bottom: 10px; }
.legal-nav a { display: block; color: var(--text-muted); text-decoration: none; padding: 10px 0; font-size: 0.95rem; transition: 0.3s; }
.legal-nav a:hover, .legal-nav a.active { color: white; padding-left: 10px; border-left: 2px solid var(--neon-cyan); }
.legal-content { background: rgba(11, 18, 33, 0.6); padding: 40px; border: 1px solid rgba(0, 243, 255, 0.1); }

/* Animaciones Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-tech); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   9. MEDIA QUERIES (MÓVIL)
   ========================================= */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }
.mobile-toggle span { display: block; width: 25px; height: 2px; background: var(--neon-cyan); margin: 5px 0; transition: 0.3s; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-text { text-align: center; }
    .legal-wrapper { grid-template-columns: 1fr; }
    .legal-nav { position: relative; top: 0; margin-bottom: 20px; }
}

@media (max-width: 768px) {
    /* Header Móvil */
    .mobile-toggle { display: block; }
    .main-nav {
        display: none; /* Se oculta por defecto */
        position: fixed; top: var(--header-height); right: 0;
        width: 80%; height: calc(100vh - var(--header-height));
        background: rgba(11, 18, 33, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; padding: 40px; gap: 20px;
        align-items: flex-start; border-left: 1px solid var(--neon-blue);
        transition: 0.4s ease;
    }
    .main-nav.open { display: flex; animation: slideIn 0.3s ease-out; }
    @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
    
    .main-nav a { font-size: 1.2rem; width: 100%; display: block; }
    .cta-button { width: 100%; text-align: center; margin-left: 0; margin-top: 20px; }
    
    .hero h1 { font-size: 2.5rem; }
    .form-row, .roi-calculator { grid-template-columns: 1fr; }
    
    /* Footer Móvil */
    .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-col, .footer-nav-list, .contact-details { align-items: center; }
    .contact-item { justify-content: center; }
    .footer-title::after { margin: 8px auto 0 auto; }
    
    /* Cookies Móvil */
    .cookie-banner { flex-direction: column; align-items: flex-start; left: 10px; right: 10px; }
    .cookie-actions { width: 100%; justify-content: flex-end; }
    
    /* Logo Móvil */
    .logo-3d img { width: 40px; height: 40px; }
    .logo-text { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .logo-3d img { width: 35px; height: 35px; }
    .logo-text { font-size: 1.1rem !important; }
    .site-header .container { padding-left: 20px; padding-right: 20px; }
}