/* ============================================
   EXACTO.CL - ANTIGRAVITY THEME
   STYLE: Deep Space / Zero G / Geometric
   ============================================ */

:root {
    /* ---- DEEP SPACE PALETTE ---- */
    --bg: #000000;
    /* Negro Absoluto */
    --bg-2: #050505;
    /* Casi Negro */
    --bg-3: #0a0a0a;
    /* Gris muy oscuro */

    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --surface-2: #141414;

    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);

    /* ---- TEXT ---- */
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    /* ---- NEON ACCENTS ---- */
    --accent: #00F0FF;
    /* Cyan Neón (Antigravity style) */
    --accent-glow: rgba(0, 240, 255, 0.4);
    --accent-dim: rgba(0, 240, 255, 0.1);

    --blue-electric: #2962FF;

    --gradient-text: linear-gradient(90deg, #FFFFFF 0%, #9ca3af 100%);
    --gradient-glow: linear-gradient(180deg, rgba(0, 240, 255, 0) 0%, rgba(0, 240, 255, 0.05) 100%);

    /* ---- GEOMETRY ---- */
    --radius: 24px;
    /* Tarjetas */
    --radius-full: 9999px;
    /* Botones pill */

    /* ---- FONTS & ANIMATION ---- */
    --font-main: 'Outfit', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    /* Todo geométrico */

    --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Gravedad lenta */

    /* ---- SHADOWS ---- */
    --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.15);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ---- LIGHT THEME (Interference Mode) ---- */
[data-theme="light"] {
    --bg: #e0e0e0;
    --bg-2: #ffffff;
    --bg-3: #cccccc;

    --surface: rgba(0, 0, 0, 0.03);
    --surface-hover: rgba(0, 0, 0, 0.05);
    --surface-2: #ffffff;

    --border: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.2);

    --text: #000000;
    --text-muted: #333333;
    --text-dim: #9ca3af;

    --accent: #FF0055;
    /* Rojo Error/Glitch para contraste */
    --accent-glow: rgba(255, 0, 85, 0.4);
    --accent-dim: rgba(41, 98, 255, 0.1);

    --shadow-neon: 0 0 20px rgba(41, 98, 255, 0.15);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Invert filter for dramatic effect */
    filter: contrast(1.2) saturate(1.2);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
    font-feature-settings: "ss01", "ss02";
    /* Estilísticos de Outfit si disponibles */
    transition: background-color 0.1s steps(5), color 0.1s steps(5);
    /* Glitchy transition (Fast effect 0.5s as requested) */
    animation: bodyDistort 0.5s cubic-bezier(0.2, 0.5, 0.2, 1);
    width: 100%;
}

/* UTILIDAD PARA CANVAS DE FONDOS MATEMÁTICOS DE NOVA */
.bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    /* Anti-CLS: el canvas nunca genera shifts de layout */
    contain: strict;
    will-change: transform;
}

/* CONFINAMIENTO DE CANVAS - Evita desbordamiento visual entre secciones */
#soluciones,
#nosotros,
#proceso,
.footer {
    position: relative;
    overflow: hidden;
}

/* Anti-CLS: reservar espacio para secciones below-the-fold */
#trabajo,
#sgi,
#nosotros,
#proceso,
.cta-banner,
.contact,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Anti-CLS: terminal con min-height fija (evita jump al aparecer) */
.terminal-window {
    min-height: 340px;
}

/* Asegurar que el contenido de cada sección esté SOBRE el canvas */
.solutions-container,
.about-container,
.process-container,
.footer-content,
.footer-bottom {
    position: relative;
    z-index: 1;
}

/* Scrollbar Futurist */
::-webkit-scrollbar {
    width: 6px;
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

::selection {
    background: var(--accent);
    color: black;
}

/* Utility layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: none;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* ---- THEME TOGGLE (Phase 15) ---- */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px dashed var(--accent);
    color: var(--accent);
    padding: 12px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    transition: all var(--transition);
    animation: themeFloat 4s ease-in-out infinite;
}

@keyframes themeFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 240, 255, 0.15);
    }

    100% {
        transform: translateY(0);
    }
}

.theme-toggle:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent);
    animation-play-state: paused;
}

.theme-toggle:active {
    transform: translateY(2px) scale(0.95);
    transition: all 0.1s;
}

/* ---- BRUTALIST NAV LOGO (Phase 16) ---- */
.brutal-logo {
    display: flex;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    transition: all var(--transition);
}

.brutal-logo .bl-sys {
    color: var(--text-dim);
    font-size: 22px;
    margin-right: 2px;
}

.brutal-logo .bl-text {
    color: var(--text);
    transition: color var(--transition);
}

.brutal-logo .bl-cursor {
    color: var(--accent);
    font-weight: 900;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.brutal-logo:hover .bl-text {
    color: var(--accent);
    text-shadow: var(--shadow-neon);
}

/* ---- UTILITIES ---- */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-serif {
    font-family: var(--font-serif);
    font-style: italic;
}

.text-accent {
    color: var(--accent);
}

/* ---- CURSOR ---- */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(74, 222, 128, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.3s, height 0.3s;
}

.cursor.hover {
    width: 20px;
    height: 20px;
}

.cursor-follower.hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
}

/* ---- LOADER ---- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo-wrap {
    overflow: hidden;
}

.loader-logo {
    width: 260px;
    height: auto;
}

/* Animación del logo - Secuencia de entrada */
.logo-square-e {
    opacity: 0;
    transform-origin: center;
    animation: squareEAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-pulse-top {
    opacity: 0;
    transform-origin: 46px 30px;
    animation: pulseTop 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.logo-pulse-bottom {
    opacity: 0;
    transform-origin: 46px 30px;
    animation: pulseBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

.logo-x {
    opacity: 0;
    transform: translateX(0);
    animation: xAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.logo-text {
    opacity: 0;
    transform: translateX(-10px);
    animation: textAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.3s forwards;
}

/* Keyframes de la secuencia del logo */
@keyframes squareEAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseTop {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseBottom {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translateY(5px) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
}

@keyframes xAppear {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateX(2px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(22px) scale(1);
    }
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.loader-bar {
    width: 220px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 1px;
    width: 0%;
    transition: width 0.1s linear;
}

.loader-pct {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: padding var(--transition), background var(--transition);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--text);
    transition: opacity var(--transition);
}

.nav-logo svg {
    width: 130px;
    height: auto;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 100px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.nav-cta {
    color: var(--bg);
    background: var(--accent);
    font-weight: 600;
    padding: 10px 20px;
}

.nav-link.nav-cta:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform var(--transition);
}

.nav-toggle.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 20px 40px 30px;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-mobile-link {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.nav-mobile-link:hover {
    color: var(--accent);
}

/* ---- INTERFERENCE / GLITCH FX ---- */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: white;
    mix-blend-mode: exclusion;
}

body.interfering .glitch-overlay {
    animation: intenseGlitch 0.2s cubic-bezier(0.1, 0.9, 0.2, 1) infinite;
}

body.interfering {
    animation: bodyDistort 0.1s steps(2) infinite;
}

/* Hacker Text Char */
.hacker-char {
    display: inline-block;
    transition: color 0.1s;
    font-family: monospace;
    /* Cyber look */
}

/* Hyper Glitch for Icons (Hover volume up) */
.icon-box:hover,
.capsule-icon:hover,
.trust-logos span:hover,
.btn-pill:hover svg,
.hacker-char:hover {
    /* Added interactivity to chars */
    animation: hyperGlitch 0.3s steps(2) infinite;
    fill: var(--accent);
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
    cursor: crosshair;
    /* Hacker cursor */
}

@keyframes hyperGlitch {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    20% {
        transform: translate(-5px, 5px) scale(1.1);
        opacity: 0.8;
        clip-path: inset(20% 0 0 0);
    }

    40% {
        transform: translate(5px, -5px) scale(0.9);
        opacity: 1;
        clip-path: inset(0 0 20% 0);
    }

    60% {
        transform: translate(-5px, -5px) scale(1.1);
        opacity: 0.5;
        filter: invert(1);
    }

    80% {
        transform: translate(5px, 5px) scale(0.9);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes intenseGlitch {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    20% {
        opacity: 1;
        transform: translateX(-20px) skewX(10deg);
        background: #ff0000;
    }

    40% {
        opacity: 0.5;
        transform: translateX(20px) skewX(-10deg);
        background: #00ff00;
    }

    60% {
        opacity: 1;
        transform: translateY(10px);
        background: #0000ff;
    }

    80% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 0.8;
        transform: translateX(0);
        clip-path: inset(40% 0 40% 0);
    }
}

@keyframes bodyDistort {
    0% {
        filter: invert(0);
        transform: skew(0deg);
    }

    25% {
        filter: invert(1) contrast(2);
        transform: skew(5deg) scale(1.02);
    }

    50% {
        filter: hue-rotate(90deg) blur(2px);
        transform: skew(-5deg) scale(0.98);
    }

    75% {
        filter: grayscale(1) invert(0.5);
        transform: translateX(10px);
    }

    100% {
        filter: none;
        transform: none;
    }
}

/* ---- CLASSIFIED / DECRYPTION FX (Phase 5) ---- */
.classified-container {
    position: relative;
    overflow: hidden;
}

.solution-card.classified {
    filter: blur(8px) grayscale(1) contrast(3);
    background: black;
    color: transparent;
    border: 1px dashed var(--accent);
}

.solution-card.classified * {
    visibility: hidden;
}

.solution-card.classified::after {
    content: "TOP SECRET // CLASSIFIED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: monospace;
    font-size: 24px;
    color: red;
    border: 4px solid red;
    padding: 10px 20px;
    visibility: visible;
    white-space: nowrap;
    opacity: 0.8;
}

.solution-card.decrypting {
    animation: decryptEffect 1.5s steps(10) forwards;
}

@keyframes decryptEffect {
    0% {
        filter: blur(8px) grayscale(1) contrast(3);
        background: black;
    }

    20% {
        filter: blur(4px) invert(1);
        background: #111;
    }

    40% {
        filter: blur(2px) hue-rotate(90deg);
    }

    60% {
        filter: none;
        opacity: 0.5;
        transform: scale(0.98);
    }

    80% {
        filter: hue-rotate(-45deg);
        opacity: 0.8;
    }

    100% {
        filter: none;
        opacity: 1;
        transform: scale(1);
        background: rgba(20, 20, 20, 0.4);
        color: var(--text);
    }
}

/* Scanline Overlay for Decrypting items */
.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 0, 0.1) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.solution-card.decrypting .scanline-overlay {
    opacity: 1;
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

/* Static Noise */
.static-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ---- HERO ZERO GRAVITY ---- */
.hero-zero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: var(--bg);
}

/* Background elements */
.hero-bg-deep {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Light Mode Constellation Canvas */
.light-mode-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

[data-theme="light"] .light-mode-canvas {
    opacity: 1;
    /* Full opacity to ensure visibility */
}

/* ---- PHASE 6: CONTACT (EVENT HORIZON HUD) ---- */

.contact {
    position: relative;
    background: #000;
    padding: 100px 0;
    border-top: 2px solid var(--accent);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* HUD Panel */
.hud-panel {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    background: #000;
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 4px #000, 0 0 40px rgba(0, 240, 255, 0.25);
}

.hud-header {
    border-bottom: 1px solid var(--accent);
    margin-bottom: 40px;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.hud-status {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
    animation: blink 1s step-end infinite;
    font-family: 'Courier New', Courier, monospace;
}

.hud-panel .section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-desc {
    color: #666;
    margin-bottom: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.hud-box {
    border: 1px solid #222;
    padding: 20px;
    background: #050505;
    margin-top: 20px;
}

.hud-label {
    background: var(--accent);
    color: #000;
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #111;
    padding-bottom: 15px;
    transition: 0.2s;
}

.contact-item:hover {
    background: transparent;
    transform: none;
}

.contact-item .icon {
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 30px;
}

.contact-item .label {
    display: block;
    font-size: 10px;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.contact-item .value {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    font-family: 'Courier New', Courier, monospace;
}

.contact-item .value:hover {
    color: var(--accent);
}

/* HUD FORM */
.hud-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.hud-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hud-form .form-group label {
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
}

.hud-form input,
.hud-form select,
.hud-form textarea {
    background: #050505;
    border: 1px solid #333;
    padding: 14px;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    border-radius: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.hud-form input:focus,
.hud-form select:focus,
.hud-form textarea:focus {
    border-color: var(--accent);
    background: #111;
    outline: none;
    box-shadow: inset 3px 0 0 var(--accent), 0 0 10px rgba(0, 240, 255, 0.1);
}

.hud-form select option {
    background: #111;
    color: #fff;
}

.btn-hud {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 18px 30px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
}

.btn-hud:hover {
    background: #fff;
    letter-spacing: 4px;
}

.btn-glitch {
    font-size: 20px;
    font-weight: 900;
}

/* HUD Corner Brackets */
.hud-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hc {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid var(--accent);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hud-panel:hover .hc {
    width: 40px;
    height: 40px;
}

.hc-tl {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.hc-tr {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
}

.hc-bl {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
}

.hc-br {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

/* ---- TERMINAL FOOTER ---- */
.footer {
    background: #000;
    color: #555;
    font-family: 'Courier New', Courier, monospace;
    padding: 60px 20px 30px;
    border-top: 3px solid var(--accent);
    position: relative;
    z-index: 20;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px dashed #222;
}

.footer-col h4::before {
    content: '> ';
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #444;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
    text-shadow: 0 0 5px var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #111;
    padding-top: 20px;
    font-size: 12px;
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 5px var(--accent);
}

.deep-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    opacity: 0.5;
}

.spotlight {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    /* Fix CLS (PageSpeed): reservar espacio en el layout desde el inicio */
    will-change: transform;
    contain: layout style;
}

.hero-z-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-z-content {
    padding-right: 40px;
}

/* Badge update */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--accent);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulseNeon 2s infinite;
}

@keyframes pulseNeon {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Massive Typography */
.hero-z-title {
    font-size: clamp(60px, 8vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 32px;
}

.hero-z-title .block {
    display: block;
}

.text-outline {
    -webkit-text-stroke: 1.5px var(--accent);
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Logo del nav — mismo efecto neon del hero, escala de nav */
.nav-logo-neon {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 0.8px var(--accent);
    color: transparent;
    text-shadow:
        0 0 12px rgba(0, 240, 255, 0.35),
        0 0 30px rgba(0, 240, 255, 0.1);
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.nav-logo-neon:hover {
    text-shadow:
        0 0 16px rgba(0, 240, 255, 0.6),
        0 0 40px rgba(0, 240, 255, 0.25);
}

[data-theme="light"] .nav-logo-neon {
    -webkit-text-stroke: 0.8px var(--accent);
    color: transparent;
}

[data-theme="light"] .text-outline {
    -webkit-text-stroke: 2px var(--accent);
    color: rgba(255, 0, 85, 0.15);
    text-shadow: none;
}

.text-glow {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

.hero-z-desc {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 48px;
    font-weight: 300;
    line-height: 1.6;
}

/* Actions */
.hero-z-actions {
    display: flex;
    gap: 16px;
}

.btn-pill {
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-glow {
    background: var(--text);
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text);
}

/* ---- ZERO G VISUALS (Drifting Physics) ---- */
.hero-z-visuals {
    position: relative;
    height: 600px;
    pointer-events: none;
}

.float-item {
    position: absolute;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.item-code {
    top: 20%;
    right: 10%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 14px;
    color: var(--accent);
    z-index: 2;
}

.item-card {
    top: 50%;
    left: 10%;
    z-index: 3;
}

.glass-capsule {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.capsule-icon {
    font-size: 20px;
}

.capsule-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.item-globe {
    bottom: 10%;
    right: 20%;
    z-index: 1;
}

.neon-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
}

[data-theme="light"] .neon-circle {
    background: radial-gradient(circle, rgba(0, 242, 255, 0.8) 0%, rgba(255, 0, 128, 0.6) 40%, rgba(74, 222, 128, 0.4) 70%, transparent 80%);
    filter: blur(120px);
    transform: scale(3) translate(-20%, -10%);
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.9;
}

/* Animation Drift Keyframes */
.drift-1 {
    animation: drift 8s infinite;
}

.drift-2 {
    animation: drift 10s infinite reverse;
}

.drift-3 {
    animation: drift 12s infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -30px) rotate(2deg);
    }

    100% {
        transform: translate(-10px, 10px) rotate(-1deg);
    }
}

@media (max-width: 1024px) {
    .hero-z-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-z-content {
        padding-right: 0;
        margin-bottom: 60px;
    }

    .hero-z-actions {
        justify-content: center;
    }

    .hero-z-visuals {
        height: 400px;
    }
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Space for nav */
}

/* ... (background styles previously added) ... */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg);
    overflow: hidden;
}

.fluid-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background:
        radial-gradient(circle at 50% 50%, var(--accent-dim), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.08), transparent 40%);
    filter: blur(80px);
    animation: moveFluid 15s ease infinite alternate;
    opacity: 0.6;
}

@keyframes moveFluid {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 100%);
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    max-width: 720px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(64px, 7vw, 96px);
    /* Bigger title */
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.hero-line {
    display: block;
}

.hero-accent {
    color: var(--accent);
}

.hero-desc {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 520px;
}

.text-balance {
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- GLASS COMPOSITION ---- */
.hero-composition {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.glass-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg);
    width: 380px;
    height: 240px;
    padding: 24px;
    z-index: 2;
}

.hero-composition:hover .card-main {
    transform: translate(-50%, -60%) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.card-float-1 {
    top: 10%;
    right: 0%;
    width: 200px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: floatCard 6s ease-in-out infinite;
    z-index: 1;
}

.card-float-2 {
    bottom: 10%;
    left: -10%;
    width: 200px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: floatCard 7s ease-in-out infinite reverse;
    z-index: 3;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.glass-header .dots {
    display: flex;
    gap: 6px;
}

.glass-header .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.glass-header .badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-top: 20px;
}

.mini-chart .bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mini-chart .bar.active {
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.text-box strong {
    display: block;
    font-size: 14px;
    color: white;
}

.text-box span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .card-float-1 {
        right: 10%;
    }

    .card-float-2 {
        left: 10%;
    }
}

/* ---- BOTONES ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 32px;
    /* Más grandes */
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Transition base */
    position: relative;
    overflow: hidden;
    cursor: none;
    z-index: 10;
}

/* Estado magnetico */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.btn:hover svg {
    transform: translateX(6px) scale(1.1);
}

.btn-primary {
    background: var(--accent);
    color: #0d1117;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover {
    background: var(--accent-2);
    /* El transform se maneja con JS para el magnetismo, evitamos conflicto */
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.5);
}

.btn-ghost {
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.05);
}

.btn-outline {
    color: var(--text);
    border: 1px solid var(--border);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(74, 222, 128, 0.05);
}

.btn-white {
    background: white;
    color: #0d1117;
    font-weight: 700;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ---- HERO MOCKUP ---- */
.hero-visual {
    position: relative;
}

.hero-mockup {
    position: relative;
}

.mockup-browser {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 222, 128, 0.1);
    animation: mockupFloat 8s ease-in-out infinite;
}

@keyframes mockupFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.browser-bar {
    background: var(--bg-2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) {
    background: #ef4444;
    opacity: 0.7;
}

.browser-dots span:nth-child(2) {
    background: #f59e0b;
    opacity: 0.7;
}

.browser-dots span:nth-child(3) {
    background: #22c55e;
    opacity: 0.7;
}

.browser-url {
    flex: 1;
    background: var(--surface);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-dim);
    font-family: monospace;
}

.browser-content {
    display: flex;
    height: 280px;
}

.mock-sidebar {
    width: 60px;
    background: var(--bg-3);
    border-right: 1px solid var(--border);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-logo-sm {
    width: 36px;
    height: 20px;
    background: var(--accent);
    border-radius: 4px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.mock-nav-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-nav-item {
    width: 36px;
    height: 8px;
    background: var(--surface-2);
    border-radius: 4px;
}

.mock-nav-item.active {
    background: rgba(74, 222, 128, 0.3);
}

.mock-main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.mock-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-title-block {
    width: 120px;
    height: 12px;
    background: var(--surface-2);
    border-radius: 4px;
}

.mock-btn-sm {
    width: 60px;
    height: 22px;
    background: var(--accent);
    border-radius: 11px;
    opacity: 0.8;
}

.mock-stats-row {
    display: flex;
    gap: 8px;
}

.mock-stat-card {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}

.mock-stat-card.accent {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.05);
}

.msc-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.mock-stat-card.accent .msc-num {
    color: var(--accent);
}

.msc-label {
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 2px;
}

.mock-chart {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100%;
}

.chart-bar {
    flex: 1;
    background: rgba(74, 222, 128, 0.2);
    border-radius: 3px 3px 0 0;
    transition: height 1s ease;
}

.chart-bar.accent {
    background: var(--accent);
}

.mock-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-row {
    display: flex;
    gap: 8px;
}

.mock-row div {
    flex: 1;
    height: 8px;
    background: var(--surface-2);
    border-radius: 3px;
}

.mock-row.header div {
    background: rgba(74, 222, 128, 0.15);
    height: 6px;
}

/* Floating cards */
.float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.float-card-1 {
    top: -20px;
    right: -20px;
    animation: float1 5s ease-in-out infinite;
}

.float-card-2 {
    bottom: 40px;
    left: -30px;
    animation: float2 7s ease-in-out infinite;
}

.float-card-3 {
    bottom: -20px;
    right: 20px;
    animation: float3 6s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fc-icon {
    font-size: 18px;
}

.fc-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.fc-text span {
    font-size: 10px;
    color: var(--text-muted);
}

/* ---- MARQUEE ---- */
.hero-marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid var(--border);
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.02);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.marquee-track .sep {
    color: var(--accent);
    font-size: 8px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---- STATS ---- */
.stats {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 20px 24px;
    position: relative;
}

.stat-item+.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: var(--border);
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- SECTION COMMONS ---- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-left {
    text-align: left;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title em {
    font-style: normal;
    color: var(--accent);
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* ---- SEGURIDAD (PROMESA) ---- */
.security {
    position: relative;
    /* Anchor for canvas */
    overflow: hidden;
    /* Keep canvas inside */
    padding: 100px 0;
    background: var(--bg-2);
}

.fibonacci-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    /* Subtle constellation blend */
}

.security-container {
    position: relative;
    z-index: 1;
    /* Keep text above canvas */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.security-card {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    /* Brutalist sharp corners */
    padding: 36px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            rgba(0, 240, 255, 0.03) 10px,
            rgba(0, 240, 255, 0.03) 20px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.security-card:hover {
    transform: translateY(-4px) skewX(-2deg);
    border-color: var(--accent);
    box-shadow: -4px 4px 0px rgba(0, 240, 255, 0.2);
}

.security-card:hover::before {
    opacity: 1;
    animation: scanlineMove 5s linear infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.security-card>* {
    position: relative;
    z-index: 1;
}

.sec-extreme-typo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.08);
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 24px;
    letter-spacing: 0.15em;
    position: relative;
}

.security-card:hover .sec-extreme-typo {
    background: var(--accent);
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 15px var(--accent);
}

.security-card h3 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    font-family: 'Courier New', Courier, monospace;
}

/* Background Wireframe Image for Portfolio */
.sec-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    mix-blend-mode: color-dodge;
    filter: contrast(120%) grayscale(100%) sepia(100%) hue-rotate(150deg) brightness(80%);
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.security-card:hover .sec-bg-image {
    opacity: 0.15;
}

/* Ensure text remains above the image */
.security-card h3,
.security-card p,
.sec-extreme-typo {
    position: relative;
    z-index: 2;
}

/* ---- SOLUCIONES ---- */
.solutions {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    transform: translate(30%, -50%);
}

.solutions-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.solution-card {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    /* Brutalist sharp corners */
    padding: 40px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            rgba(0, 240, 255, 0.03) 10px,
            rgba(0, 240, 255, 0.03) 20px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.solution-card:hover {
    transform: translateY(-8px) skewX(-2deg);
    border-color: var(--accent);
    box-shadow: -6px 6px 0px rgba(0, 240, 255, 0.2);
}

.solution-card:hover::before {
    opacity: 1;
    animation: scanlineMove 5s linear infinite;
}

.solution-card>* {
    position: relative;
    z-index: 1;
}

.sol-badge-critical {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #000;
    background: var(--accent);
    padding: 6px 12px;
    border: 1px solid var(--accent);
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    animation: pulseCritical 2s infinite;
}

@keyframes pulseCritical {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    }
}

.sol-extreme-typo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.08);
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 24px;
    letter-spacing: 0.15em;
    position: relative;
    transition: var(--transition);
}

.solution-card:hover .sol-extreme-typo {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
}

.solution-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.solution-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.sol-list {
    margin-bottom: 32px;
}

.sol-list li {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
}

.sol-list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1;
    top: -2px;
}

.sol-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.sol-link:hover {
    gap: 10px;
    color: var(--accent-3);
}

/* ---- TRABAJO / PORTAFOLIO ---- */
.work {
    padding: 120px 0;
    background: var(--bg-2);
    position: relative;
}

.work-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.work-grid {
    display: grid;
    /* Reducido de 400px a 300px para que las tarjetas sean más compactas */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.work-item {
    cursor: pointer;
    position: relative;
}

.work-screenshot {
    border-radius: 0;
    /* Más brutalista */
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    aspect-ratio: 16/10;
    background: #000;
    border: 1px solid #333;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}

.work-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.work-item:hover .work-video {
    opacity: 1;
    filter: grayscale(0%) contrast(1.1);
}

.work-overlay-glitch {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.25) 50%),
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    background-size: 100% 4px, 100% 100%;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    opacity: 0.8;
}

.work-item:hover .work-screenshot {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.work-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-item:hover .work-svg {
    transform: scale(1.05);
}

.work-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.work-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.work-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-info p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 400px;
}

.solution-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.sol-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
}

.sol-list li {
    font-size: 13px;
    color: var(--text-muted);
}

.sol-list li::first-letter {
    color: var(--accent);
}

.sol-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sol-link:hover {
    gap: 10px;
}

/* ---- PORTAFOLIO ---- */
.work {
    padding: 100px 0;
    background: var(--bg-2);
}

.work-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.work-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: none;
}

.work-item:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.work-item-large {
    grid-column: span 2;
}

.work-screenshot {
    overflow: hidden;
    background: var(--bg-3);
}

.work-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.work-item:hover .work-svg {
    transform: scale(1.02);
}

.work-info {
    padding: 24px 28px;
}

.work-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.work-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 3px 10px;
    border-radius: 100px;
}

.work-info h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- SGI ---- */
.sgi {
    padding: 100px 0;
    background: var(--bg);
}

.sgi-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sgi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.sgi-badge::before {
    content: '⚙';
    font-size: 12px;
}

.sgi-content .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.sgi-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

.sgi-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.sgi-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

.sgi-check {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.sgi-modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sgi-module {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sgi-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            rgba(0, 240, 255, 0.05) 10px,
            rgba(0, 240, 255, 0.05) 20px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.sgi-module:hover {
    border-color: var(--accent);
    transform: translateY(-4px) skewX(-2deg);
    box-shadow: -4px 4px 0px rgba(0, 240, 255, 0.2);
}

.sgi-module:hover::before {
    opacity: 1;
    animation: scanlineMove 5s linear infinite;
}

.sgi-module>* {
    position: relative;
    z-index: 1;
}

.sgi-module-accent {
    background: transparent;
    border-color: rgba(255, 0, 102, 0.5);
}

.sgi-mod-typo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 6px 12px;
    margin-bottom: 12px;
    display: inline-block;
    letter-spacing: 0.1em;
    position: relative;
    transition: all 0.3s ease;
}

.sgi-module-accent .sgi-mod-typo {
    background: rgba(255, 0, 102, 0.1);
    /* Magenta neon brutalist touch for accent */
    border-color: rgba(255, 0, 102, 0.4);
    color: #ff0066;
}

.sgi-module:hover .sgi-mod-typo {
    transform: scale(1.1) skewX(-10deg);
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
}

.sgi-module-accent:hover .sgi-mod-typo {
    background: #ff0066;
    color: #fff;
    box-shadow: 0 0 20px #ff0066;
}

.sgi-module span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.sgi-stats-mini {
    display: flex;
    gap: 16px;
}

.sgi-stat {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sgi-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 5px,
            rgba(0, 240, 255, 0.03) 5px,
            rgba(0, 240, 255, 0.03) 10px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.sgi-stat:hover {
    border-color: var(--accent);
    transform: skewX(-2deg);
    box-shadow: -4px 4px 0px rgba(0, 240, 255, 0.15);
}

.sgi-stat:hover::before {
    opacity: 1;
    animation: scanlineMove 5s linear infinite;
}

.sgi-stat>* {
    position: relative;
    z-index: 1;
}

.sgi-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.sgi-stat span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- NOSOTROS ---- */
.about {
    position: relative;
    /* Anchor for background */
    overflow: hidden;
    padding: 100px 0;
    background: var(--bg-2);
}

.davinci-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Keep behind text */
    pointer-events: none;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    /* Blends sketch into light background */
    transition: opacity 0.5s ease;
}

/* Activate only in Light Mode */
[data-theme="light"] .about .davinci-bg {
    opacity: 0.12;
    /* Adjusted to 30% for readability */
    animation: flashDaVinci 0.6s step-end infinite;
}

@keyframes flashDaVinci {
    0% {
        background-image: url('../images/davinci/sketch1.png');
    }

    33% {
        background-image: url('../images/davinci/sketch2.png');
    }

    66% {
        background-image: url('../images/davinci/sketch3.png');
    }

    100% {
        background-image: url('../images/davinci/sketch1.png');
    }
}

.about-container {
    position: relative;
    z-index: 1;
    /* Elevate text over canvas */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-text strong {
    color: var(--text);
    font-weight: 700;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 28px 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.value-extreme-icon {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
    padding: 8px 12px;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-shadow: 2px 0px 0px rgba(0, 255, 255, 0.5), -2px 0px 0px rgba(255, 0, 255, 0.5);
    letter-spacing: 2px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.value-item:hover .value-extreme-icon {
    transform: scale(1.1) rotate(2deg);
    background: var(--accent);
    color: #000;
    text-shadow: none;
    box-shadow: 4px 4px 0px rgba(74, 222, 128, 0.3);
}

.value-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.value-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About visual */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card-main {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            rgba(0, 240, 255, 0.02) 10px,
            rgba(0, 240, 255, 0.02) 20px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.about-card-main:hover {
    border-color: var(--accent);
    transform: translateY(-4px) skewX(-1deg);
    box-shadow: -6px 6px 0px rgba(0, 240, 255, 0.1);
}

.about-card-main:hover::before {
    opacity: 1;
    animation: scanlineMove 5s linear infinite;
}

.about-card-main>* {
    position: relative;
    z-index: 1;
}

.acm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.acm-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--bg);
}

.acm-header strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.acm-header span {
    font-size: 12px;
    color: var(--text-muted);
}

.acm-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.acm-stat {
    flex: 1;
    text-align: center;
}

.acm-num {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.acm-label {
    font-size: 11px;
    color: var(--text-muted);
}

.acm-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acm-tech span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
}

.about-card-secondary {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-card-secondary:hover {
    border-color: var(--accent);
    transform: skewX(-1deg);
    box-shadow: -4px 4px 0px rgba(0, 240, 255, 0.1);
}

.acs-icon {
    font-size: 24px;
}

.about-card-secondary strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 3px;
}

.about-card-secondary p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- PROCESO ---- */
.process {
    padding: 100px 0;
    background: var(--bg);
}

.process-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.process-step {
    position: relative;
    padding: 36px 28px;
    border: 1px solid var(--border-strong);
    border-right: none;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 0 !important;
    /* Force override any previous curves */
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            rgba(0, 240, 255, 0.05) 10px,
            rgba(0, 240, 255, 0.05) 20px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.process-step:last-child {
    border-right: 1px solid var(--border-strong);
}

.process-step:hover {
    background: transparent;
    border-color: var(--accent);
    transform: skewX(-1deg);
    box-shadow: -4px 4px 0px rgba(0, 240, 255, 0.15);
    z-index: 2;
    /* Ensure borders show over siblings */
}

.process-step:hover::before {
    opacity: 1;
    animation: scanlineMove 5s linear infinite;
}

.process-step>* {
    position: relative;
    z-index: 1;
}

.step-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.08);
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-step:hover .step-number {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent);
    transform: scale(1.05);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 0;
    /* Brutalist shape */
    transform: translateY(-50%) rotate(45deg);
    /* Diamond shape */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step-connector::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 5px var(--accent);
    transform: rotate(-45deg);
}

.process-step:hover .step-connector {
    border-color: var(--accent);
    transform: translateY(-50%) rotate(45deg) scale(1.2);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ---- CTA BANNER ---- */
.cta-banner {
    padding: 100px 0;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: orbPulse 10s ease-in-out infinite;
}

.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    animation: orbPulse 8s ease-in-out infinite reverse;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-container h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-container h2 em {
    font-style: normal;
    color: var(--accent);
}

.cta-container p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ---- CONTACTO ---- */
.contact {
    padding: 100px 0;
    background: var(--bg);
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-item span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ---- FORMULARIO ---- */
.contact-form-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    font-size: 11px;
    color: #ef4444;
    min-height: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-budget label:first-child {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.budget-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.budget-option {
    display: flex;
    cursor: none;
}

.budget-option input[type="radio"] {
    display: none;
}

.budget-option span {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition);
    cursor: none;
}

.budget-option input:checked+span {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.budget-option:hover span {
    border-color: var(--border-hover);
    color: var(--text);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

.btn-submit .btn-arrow {
    margin-left: auto;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spin {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.form-success {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--radius-sm);
    padding: 18px;
    color: var(--accent);
}

.form-success svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.form-success strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.form-success p {
    font-size: 12px;
    color: rgba(74, 222, 128, 0.7);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-3);
    border-top: 1px solid var(--border);
    padding: 72px 0 36px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 56px;
}

.footer-logo {
    display: inline-flex;
    color: var(--text);
    margin-bottom: 14px;
    transition: opacity var(--transition);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo svg {
    width: 120px;
    height: auto;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-social a svg {
    width: 15px;
    height: 15px;
}

.footer-social a:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--accent);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 18px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li a,
.footer-col li span {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col li a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    box-shadow: var(--shadow-green);
    cursor: none;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-2);
    transform: translateY(-4px);
}

/* ---- ANIMACIONES ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.reveal-right {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.reveal-up.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

.aos-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.aos-item-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.aos-item.visible,
.aos-item-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 140px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number {
        font-size: clamp(28px, 3.5vw, 44px);
    }

    .stat-plus {
        font-size: 20px;
    }

    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-item-large {
        grid-column: span 1;
    }

    .sgi-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        display: none;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:nth-child(2) {
        border-right: 1px solid var(--border);
    }

    .process-step:nth-child(3) {
        border-top: none;
    }

    .process-step:first-child {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .process-step:last-child {
        border-radius: 0 0 var(--radius) var(--radius);
        border-right: 1px solid var(--border);
    }

    .step-connector {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-mobile {
        padding: 20px;
    }

    .hero-container {
        padding: 0 20px;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: clamp(38px, 10vw, 60px);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .stat-item:nth-child(3)::before {
        display: none;
    }

    .stat-number {
        font-size: clamp(30px, 8vw, 44px);
    }

    .stat-plus {
        font-size: 20px;
    }

    .security-container,
    .solutions-container,
    .work-container,
    .sgi-container,
    .about-container,
    .process-container,
    .cta-container,
    .contact-container,
    .footer-container {
        padding: 0 20px;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .security {
        padding: 72px 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solutions {
        padding: 72px 0;
    }

    .work {
        padding: 72px 0;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sgi {
        padding: 72px 0;
    }

    .sgi-modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        padding: 72px 0;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-step {
        border-right: 1px solid var(--border) !important;
        border-top: none;
    }

    .process-step:first-child {
        border-radius: var(--radius) var(--radius) 0 0;
        border-top: 1px solid var(--border);
    }

    .process-step:last-child {
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .process {
        padding: 72px 0;
    }

    .cta-banner {
        padding: 72px 0;
    }

    .cta-container h2 {
        font-size: 32px;
    }

    .contact {
        padding: 72px 0;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .budget-options {
        grid-template-columns: 1fr 1fr;
    }

    .footer {
        padding: 56px 0 28px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    button,
    a,
    .btn,
    .filter-btn,
    .testi-btn,
    .back-to-top,
    .budget-option,
    .nav-toggle,
    .sol-link,
    select {
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 34px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .budget-options {
        grid-template-columns: 1fr;
    }

    .sgi-stats-mini {
        flex-direction: column;
    }
}

/* ========================================
   TERMINAL INTERACTIVA — Sección Nosotros
   ======================================== */

/* Layout: texto izq + terminal der */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-terminal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    width: 100%;
    max-width: 460px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.06),
        0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.t-close {
    background: #FF5F57;
}

.t-min {
    background: #FFBD2E;
}

.t-max {
    background: #27C93F;
}

.t-title {
    margin-left: 8px;
    font-size: 0.7rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 16px 20px 20px;
    font-family: monospace;
    font-size: 0.78rem;
    line-height: 1.8;
    min-height: 280px;
    max-height: 320px;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.75);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.2) transparent;
}

.t-line {
    display: block;
    word-break: break-all;
}

.t-line--prompt {
    color: rgba(0, 240, 255, 0.8);
}

.t-line--output {
    color: rgba(255, 255, 255, 0.55);
    padding-left: 2px;
}

.t-line--ok {
    color: #27C93F;
}

.t-line--label {
    color: rgba(0, 240, 255, 0.5);
}

.t-line--blank {
    height: 8px;
    display: block;
}

.t-cursor {
    display: inline-block;
    animation: termBlink 0.9s step-end infinite;
    color: rgba(0, 240, 255, 0.8);
    font-weight: bold;
}

.t-bar {
    display: inline-block;
    letter-spacing: -1px;
    color: #27C93F;
}

@keyframes termBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Light mode adaptation */
[data-theme="light"] .terminal-window {
    background: rgba(15, 15, 25, 0.88);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Responsivo */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-terminal {
        margin-top: 40px;
    }

    .terminal-window {
        max-width: 100%;
    }
}