/* ==========================================================================
   ORIUS CORE - MASTER STYLESHEET (MTT-Engineering B2B Vault)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES Y BASE (Identidad Efecso)
   -------------------------------------------------------------------------- */
:root {
    --c-white: #FFFFFF;
    --c-steel: #868485;
    --c-steel-dark: #1B233A; /* Azul Noche Efecso (Texto principal y contrastes) */
    --c-grid: rgba(27, 35, 58, 0.10); 
    
    --c-brand: #C30E15;       /* Rojo Corporativo Efecso (CTAs y Alertas) */
    --c-brand-hover: #9A0B10; /* Rojo en estado hover */
    
    --c-brand-alt: #1D3362;   /* Azul Marino Efecso (Fondos sólidos, Footer, Navbar) */
    --c-brand-alt-hover: #4A6B9C; /* Azul Metálico Efecso (Brillos y hovers secundarios) */
    
    --font-sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "Consolas", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background-color: var(--c-white);
    color: var(--c-steel-dark);
    line-height: 1.6;
    background-size: 40px 40px;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.bg-solid { background-color: var(--c-white); border-top: 1px solid var(--c-steel); border-bottom: 1px solid var(--c-steel); }

section h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-steel-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}


.mobile-toggle { display: none !important; }

/* --------------------------------------------------------------------------
   2. NAVEGACIÓN (Corrección de Espaciado Efecso)
   -------------------------------------------------------------------------- */
.nav-container { 
    display: flex; 
    justify-content: space-between; /* Fuerza al logo a la izq y al menú a la der */
    align-items: center; 
    position: relative; 
    width: 100%;
    max-width: 1400px; /* Dale un poco más de aire al contenedor si tu pantalla es ancha */
}

/* Forzar que el grupo de enlaces ocupe el espacio restante y empuje a la derecha */
.nav-links { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; /* Alinea los enlaces hacia el botón */
    flex-grow: 1; /* Permite que el contenedor del menú ocupe el espacio disponible */
    gap: clamp(0.5rem, 1.5vw, 2rem); /* Reduce el gap mínimo para evitar colisiones */
}

.nav-links > a, 
.nav-item-dropdown > a { 
    color: var(--c-brand-alt); 
    font-size: 0.9rem; /* Recuperamos tamaño */
    font-weight: 600;
    text-transform: uppercase; /* Forzamos mayúsculas para un look más sólido */
    letter-spacing: 1px; 
    text-decoration: none;
}

.nav-links { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
    flex-grow: 1; 
    gap: clamp(0.5rem, 1.5vw, 1.5rem); /* Separación ajustada para pantallas medianas */
}

/* ==========================================================================
   3. FOOTER INDUSTRIAL (Identidad Efecso - Fondo Blanco)
   ========================================================================== */
.site-footer { 
    background-color: var(--c-white) !important; /* Fondo blanco puro */
    color: var(--c-steel-dark); 
    padding: 3rem 0 0 0; 
    border-top: 4px solid var(--c-brand); /* Línea de impacto Rojo Corporativo */
}

/* Grid Layout de 2 columnas */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto; 
    gap: 30px; 
    align-items: start;
    margin-bottom: 2rem; 
}

/* Logo más grande a color natural */
.footer-brand {
    margin-bottom: 0 !important; /* Retiramos el margen inferior porque ahora están en línea */
    flex-shrink: 0; /* Evita que el logo se deforme si hay mucho texto */
}

.footer-brand .footer-logo { 
    height: auto; 
    max-height: 120px; /* LOGO MÁS GRANDE (Aumentado de 80px a 120px) */
    max-width: 100%;
    background-color: transparent; 
    padding: 0;
    opacity: 1; 
    transition: transform 0.3s ease;
}

.footer-brand .footer-logo:hover {
    transform: scale(1.05); 
}

/* Configuración Flex para Logo + Texto */
.footer-contact {
    display: flex;
    align-items: center; /* Alinea verticalmente al centro el logo y los textos */
    gap: 2.5rem; /* Espaciado entre el logo y la dirección */
    flex-wrap: wrap; /* Permite que colapse de forma segura en móviles */
}

.footer-location-line {
    color: var(--c-brand-alt); /* Azul Marino para resaltar la Razón Social */
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.3rem !important;
    line-height: 1.4;
}

.footer-address, .footer-geo {
    color: var(--c-steel-dark); /* Azul Noche para lectura limpia */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.3rem !important;
}

.footer-geo {
    font-family: var(--font-sans);
}

/* Enlace de correo destacado */
.footer-mail { 
    color: var(--c-brand) !important; /* Correo en Rojo Corporativo */
    text-decoration: none !important; 
    font-weight: 700; 
    font-size: 0.95rem; 
    display: inline-block; 
    margin-top: 0.8rem !important; 
    transition: color 0.3s ease; 
}
.footer-mail:hover { 
    color: var(--c-brand-alt) !important; /* Hover mecánico a Azul Marino */
}

/* Redes Sociales en Azul Marino */
.footer-social-wrapper {
    display: flex;
    justify-content: flex-end;
}
.footer-socials { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
}
.social-icon-link { 
    color: var(--c-brand-alt) !important; /* Iconos en Azul Marino */
    text-decoration: none !important; 
    font-size: 1.8rem; 
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
}
.social-icon-link:hover { 
    color: var(--c-brand) !important; /* Hover a Rojo Corporativo */
    transform: translateY(-3px); 
}

/* Barra inferior adaptada a fondo blanco */
.footer-bottom-bar {
    border-top: 1px solid var(--c-grid) !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: 1rem;
}
.copyright-text {
    color: var(--c-steel);
}
.powered-brand {
    color: var(--c-steel-dark);
}

/* Colapso en móviles */
@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column; /* Apila el logo sobre el texto en celular */
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* ==========================================
   BARRA INFERIOR (Derechos y Firma Orius)
   ========================================== */
.footer-bottom { 
    background-color: transparent !important; /* Permite fluir el fondo blanco del padre */
    padding: 1.5rem 0; 
    text-align: center; 
    border-top: 1px solid var(--c-grid) !important; /* Gris sutil en lugar de blanco */
}

.footer-bottom-bar {
    width: 100%; 
    max-width: 1200px; 
    margin: 30px auto 0; /* Margen superior ajustado */
    padding-top: 20px; 
    padding-bottom: 15px; 
    border-top: 1px solid var(--c-grid); /* División oscura y sutil */
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px;
}

.copyright-text { 
    color: var(--c-steel); /* Gris acero para lectura secundaria */
    font-size: 0.8rem; 
    font-weight: 700; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
}

.powered-by-badge { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
}
.powered-by-badge:hover .powered-text, 
.powered-by-badge:hover .powered-brand { 
    color: var(--c-brand); /* Transición directa a Rojo Corporativo */
}
.powered-text { 
    color: var(--c-steel); 
    font-size: 0.7rem; 
    font-weight: 700; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    transition: color 0.3s ease; 
}
.powered-logo { 
    height: 45px; 
    width: auto; 
    display: block; 
    transition: transform 0.3s ease; 
}
.powered-by-badge:hover .powered-logo { 
    transform: scale(1.05); 
}
.powered-brand { 
    color: var(--c-steel-dark); /* CAMBIO CRÍTICO: Azul Noche en lugar de Blanco */
    font-family: 'Oswald', sans-serif; 
    font-size: 1rem; 
    font-weight: 700; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    transition: color 0.3s ease; 
}

/* Colapso en móviles (Ajustado para el diseño monolítico) */
@media (max-width: 768px) {
    .footer-bottom-bar { 
        justify-content: center; 
        text-align: center; 
        flex-direction: column; 
        border-top: none; /* En móvil limpiamos el exceso de líneas */
    }
    .footer-contact {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .footer-brand .footer-logo {
        margin: 0; 
    }
}

/* --------------------------------------------------------------------------
   4. BOTONES GLOBALES (Estética Industrial)
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background-color: var(--c-brand) !important;
    color: var(--c-white) !important;
    border: 2px solid var(--c-brand) !important;
    padding: 0.8rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0 !important; /* Corte mecánico, cero curvas */
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background-color: var(--c-brand-hover) !important;
    border-color: var(--c-brand-hover) !important;
    /* Sombra dura tipo troquelado en Azul Marino y desplazamiento */
    box-shadow: 4px 4px 0px var(--c-brand-alt) !important; 
    transform: translate(-3px, -3px) !important; 
}

.btn-primary.btn-cta-large { font-size: 1.05rem; padding: 1.1rem 3rem; }

.btn-outline { border: 2px solid var(--c-steel); color: var(--c-steel-dark); padding: 0.6rem 1.5rem; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; font-weight: 600; border-radius: 0; }
.btn-outline:hover { border-color: var(--c-brand); color: var(--c-brand); }

.btn-outline-brand { display: inline-block; border: 2px solid var(--c-brand); color: var(--c-brand); padding: 0.6rem 1.5rem; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-weight: 600; background: transparent; border-radius: 0; }
.btn-outline-brand:hover { background-color: var(--c-brand); color: var(--c-white) !important; box-shadow: 0 5px 15px rgba(39, 84, 159, 0.25); }

/* --------------------------------------------------------------------------
   4. HOME: COMPONENTES ESPECÍFICOS
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(600px, 81vh, 850px); display: flex; align-items: flex-start; overflow: hidden; padding-top: clamp(80px, 12vh, 140px); padding-bottom: 2rem; }
.hero-svg-overlay { position: absolute; top: clamp(80px, 12vh, 140px); right: 0; width: 55vw; max-width: 800px; transform: translateY(-20%); z-index: 1; pointer-events: none; opacity: 0.95; filter: drop-shadow(0 10px 20px rgba(134, 132, 133, 0.3)); }
.svg-canvas { width: 100%; height: auto; }
.hero-grid { position: relative; z-index: 2; width: 100%; transform: none; }
.hero-content { max-width: 900px; padding: 0; }
.hero-content h1 { color: var(--c-steel-dark); font-size: clamp(3rem, 5.5vw, 5rem); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 2rem; }
.hero-lead { font-size: 1.2rem; color: var(--c-steel-dark); margin-bottom: 3rem; line-height: 1.65; font-weight: 400; max-width: 68ch !important; }

.path-circuit { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawCircuitLive 8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
.data-pulse { animation: pulseBrandLive 2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate; }
.data-pulse.delay-1 { animation-delay: 0.5s; }
.data-pulse.delay-2 { animation-delay: 1s; }
@keyframes pulseBrandLive { 0% { fill: var(--c-steel); r: 3; opacity: 0.4; } 100% { fill: var(--c-brand); r: 6; opacity: 1; } }
@keyframes drawCircuitLive { 0% { stroke-dashoffset: 1000; opacity: 0.1; } 50% { opacity: 0.8; } 100% { stroke-dashoffset: 0; opacity: 1; } }

.guardianes-container { padding-top: 3rem; padding-bottom: 4rem; }
.guardian-desc { margin-bottom: 1.5rem; }
.totem-empty { color: var(--c-steel); font-style: italic; }
.guardianes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 2rem; position: relative; z-index: 10; }

.card-guardian { background: var(--c-white); border: 1px solid var(--c-steel); padding: 2.5rem 1.75rem; position: relative; transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; height: 100%; border-radius: 0; }
.card-guardian:hover { transform: translateY(-5px); border-color: var(--c-brand); }
.card-guardian::before { content: ''; position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; background-color: var(--c-brand); }
.card-guardian h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; color: var(--c-steel-dark); margin-bottom: 1.5rem; line-height: 1.1; }
.card-guardian p { color: var(--c-steel); font-size: 0.95rem; text-align: justify; }

.guardian-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.guardian-avatar { width: 90px; height: 90px; flex-shrink: 0; }
.guardian-avatar svg { width: 100%; height: 100%; }
.guardian-title { display: flex; flex-direction: column; gap: 0.2rem; }
.guardian-title h3 { margin: 0; font-size: 1.4rem; color: var(--c-steel-dark); }
.badge-modelo { font-size: 0.75rem; font-weight: 700; color: var(--c-brand); letter-spacing: 0.5px; }

.code-snippet { display: block; margin-top: auto; background-color: #121212; color: #e2e8f0; font-family: var(--font-mono, monospace); font-size: 0.72rem !important; padding: 1rem !important; border-left: 3px solid var(--c-brand); border-radius: 0 !important; white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important; overflow-x: auto; scrollbar-width: none !important; -ms-overflow-style: none !important; }
.code-snippet .var-cyan { color: #00E5FF; font-weight: bold; }
.code-snippet .str-green { color: #A9FF68; }

.soluciones-section { padding: 5rem 0; background-color: transparent; }
.accordion-container { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.accordion-item { background-color: var(--c-white); border: 1px solid var(--c-steel); border-left: 4px solid var(--c-steel); transition: all 0.3s ease; border-radius: 0; }
.accordion-item[open] { border-left: 4px solid var(--c-brand); box-shadow: 0 10px 20px rgba(134, 132, 133, 0.1); }
.accordion-header { padding: 1.8rem 2.5rem; font-size: 1.3rem; font-weight: 700; color: var(--c-steel-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease, color 0.3s ease; }
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header:hover { background-color: rgba(134, 132, 133, 0.05); color: var(--c-brand); }
.accordion-header::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--c-steel); transition: transform 0.3s ease; }
.accordion-item[open] .accordion-header::after { content: '−'; color: var(--c-brand); transform: rotate(180deg); }
.accordion-content { padding: 0 2.5rem 2.5rem 2.5rem; animation: fadeIn 0.4s ease-in-out; }

.cuello-botella { background-color: rgba(134, 132, 133, 0.05); padding: 2rem 2.5rem !important; border-left: 2px solid var(--c-steel); margin-bottom: 2rem; font-size: 1rem; line-height: 1.65 !important; color: var(--c-steel-dark); }
.solucion-core h4 { color: var(--c-steel-dark); margin-bottom: 1rem; font-size: 1.1rem; }
.solucion-core ul { list-style: none; margin-bottom: 2rem; }
.solucion-core ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--c-steel-dark); }
.solucion-core ul li::before { content: '■'; position: absolute; left: 0; top: 2px; color: var(--c-brand); font-size: 0.7rem; }
.eco-link-bar { display: flex; justify-content: flex-end; align-items: center; border-top: 1px solid var(--c-grid); padding-top: 1rem; font-size: 0.9rem; font-weight: 600; flex-wrap: wrap; gap: 10px; }
.eco-label { color: var(--c-steel); }
.eco-link-bar a { color: var(--c-brand); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: opacity 0.2s; }
.eco-link-bar a:hover { opacity: 0.7; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

section#manifiesto.nativa-teaser { background-color: #121212 !important; color: #ffffff !important; padding: 5rem 0; border-top: 4px solid var(--c-brand); border-bottom: 1px solid #2a2a2a; position: relative; z-index: 2; }
.nativa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center; }
section#manifiesto.nativa-teaser h2 { color: #ffffff !important; font-size: 2.8rem !important; margin-bottom: 1rem; line-height: 1.1; text-transform: uppercase; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
section#manifiesto.nativa-teaser h2 span.text-accent-brand { color: #ffffff !important; display: inline-block; }
section#manifiesto.nativa-teaser p.nativa-lead { color: #e2e8f0 !important; font-size: 1.15rem; margin-bottom: 2rem; line-height: 1.7; }
section#manifiesto.nativa-teaser .btn-outline-light { display: inline-block; color: #ffffff !important; border: 2px solid #ffffff !important; padding: 0.8rem 2rem; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; border-radius: 0 !important; transition: all 0.3s ease; background: transparent; }
section#manifiesto.nativa-teaser .btn-outline-light:hover { background-color: var(--c-brand) !important; border-color: var(--c-brand) !important; color: #ffffff !important; }

/* --------------------------------------------------------------------------
   5. TÓTEM Y TERMINAL
   -------------------------------------------------------------------------- */
.seccion-totem-intro { text-align: center; padding: 2rem 0 3rem 0; }
.seccion-totem-intro h1 { font-size: 3.5rem; color: var(--c-steel-dark); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1rem; line-height: 1.1; }
.seccion-totem-intro p { color: var(--c-steel); max-width: 800px; margin: 0 auto; font-size: 1.2rem; line-height: 1.8; }

.modulo-oscuro { background-color: #0d0d0d; color: var(--c-white); padding: 5rem 0; margin-bottom: 4rem; border-top: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-steel-dark); overflow: hidden; position: relative; }
.modulo-oscuro .container { max-width: 1350px; }
.ping-pong-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6rem; align-items: center; position: relative; }
.ping-pong-row.inverso { grid-template-columns: 1fr 1.5fr; }

.render-limpio { position: relative; width: 100%; display: flex; justify-content: center; z-index: 2; }
.render-limpio img { width: 100%; max-width: 900px; height: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.9)); transform: scale(1.05); }

.text-dark-mode { z-index: 2; position: relative; }
.text-dark-mode h3 { color: var(--c-white); font-size: 2.8rem; margin-bottom: 0.5rem; font-family: 'Oswald', sans-serif; letter-spacing: 2px; }
.text-dark-mode p { color: #d1d1d1; font-size: 1.15rem; margin-bottom: 2rem; line-height: 1.8; }

.terminal-box-dark { background: #050505; border: 1px solid #333333; border-left: 3px solid var(--c-brand); padding: 1.5rem; font-family: var(--font-mono, 'Courier New', monospace); font-size: 0.95rem; line-height: 1.6; margin-top: 1.5rem; box-shadow: none !important; border-radius: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid-2 .form-group { margin-bottom: 15px; }

@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.terminal-box-dark .ide-comment { color: #6a9955; font-style: italic; }
.terminal-box-dark .ide-keyword { color: #00E5FF; font-weight: 700; } 
.terminal-box-dark .ide-func    { color: #FFFFFF; font-weight: 700; } 
.terminal-box-dark .ide-var     { color: #9CDCFE; } 
.terminal-box-dark .ide-string  { color: #39FF14; } 

.svg-conexiones { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }
.data-stream-jaguar { stroke: var(--c-brand); stroke-width: 2; fill: none; stroke-dasharray: 20 10; animation: flowJaguar 1.5s linear infinite; filter: drop-shadow(0 0 5px var(--c-brand)); }
.data-stream-acorazado { stroke: var(--c-brand); stroke-width: 0.5; fill: none; stroke-dasharray: 4 2; animation: flowAcorazado 1.5s linear infinite; filter: drop-shadow(0 0 2px var(--c-brand)); }
.radar-ring { fill: none; stroke: var(--c-brand); animation: flowRadar 4s linear infinite; }
.laser-scan { stroke: var(--c-brand); stroke-width: 1.5; stroke-dasharray: 10 5; animation: pulseLaser 1.5s infinite alternate; filter: drop-shadow(0 0 3px var(--c-brand)); }

@keyframes flowJaguar { to { stroke-dashoffset: -30; } }
@keyframes flowAcorazado { from { stroke-dashoffset: 12; } to { stroke-dashoffset: 0; } }
@keyframes flowRadar { to { stroke-dashoffset: -100; } }
@keyframes pulseLaser { 0% { opacity: 0.1; } 100% { opacity: 0.8; } }

/* --------------------------------------------------------------------------
   6. SOLUCIONES OPERATIVAS
   -------------------------------------------------------------------------- */
.soluciones-wrapper { animation: fadeIn 0.5s ease; }
.page-header { padding: 4rem 0 2rem 0; text-align: center; margin-bottom: 3rem; }
.page-header h1 { color: var(--c-steel-dark); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 3rem; letter-spacing: 2px; margin-bottom: 1.5rem; line-height: 1.1; }
.soluciones-body { padding-bottom: 4rem; }

.roi-box { background: #fdfdfd; border: 2px solid #E5E5E5; border-left: 5px solid var(--c-brand); padding: 2.5rem 3rem; max-width: 850px; margin: 0 auto; text-align: left; box-shadow: none; border-radius: 0; }
.roi-box h4 { margin-top: 0; color: var(--c-brand); text-transform: uppercase; letter-spacing: 2px; font-size: 1rem; margin-bottom: 0.5rem; }
.roi-box p { font-size: 1.1rem; color: var(--c-steel-dark); line-height: 1.7; margin-bottom: 0; }
.roi-box strong { color: #111; }

.intervencion-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 4rem; margin-bottom: 6rem; align-items: stretch; }
.intervencion-row:last-of-type { margin-bottom: 4rem; }

.diagnostico-box { background-color: #fdfdfd; border: 2px solid #E5E5E5; padding: 2.5rem; position: relative; border-radius: 0; box-shadow: none; }
.solucion-box { background-color: #121212; color: var(--c-white); padding: 2.5rem; position: relative; border: 2px solid #1a1a1a; border-left: 5px solid var(--c-brand); box-shadow: none; border-radius: 0; }

.diagnostico-box::before, .solucion-box::before { position: absolute; top: -15px; padding: 6px 16px; font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; line-height: 1.5; z-index: 10; }
.diagnostico-box::before { content: 'EL CUELLO DE BOTELLA'; left: -2px; background: var(--c-steel-dark); color: var(--c-white); }
.solucion-box::before { content: 'LA INVERSIÓN (SISTEMA ORIUS)'; left: -5px; background: var(--c-brand); color: var(--c-white); }

.diagnostico-box h3, .solucion-box h3 { font-size: 1.8rem; font-family: 'Oswald', sans-serif; border-bottom: none; padding-bottom: 0; margin: 0 0 1.5rem 0; text-transform: uppercase; line-height: 1.2; }
.diagnostico-box h3 i, .solucion-box h3 i { color: var(--c-brand); margin-right: 8px; }
.diagnostico-box p { font-size: 1.05rem; margin-bottom: 1.5rem; color: #555; line-height: 1.6; }

.fallos-list { list-style: none; margin-top: 1.5rem; padding-left: 1.5rem; color: var(--c-steel-dark); }
.fallos-list li { position: relative; margin-bottom: 0.8rem; font-size: 0.95rem; }
.fallos-list li:last-child { margin-bottom: 0; }
.fallos-list li::before { content: '×'; position: absolute; left: -1.5rem; top: -2px; color: var(--c-brand); font-weight: bold; font-size: 1.2rem; }

.solucion-box p { font-size: 1.05rem; color: #d1d1d1; margin-bottom: 1.5rem; line-height: 1.6; }

.code-box { background: #000; border: 1px solid #333; border-left: 3px solid var(--c-brand); padding: 1.5rem; border-radius: 0; font-family: var(--font-mono, monospace); font-size: 0.85rem; color: #9cdcfe; margin-top: 1.5rem; overflow-x: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); }
.code-box .comment { color: #6a9955; }
.code-box .var { color: #9cdcfe; }
.code-box .param { color: #d4d4d4; }

.cta-diagnostico { text-align: center; margin-top: 5rem; padding-top: 3rem; border-top: 1px dashed var(--c-steel); }
.cta-diagnostico h3 { color: var(--c-steel-dark); font-family: 'Oswald', sans-serif; margin-bottom: 1rem; font-size: 1.8rem; text-transform: uppercase; }
.cta-diagnostico p { color: #555; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-cta { font-size: 1rem; padding: 1rem 2.5rem; border-radius: 0; text-transform: uppercase; font-weight: bold; }

/* --------------------------------------------------------------------------
   7. MODAL Y TERMINAL DE DIAGNÓSTICO
   -------------------------------------------------------------------------- */
.diagnostico-cta { padding: 6rem 0; text-align: center; background-color: transparent; }
.cta-box { max-width: 800px; margin: 0 auto; border: 1px solid var(--c-steel); padding: 4rem 3rem; background-color: var(--c-white); position: relative; border-radius: 0; }
.cta-box::before, .cta-box::after { content: ''; position: absolute; width: 15px; height: 15px; pointer-events: none; }
.cta-box::before { top: -1px; left: -1px; border-top: 3px solid var(--c-brand); border-left: 3px solid var(--c-brand); }
.cta-box::after { bottom: -1px; right: -1px; border-bottom: 3px solid var(--c-brand); border-right: 3px solid var(--c-brand); }
.cta-box p, .cta-lead { font-size: 1.1rem; color: var(--c-steel); margin: 0 auto 2.5rem auto; line-height: 1.8; max-width: 65ch; }

.btn-close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--c-steel); text-decoration: none; line-height: 1; transition: color 0.2s ease; }
.btn-close-modal:hover { color: var(--c-brand); }
.modal-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--c-steel-dark); letter-spacing: -0.5px; line-height: 1.1; }
.modal-content p { font-size: 0.95rem; color: var(--c-steel); margin-bottom: 2rem; }

.terminal-box-dark { background-color: #161616; border: 1px solid #333; border-left: 3px solid var(--c-brand); padding: 1.5rem; font-family: monospace; font-size: 0.9rem; color: #d4d4d4; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-radius: 0; }
.badge-brand { display: inline-block; border: 1px solid var(--c-brand); color: var(--c-brand); padding: 0.3rem 1rem; font-weight: bold; letter-spacing: 2px; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1.5rem; background: rgba(39, 84, 159, 0.1); }

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--c-steel-dark); margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.form-control { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--c-steel); background-color: #f9f9f9; font-family: var(--font-sans); font-size: 1rem; color: var(--c-steel-dark); transition: all 0.3s ease; outline: none; box-sizing: border-box; border-radius: 0; }
.form-control:focus { border-color: var(--c-brand); background-color: var(--c-white); box-shadow: 0 0 0 3px rgba(39, 84, 159, 0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* --------------------------------------------------------------------------
   8. BANDA DE AUTORIDAD
   -------------------------------------------------------------------------- */
section.social-proof { background-color: #ffffff !important; padding: 3.5rem 0 !important; border-top: 1px solid var(--c-steel); border-bottom: 1px solid var(--c-steel); text-align: center; position: relative; z-index: 10; }
.clients-section { background-color: #ffffff; padding: 2.5rem; border: 1px solid #e2e8f0; margin-bottom: 4rem; text-align: center; }
section.social-proof h3.social-proof-title, .clients-section h5.clients-title { font-family: 'Oswald', sans-serif !important; font-size: 1.5rem !important; color: var(--c-steel-dark) !important; text-transform: uppercase !important; letter-spacing: 1px !important; margin: 0 0 2rem 0 !important; font-weight: 700 !important; }
.clients-matrix { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; gap: 4rem 5rem !important; max-width: 1200px; margin: 0 auto; }
.matrix-cell { flex: 0 0 auto !important; width: auto !important; height: auto !important; background-color: transparent !important; border: none !important; box-shadow: none !important; padding: 0; display: block; text-decoration: none; transition: transform 0.3s ease; }
.matrix-cell:hover { transform: translateY(-4px); }
.matrix-cell img.client-logo { height: 90px !important; width: auto !important; max-width: 260px !important; object-fit: contain !important; filter: grayscale(100%) contrast(115%) opacity(0.7); transition: all 0.3s ease; }
.matrix-cell:hover img.client-logo { filter: grayscale(0%) contrast(100%) opacity(1); }
.client-fallback-name { font-family: 'Oswald', sans-serif; font-size: 1.35rem; color: #121212; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; text-align: center; }

/* --------------------------------------------------------------------------
   9. ESPECÍFICOS DE VISTA: MANIFIESTO
   -------------------------------------------------------------------------- */
.manifiesto-wrapper { animation: fadeIn 0.6s ease; background-color: transparent; }
.manifiesto-section { width: 100%; }
.container-manifiesto { max-width: 850px; margin: 0 auto; padding: 4rem 20px; }
.document-header { text-align: left; margin-bottom: 3rem; padding-top: 1.5rem; position: relative; border-bottom: none; }
.document-header h1 { font-family: var(--font-sans); font-size: 3.5rem; letter-spacing: -1px; color: var(--c-steel-dark); line-height: 1.1; margin: 0 0 1rem 0; text-transform: none; }
.document-header p { font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 1.1rem; color: var(--c-brand); font-weight: bold; text-transform: uppercase; letter-spacing: 3px; margin: 0; }
.filosofia-intro { font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 1.35rem; color: #333; margin-bottom: 6rem; line-height: 1.8; text-align: left; padding: 2.5rem 3rem; background-color: var(--c-white); border-left: 4px solid var(--c-brand); margin-left: 0; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.filosofia-intro strong { color: var(--c-brand); font-weight: 700; background: transparent; padding: 0; }
.ley-arquitectura { position: relative; margin-bottom: 6rem; display: block; padding-left: 30px; z-index: 1; }
.ley-numero { position: absolute; top: -45px; left: -30px; font-family: 'Oswald', sans-serif; font-size: 12rem; font-weight: 900; color: rgba(134, 132, 133, 0.08); z-index: -1; pointer-events: none; user-select: none; line-height: 1; letter-spacing: -5px; margin: 0; }
.ley-contenido { position: relative; z-index: 2; }
.ley-contenido h2 { font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 2rem; color: var(--c-steel-dark); margin: 0 0 1.2rem; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; font-weight: 800; }
.ley-contenido p { font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 1.15rem; color: #444; margin: 0 0 1.5rem; text-align: justify; line-height: 1.7; }
.ley-contenido i { color: var(--c-steel-dark); }
.cita-tecnica { border-left: 4px solid var(--c-brand); padding: 1.5rem 2rem; background: var(--c-white); font-family: var(--font-serif, "Georgia", serif); font-style: italic; font-size: 1.3rem; color: var(--c-steel-dark); margin: 2rem 0; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.manifiesto-footer { text-align: center; border-top: 1px dashed var(--c-steel); padding-top: 3rem; margin-top: 5rem; }

/* --------------------------------------------------------------------------
   10. ESPECÍFICOS DE VISTA: PORTAFOLIO
   -------------------------------------------------------------------------- */
.portafolio-wrapper { animation: fadeIn 0.5s ease; background-color: transparent; width: 100%; padding-bottom: 4rem; }
.portafolio-container { padding-top: 4rem; }
.portafolio-header { text-align: center; margin-bottom: 4rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 2rem; }
.portafolio-header h1 { color: var(--c-steel-dark); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 2.8rem; margin: 0 0 0.5rem; line-height: 1.1; }
.portafolio-header p { color: var(--c-steel); font-size: 1.15rem; margin: 0 auto 2rem auto; max-width: 65ch; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-bottom: 5rem; }
.ecosystem-empty { grid-column: 1 / -1; text-align: center; padding: 4rem 0; color: var(--c-steel); font-size: 1.1rem; font-style: italic; }
.case-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.case-category { display: inline-block; background: var(--c-steel-dark); color: #fff; padding: 4px 12px; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; align-self: flex-start; margin: 1.5rem 0 0 1.5rem; border-radius: 0; }
.case-header { padding: 1.5rem; border-bottom: 1px solid #e2e8f0; background: #fdfdfd; }
.case-header h3 { font-family: 'Oswald', sans-serif; font-size: 1.6rem; color: var(--c-steel-dark); margin: 0 0 5px; text-transform: uppercase; }
.case-header h4 { color: var(--c-brand); font-size: 1rem; font-weight: 600; margin: 0; }
.case-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.spacer { flex-grow: 1; }
.data-block h5 { font-size: 0.95rem; text-transform: uppercase; margin: 0 0 8px; padding-left: 8px; color: var(--c-steel-dark); font-weight: 700; }
.data-block p { color: var(--c-steel); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.block-friccion h5 { border-left: 3px solid #cbd5e1; }
.block-intervencion h5 { border-left: 3px solid #868485; }
.block-impacto h5 { border-left: 3px solid var(--c-brand); }
.tech-stack { margin-top: auto; border-top: 1px dashed var(--c-steel); padding-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badge { background: #f1f5f9; color: var(--c-steel-dark); padding: 4px 10px; border-radius: 0; font-size: 0.8rem; font-weight: 600; font-family: var(--font-mono); }
.products-section { padding: 4rem 0; border-top: 1px solid #e2e8f0; }
.products-header { text-align: center; margin-bottom: 3rem; }
.products-header h2 { color: var(--c-steel-dark); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 2.2rem; margin: 0 0 10px; }
.products-header p { color: var(--c-steel); font-size: 1.1rem; margin: 0 auto; max-width: 65ch; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.product-card { text-decoration: none; text-align: center; padding: 2.5rem; border: 1px solid #e2e8f0; border-radius: 0; background: #fff; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--c-brand); }
.product-logo-wrapper { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.product-logo { max-height: 100%; max-width: 150px; object-fit: contain; }
.product-card h3 { color: var(--c-steel-dark); font-family: 'Oswald', sans-serif; text-transform: uppercase; margin: 0 0 10px; font-size: 1.4rem; }
.product-card p { color: var(--c-steel); font-size: 0.95rem; margin: 0 0 1.5rem; line-height: 1.5; }
.product-cta { color: var(--c-brand); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-top: auto; transition: color 0.3s ease; }

/* --------------------------------------------------------------------------
   11. RESPONSIVIDAD MÓVIL Y TABLET
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-svg-overlay { width: 70%; opacity: 0.5; }
    .hero-content { padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 900px) {
    .ping-pong-row, .intervencion-row { grid-template-columns: 1fr; gap: 2rem; }
    .ping-pong-row { text-align: center; }
    .ping-pong-row.inverso { display: flex; flex-direction: column; }
    .ping-pong-row.inverso .render-limpio { order: 1; }
    .ping-pong-row.inverso .text-dark-mode { order: 2; }
    .render-limpio img { max-width: 100%; transform: none; } 
    .terminal-box-dark { text-align: left; }
    .seccion-totem-intro h1, .page-header h1, .portafolio-header h1 { font-size: 2.5rem; }
    .svg-conexiones { display: none; } 
    .roi-box { padding: 1.5rem; }
    .diagnostico-box, .solucion-box { padding: 2rem 1.5rem; }
    .ecosystem-grid, .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .hamburger-icon { display: flex; }
    .nav-links { position: absolute; top: 100px; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.98); flex-direction: column; align-items: flex-start; padding: 0; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
    .mobile-toggle:checked ~ .nav-links { max-height: 800px; padding: 1rem 0 2rem 0; border-bottom: 3px solid var(--c-brand); }
    .mobile-toggle:checked ~ .hamburger-icon span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-toggle:checked ~ .hamburger-icon span:nth-child(2) { opacity: 0; }
    .mobile-toggle:checked ~ .hamburger-icon span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .nav-links > a, .nav-item-dropdown { margin-left: 0; width: 100%; padding: 1rem 2rem; border-bottom: 1px solid var(--c-grid); }
    .nav-item-dropdown { padding: 0; }
    .nav-item-dropdown > a { padding: 1rem 2rem; width: 100%; justify-content: space-between; }
    .dropdown-panel { position: static; transform: none; width: 100%; min-width: 100%; box-shadow: none; border: none; border-left: 3px solid var(--c-brand); background-color: rgba(134, 132, 133, 0.02); display: none; opacity: 1; visibility: visible; }
    .nav-item-dropdown:hover .dropdown-panel, .nav-item-dropdown:focus-within .dropdown-panel { display: block; }
    .dropdown-grid a { padding: 0.8rem 2rem; }
    .nav-links .btn-primary, .nav-links .btn-outline-brand { margin: 1.5rem 2rem !important; width: calc(100% - 4rem); text-align: center; }
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; }
    .hero-grid { width: 90% !important; margin: 0 auto; }
    .hero-svg-overlay { width: 100%; top: 10%; opacity: 0.15; right: -20%; }
    .badge { font-size: 0.65rem; letter-spacing: 1px; padding: 0.4rem 0.8rem; margin-bottom: 2rem; display: inline-block; }
    .hero-content { padding-right: 0; }
    .hero-content h1 { font-size: 2.8rem; hyphens: auto; }
    .hero-lead { font-size: 1.1rem; margin-bottom: 2rem; }
    .guardianes-grid { margin-top: 1rem; gap: 1.5rem; }
    .card-guardian { padding: 2rem 1.5rem; }
    .nativa-grid, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-brand .footer-logo { margin: 0 auto 1rem auto; }
    .footer-links h4, .footer-contact h4 { display: block; text-align: center; border-bottom: none; margin-bottom: 0.5rem; }
    .diagnostico-cta, .soluciones-section { padding: 4rem 0; }
    .cta-box { padding: 3rem 1.5rem; }
    .modal-content { padding: 2rem 1.5rem; }
    .modal-content h3 { font-size: 1.5rem; }
    .accordion-header { padding: 1.2rem 1rem; font-size: 1.1rem; }
    .accordion-content { padding: 0 1rem 1.5rem 1rem; }
    .eco-link-bar { flex-direction: column; align-items: flex-start; gap: 5px; }
    .ley-arquitectura { margin-bottom: 4.5rem; }
    .ley-numero { top: -35px; left: 0; font-size: 8rem; }
    .ley-contenido h2 { border-bottom: 3px solid var(--c-brand); padding-bottom: 10px; display: inline-block; font-size: 1.6rem; }
    .document-header h1 { font-size: 2.5rem; }
    .filosofia-intro { padding: 1.5rem; font-size: 1.15rem; margin-bottom: 4rem; }
    .ley-contenido p { font-size: 1.1rem; text-align: left; }
    .cita-tecnica { font-size: 1.1rem; padding: 1rem 1.5rem; }
    .footer-socials { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.3rem; }
    .hero .btn-primary { padding: 1rem 1.5rem; font-size: 0.9rem; width: auto; display: inline-block; }
    .cta-box h2 { font-size: 1.8rem; }
    section#manifiesto.nativa-teaser h2 { font-size: 2.2rem !important; }
}

/* =========================================================
   FUSIÓN: TARJETA DE CASOS DE ÉXITO 
   ========================================================= */
.case-image-wrapper { display: block; width: 100%; height: 180px; background-color: var(--c-white); border-bottom: 1px solid var(--c-steel); padding: 15px; box-sizing: border-box; text-align: center; overflow: hidden; }
.case-logo-img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.1); transition: transform 0.3s ease; }
.case-image-wrapper:hover .case-logo-img { transform: scale(1.15); }
.case-commercial-area { background-color: #f8fafc; padding: 15px; border-radius: 6px; border: 1px solid var(--c-steel); margin-bottom: 20px; }
.commercial-desc { color: var(--c-steel-dark); font-size: 0.95rem; line-height: 1.5; margin: 0 0 15px 0; }
.product-cta-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--c-brand) !important; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; text-decoration: none; letter-spacing: 0.5px; transition: color 0.2s ease, transform 0.2s ease; }
.product-cta-btn:hover { color: #000000 !important; transform: translateX(5px); }
.case-analytics-area { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }

/* ==========================================
   ESTILOS DEL MODAL GLOBAL
   ========================================== */
.modal-terminal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(26, 26, 26, 0.90); z-index: 9999; align-items: center; justify-content: center; }
.modal-terminal .modal-content { background: var(--c-white); width: 100%; max-width: 500px; padding: 40px; position: relative; border-top: 4px solid var(--c-brand); border-radius: 0; }
.modal-terminal .btn-close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--c-steel-dark); text-decoration: none; line-height: 1; }
.modal-terminal .btn-close-modal:hover { color: var(--c-brand); }
.modal-terminal .form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--c-steel-dark); margin-bottom: 8px; text-transform: uppercase; }
.modal-terminal .form-control { width: 100%; padding: 12px; border: 1px solid var(--c-grid); box-sizing: border-box; font-family: inherit; font-size: 1rem; background: #f9f9f9; margin-bottom: 20px; }
.modal-terminal .form-control:focus { outline: none; border-color: var(--c-steel-dark); background: var(--c-white); }
.modal-terminal .btn-primary { background-color: var(--c-steel-dark); color: var(--c-white); padding: 15px; font-size: 1rem; font-weight: 700; text-transform: uppercase; transition: background-color 0.2s ease; border: none; cursor: pointer; width: 100%; }
.modal-terminal .btn-primary:hover { background-color: var(--c-brand); }