/* ==========================================================================
   PRISMA CODE - HIGH-TECH GTA VI THEME STYLESHEET
   Brand Identity: Obsidian Navy, Electric Logo Lime (#CCFF00), Silver & Cyan
   ========================================================================== */
 
/* --- VARIABLES DE COLOR & TIPOGRAFÍA --- */
:root {
    /* Fondos Obsidian Tech Navy */
    --brand-bg: #050b14;
    --brand-bg-secondary: #081426;
    --brand-dark-blue: #0d2238;
    --brand-card-bg: rgba(8, 20, 38, 0.75);
    --brand-card-border: rgba(204, 255, 0, 0.18);

    /* Colores del Logo Prisma Code */
    --brand-lime: #ccff00;            /* Verde Neón del Logo (partículas) */
    --brand-lime-glow: rgba(204, 255, 0, 0.5);
    --brand-silver: #b0bec5;          /* Gris Plata del Prisma */
    --brand-silver-light: #e2ebf3;
    --brand-white: #ffffff;
    
    /* Acentos de Energía & Tech */
    --brand-orange: #ff6b35;          /* Naranja de Acción / Botones */
    --brand-cyan: #00f0ff;            /* Cian Cyber / HUD */
    --brand-cyan-glow: rgba(0, 240, 255, 0.4);
    --brand-green-wa: #25D366;

    /* Textos & Neutros */
    --brand-text: #e2ebf3;
    --brand-text-muted: #8ca2ba;

    /* Degradados de Marca */
    --brand-gradient-lime-cyan: linear-gradient(135deg, #ccff00 0%, #00f0ff 100%);
    --brand-gradient-lime-orange: linear-gradient(135deg, #ccff00 0%, #ff6b35 100%);
    --brand-gradient-card: linear-gradient(180deg, rgba(13, 30, 56, 0.75) 0%, rgba(6, 14, 26, 0.85) 100%);
    --brand-gradient-silver: linear-gradient(180deg, #ffffff 0%, #d5e2ed 50%, #8ba3ba 100%);

    /* Tipografías GTA VI */
    --font-title: 'Bebas Neue', Impact, 'Segoe UI', sans-serif;
    --font-hud: 'Rajdhani', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- ESTILOS GENERALES & RESET --- */
html {
    background-color: var(--brand-bg);
    scroll-behavior: auto;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

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

body {
    background-color: var(--brand-bg);
    color: var(--brand-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-padding {
    padding: 7rem 5%;
    position: relative;
    z-index: 2;
}

/* --- LUCES AMBIENTALES & MALLA DE FONDO --- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    transform: translateZ(0);
}

.glow-lime {
    top: -10%;
    left: 20%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--brand-lime) 0%, transparent 70%);
}

.glow-cyan {
    top: 35%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 70%);
}

.glow-orange {
    bottom: 5%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--brand-orange) 0%, transparent 70%);
}

.ambient-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* --- BARRA LATERAL HUD --- */
.side-progression {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 20, 38, 0.85);
    backdrop-filter: blur(15px);
    padding: 14px 10px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
    border: 1px solid rgba(204, 255, 0, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(204, 255, 0, 0.15);
}

.side-link {
    font-size: 1.3rem;
    color: var(--brand-text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    border: 1px solid transparent;
}

/* Tooltip HUD */
.side-link::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    background: rgba(8, 20, 38, 0.95);
    color: var(--brand-white);
    padding: 5px 14px;
    border-radius: 4px;
    font-family: var(--font-hud);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid var(--brand-lime);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

.side-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.side-link:hover, .side-link.active {
    color: #050b14;
    background: var(--brand-lime);
    box-shadow: 0 0 20px var(--brand-lime-glow);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* --- BOTONES GTA VI (ANGULADOS / CUT CORNERS) --- */
.btn-gta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    position: relative;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.btn-gta i {
    font-size: 1.3rem;
}

.btn-gta-primary {
    background: var(--brand-lime);
    color: #050b14;
    box-shadow: 0 8px 30px rgba(204, 255, 0, 0.4);
    border: none;
}

.btn-gta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(204, 255, 0, 0.65);
    background: #d9ff33;
}

.btn-gta-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--brand-cyan);
    border: 2px solid var(--brand-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-gta-secondary:hover {
    background: var(--brand-cyan);
    color: #050b14;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
}

.pulse-effect {
    animation: pulseLime 2.5s infinite;
}

@keyframes pulseLime {
    0% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(204, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
}

/* ==========================================================================
   PRISMA INTRO CURTAIN & HERO REVEAL ANIMATION
   ========================================================================== */
#intro-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050b14;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease 0.7s;
    will-change: transform;
}

#intro-curtain.hide-curtain {
    transform: translateY(-100%);
    pointer-events: none;
}

.intro-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.22) 0%, rgba(0, 240, 255, 0.08) 50%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: introGlowPulse 2.5s infinite alternate ease-in-out;
}

@keyframes introGlowPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro-logo {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 0 35px rgba(204, 255, 0, 0.6));
    animation: introLogoEntry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introLogoEntry {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(25px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.intro-title {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 900;
    letter-spacing: clamp(3px, 0.6vw, 6px);
    line-height: 1;
    margin: 1.2rem 0 0.8rem;
    background: var(--brand-gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9));
    opacity: 0;
    animation: introTitleEntry 0.35s ease-out forwards;
    min-height: 1.15em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.intro-title span {
    background: none;
    -webkit-text-fill-color: var(--brand-lime);
    filter: drop-shadow(0 0 25px rgba(204, 255, 0, 0.8));
}

@keyframes introTitleEntry {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-hud);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brand-cyan);
    text-transform: uppercase;
    opacity: 0;
    animation: introStatusEntry 0.8s ease 0.3s forwards;
}

.intro-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-lime);
    box-shadow: 0 0 10px var(--brand-lime);
    animation: blinkDot 1s infinite;
}

@keyframes introStatusEntry {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hero Stagger Entry Animations Upon Curtain Lift */
.hero-content .gta-badge,
.hero-content .hero-logo-wrapper,
.hero-content .brand-title,
.hero-content .hero-headline,
.hero-content .typing-wrapper,
.hero-content .hero-buttons,
.hero-content .stats-bar {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.loaded .hero-content .gta-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

body.loaded .hero-content .hero-logo-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

body.loaded .hero-content .brand-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

body.loaded .hero-content .hero-headline {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

body.loaded .hero-content .typing-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

body.loaded .hero-content .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

body.loaded .hero-content .stats-bar {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* --- HERO SECTION CINEMÁTICO --- */
.hero {
    min-height: 100vh;
    padding: 7rem 5% 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge Superior Prisma Tech */
.gta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(204, 255, 0, 0.08);
    border: 1px solid rgba(204, 255, 0, 0.4);
    padding: 6px 20px;
    border-radius: 4px;
    font-family: var(--font-hud);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brand-lime);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.15);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 10px var(--brand-cyan);
    animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

/* Logotipo Hero */
.hero-logo-wrapper {
    margin-bottom: 0.5rem;
}

.hero-logo {
    width: 140px;
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(204, 255, 0, 0.5));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Título de Marca (Plata + Verde Neón Prisma) */
.brand-title {
    font-family: var(--font-title);
    font-size: clamp(4.5rem, 11vw, 8rem);
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 0.95;
    margin: 0.5rem 0 1.2rem;
    background: var(--brand-gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.8));
}

.brand-title span {
    background: none;
    -webkit-text-fill-color: var(--brand-lime);
    filter: drop-shadow(0 0 25px rgba(204, 255, 0, 0.7));
}

/* Subtítulo Titular */
.hero-headline {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    letter-spacing: 2px;
    color: var(--brand-white);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Typewriter HUD Wrapper */
.typing-wrapper {
    display: inline-flex;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--brand-text);
    max-width: 780px;
    margin: 0 auto 3rem;
    min-height: 3.5em;
    background: rgba(8, 20, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--brand-lime);
    padding: 14px 22px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.hud-prompt {
    color: var(--brand-lime);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.cursor {
    display: inline-block;
    background-color: var(--brand-lime);
    width: 8px;
    height: 1.2em;
    vertical-align: middle;
    margin-left: 4px;
    box-shadow: 0 0 10px var(--brand-lime);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

/* --- BARRA DE MÉTRICAS / CIFRAS DE IMPACTO (HUD STATS) --- */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(8, 20, 38, 0.75);
    border: 1px solid rgba(204, 255, 0, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.6rem 2.5rem;
    margin-top: 3.5rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(204, 255, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 2.8rem;
    line-height: 1;
    color: var(--brand-lime);
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
    font-weight: 900;
    letter-spacing: 1px;
}

.stat-label {
    font-family: var(--font-hud);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-text-muted);
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
}

/* Indicador de Desplazamiento */
.scroll-down-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--brand-text-muted);
    font-family: var(--font-hud);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    animation: bounceIndicator 2.2s infinite;
}

.scroll-down-indicator i {
    font-size: 1.4rem;
    color: var(--brand-lime);
}

.scroll-down-indicator:hover {
    color: var(--brand-white);
}

@keyframes bounceIndicator {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ==========================================================================
   SECCIONES TIPO CARPETA APILADA (STICKY FOLDER STACKING OPTIMIZADO)
   ========================================================================== */
.section-sheet {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 100vh;
    border-top-left-radius: clamp(32px, 4.5vw, 50px);
    border-top-right-radius: clamp(32px, 4.5vw, 50px);
    box-shadow: 0 -35px 80px rgba(0, 0, 0, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform-origin: center top;
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3.5vh, 3.5rem) 5% !important; /* Se adapta tanto a 720p como a 1080p y 2K */
    margin-bottom: 40vh; /* Recorrido de lectura cómodo para que puedas ver y leer todo antes de que suba la siguiente carpeta */
    isolation: isolate;
    overflow: hidden;
}

/* Capa de atenuación oscura optimizada por hardware (0% a 60%) */
.section-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #02050a;
    opacity: var(--dim-opacity, 0);
    pointer-events: none;
    z-index: 90;
    transition: opacity 0.15s ease-out;
}

/* Fondos 100% SÓLIDOS Y OPACOS (Evita cualquier transparencia o sangrado) */
.sheet-proyectos {
    background-color: #07111e;
    background-image: radial-gradient(circle at 50% 0%, #0d2238 0%, #07111e 80%);
    border-top-color: rgba(204, 255, 0, 0.45);
    box-shadow: 0 -35px 80px #000000, 0 -4px 25px rgba(204, 255, 0, 0.18);
    z-index: 10;
}

.sheet-servicios {
    background-color: #050c17;
    background-image: radial-gradient(circle at 50% 0%, #0a1e36 0%, #050c17 80%);
    border-top-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 -35px 80px #000000, 0 -4px 25px rgba(0, 240, 255, 0.18);
    z-index: 20;
    margin-bottom: 0 !important;
}

.sheet-stack {
    background-color: #081322;
    background-image: radial-gradient(circle at 50% 0%, #102644 0%, #081322 80%);
    border-top-color: rgba(255, 107, 53, 0.45);
    box-shadow: 0 -35px 80px #000000, 0 -4px 25px rgba(255, 107, 53, 0.18);
    z-index: 30;
    margin-bottom: 0 !important;
}

.sheet-proceso {
    background-color: #050c17;
    background-image: radial-gradient(circle at 50% 0%, #0b1f38 0%, #050c17 80%);
    border-top-color: rgba(204, 255, 0, 0.45);
    box-shadow: 0 -35px 80px #000000, 0 -4px 25px rgba(204, 255, 0, 0.18);
    z-index: 40;
}

.sheet-equipo {
    background-color: #07111e;
    background-image: radial-gradient(circle at 50% 0%, #0d2238 0%, #07111e 80%);
    border-top-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 -35px 80px #000000, 0 -4px 25px rgba(0, 240, 255, 0.18);
    z-index: 50;
}

.sheet-contacto {
    background-color: #03070d !important;
    background-image: radial-gradient(circle at 50% 0%, #091729 0%, #03070d 80%) !important;
    border-top-color: rgba(204, 255, 0, 0.5);
    box-shadow: 0 -35px 80px #000000, 0 -4px 25px rgba(204, 255, 0, 0.2);
    z-index: 60;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 100vh !important;
    height: auto !important;
    padding: clamp(2rem, 3.5vh, 3.5rem) 5% 1rem !important;
    box-sizing: border-box !important;
}

.sheet-contacto .contact-box {
    margin: auto auto clamp(1rem, 2vh, 2rem) !important;
    width: 100%;
}

/* --- ENCABEZADOS DE SECCIÓN Y PÍLDORAS (SECTION PILLS CENTRADOS) --- */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto clamp(0.8rem, 1.8vh, 1.8rem);
    position: relative;
    z-index: 5;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 18px;
    border-radius: 40px;
    font-family: var(--font-hud);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-text);
    margin: 0 auto 0.5rem !important; /* SIEMPRE CENTRADO ENCIMA DEL TÍTULO */
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.section-pill:hover {
    border-color: var(--brand-lime);
    background: rgba(204, 255, 0, 0.08);
    transform: translateY(-2px);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-lime);
    box-shadow: 0 0 10px var(--brand-lime);
}

.pill-dot.cyan {
    background: var(--brand-cyan);
    box-shadow: 0 0 10px var(--brand-cyan);
}

.pill-dot.orange {
    background: var(--brand-orange);
    box-shadow: 0 0 10px var(--brand-orange);
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    letter-spacing: 3px;
    color: var(--brand-white);
    position: relative;
    display: block; /* Bloque centrado */
    text-transform: uppercase;
    font-weight: 900;
    margin: 0 auto 0.5rem;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--brand-gradient-lime-orange);
    margin: 14px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.6);
}

.section-subtitle {
    color: var(--brand-text-muted);
    max-width: 650px;
    margin: 1.2rem auto 0;
    font-size: 1.05rem;
    text-align: center;
    width: 100%;
}

/* --- BOTÓN FLOTANTE VOLVER ARRIBA (SCROLL TO TOP) --- */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #050b14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.25);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
    background: var(--brand-lime);
    color: #050b14;
}

/* --- ANIMACIONES DE REVELACIÓN SCROLL --- */
.hidden {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(2), .member:nth-child(2), .project-card:nth-child(2) {
    transition-delay: 120ms;
}

.card:nth-child(3), .member:nth-child(3), .project-card:nth-child(3) {
    transition-delay: 240ms;
}

/* --- SECCIÓN PROYECTOS (ESTILO DOSSIER CLASIFICADO) --- */
.projects {
    background: transparent;
    padding: clamp(1.8rem, 3vh, 3rem) 4% !important;
}

.projects .section-header {
    margin: 0 auto clamp(0.8rem, 1.6vh, 1.5rem);
}

.projects .section-pill {
    margin-bottom: 0.5rem !important;
    padding: 4px 16px;
    font-size: 0.72rem;
}

.projects .section-subtitle {
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 1.5vw, 1.8rem);
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(180deg, rgba(13, 30, 56, 0.95) 0%, rgba(6, 14, 26, 0.98) 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(204, 255, 0, 0.18);
    display: flex;
    flex-direction: column;
    contain: layout paint;
    transform: translateZ(0);
}

.project-card:hover {
    transform: translateY(-6px) translateZ(0);
    border-color: var(--brand-lime);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(204, 255, 0, 0.25);
}

.project-img {
    width: 100%;
    height: clamp(130px, 16vh, 175px);
    background-size: cover;
    background-position: top center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #050b14;
    background: var(--brand-lime);
    padding: 0.65rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 900;
    transition: all 0.3s ease;
    transform: translateY(15px);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.5);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 35px var(--brand-lime);
}

.project-info {
    padding: clamp(1rem, 1.5vh, 1.5rem) clamp(1rem, 1.2vw, 1.4rem);
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-hud);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
    width: fit-content;
}

.tag-lime {
    background: rgba(204, 255, 0, 0.12);
    color: var(--brand-lime);
    border: 1px solid rgba(204, 255, 0, 0.4);
}

.tag-cyan {
    background: rgba(0, 240, 255, 0.12);
    color: var(--brand-cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
}

.tag-orange {
    background: rgba(255, 107, 53, 0.12);
    color: var(--brand-orange);
    border: 1px solid rgba(255, 107, 53, 0.4);
}

.project-info h3 {
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 1.5vw, 1.6rem);
    letter-spacing: 1px;
    color: var(--brand-white);
    margin-bottom: 0.3rem;
}

.project-info p {
    color: var(--brand-text-muted);
    font-size: clamp(0.78rem, 0.88vw, 0.85rem);
    line-height: 1.45;
    margin-bottom: clamp(0.6rem, 1vh, 1rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-hud);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- SECCIÓN SOLUCIONES (ARSENAL TÉCNICO) --- */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 1.8vw, 1.8rem);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.card {
    background: linear-gradient(180deg, rgba(13, 30, 56, 0.95) 0%, rgba(6, 14, 26, 0.98) 100%);
    padding: clamp(1.4rem, 2.2vh, 2.2rem) clamp(1rem, 1.4vw, 1.6rem);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
    transform: translateZ(0); /* Aceleración por GPU Directa */
    contain: layout paint;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gradient-lime-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: rgba(204, 255, 0, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(204, 255, 0, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-family: var(--font-title);
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    letter-spacing: 1px;
    color: var(--brand-white);
    margin: clamp(0.8rem, 1.4vh, 1.2rem) 0 0.5rem;
}

.card p {
    color: var(--brand-text-muted);
    font-size: clamp(0.82rem, 0.95vw, 0.92rem);
    line-height: 1.5;
}

.card strong {
    color: var(--brand-lime);
}

.icon-box {
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    width: clamp(56px, 6.5vh, 72px);
    height: clamp(56px, 6.5vh, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.icon-lime {
    background: rgba(204, 255, 0, 0.12);
    color: var(--brand-lime);
    border: 1px solid rgba(204, 255, 0, 0.4);
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.2);
}

.icon-orange {
    background: rgba(255, 107, 53, 0.12);
    color: var(--brand-orange);
    border: 1px solid rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.2);
}

.icon-cyan {
    background: rgba(0, 240, 255, 0.12);
    color: var(--brand-cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.icon-silver {
    background: rgba(176, 190, 197, 0.12);
    color: var(--brand-silver-light);
    border: 1px solid rgba(176, 190, 197, 0.4);
    box-shadow: 0 0 25px rgba(176, 190, 197, 0.2);
}

.card:hover .icon-box {
    transform: rotateY(360deg) scale(1.08);
}

/* ==========================================================================
   ETAPA DE DIAPOSITIVAS HORIZONTALES (SERVICIOS -> STACK)
   ========================================================================== */
.horizontal-slider-stage {
    height: 220vh; /* Dos estados limpios: Soluciones y Stack */
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 20;
}

.horizontal-slider-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-top-left-radius: clamp(32px, 4.5vw, 50px);
    border-top-right-radius: clamp(32px, 4.5vw, 50px);
    border-top: 1px solid rgba(0, 240, 255, 0.45);
    box-shadow: 0 -35px 80px #000000, 0 -4px 25px rgba(0, 240, 255, 0.18);
    isolation: isolate;
    background-color: #050c17;
    background-image: radial-gradient(circle at 50% 0%, #0a1e36 0%, #050c17 80%);
    padding: 0 !important;
    contain: layout paint;
}

.horizontal-slider-track {
    display: flex;
    flex-direction: row;
    gap: clamp(60px, 10vw, 140px);
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); /* Transición suave garantizada al 100% */
}

.slide-section {
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 4.5vh, 4rem) 4%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden !important;
    transform: translateZ(0);
    contain: layout paint;
}

.slide-servicios {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.slide-stack {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   SHOWCASE DE STACK Y ECOSISTEMA (MARQUEE INFINITO DUAL CONTRAPUESTO)
   ========================================================================== */
.stack-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    gap: 3.5rem;
    margin-bottom: 2.8rem;
}

.stack-header-left {
    flex: 1.2;
    text-align: left;
}

.stack-headline {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    letter-spacing: 2px;
    color: var(--brand-white);
    line-height: 1.08;
    margin-top: 0.4rem;
}

.stack-headline span {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-style: italic;
    font-weight: 400;
    color: var(--brand-text-muted);
    letter-spacing: 0px;
    margin-top: 0.6rem;
}

.stack-header-right {
    flex: 1;
    max-width: 500px;
    text-align: left;
    padding-top: 1.8rem;
}

.stack-header-right p {
    color: var(--brand-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.stack-marquee-wrapper {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-label {
    font-family: var(--font-hud);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-orange);
    text-align: left;
    padding-left: 0.5rem;
    margin-bottom: 0.2rem;
}

.marquee-row {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: clamp(2.5rem, 4vw, 4rem); /* Espaciado amplio y elegante entre logos flotantes */
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* FILA SUPERIOR: Desplaza continuamente a la IZQUIERDA (Nunca se detiene) */
.marquee-left .marquee-track {
    animation: marqueeScrollLeft 22s linear infinite !important;
}

/* FILA INFERIOR: Desplaza continuamente a la DERECHA (Nunca se detiene) */
.marquee-right .marquee-track {
    animation: marqueeScrollRight 22s linear infinite !important;
}

@keyframes marqueeScrollLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marqueeScrollRight {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* LOGOS Y LETRAS FLOTANTES (CERO BORDES, CERO BOTONES, ESTILO MINIMALISTA GTA / MODERN TECH) */
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px 10px;
    user-select: none;
    white-space: nowrap;
    cursor: default;
    transform: translateZ(0);
}

.marquee-item i {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
}

.marquee-item span {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--brand-text-muted);
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Solo las letras se iluminan suavemente al pasar el mouse (brillo sutil, no intenso) */
.marquee-item:hover span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* --- SECCIÓN METODOLOGÍA / PROCESO DE DESARROLLO --- */
.process {
    background: transparent;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 1.4vw, 1.6rem);
    max-width: 1200px;
    margin: 0 auto;
}

.process-card {
    background: linear-gradient(180deg, rgba(13, 30, 56, 0.95) 0%, rgba(6, 14, 26, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: clamp(1.4rem, 2vh, 2rem) clamp(1rem, 1.2vw, 1.5rem);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    contain: layout paint;
    transform: translateZ(0);
}

.process-card:hover {
    transform: translateY(-6px) translateZ(0);
    border-color: var(--brand-cyan);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.2);
}

.process-step {
    position: absolute;
    top: 10px;
    right: 14px;
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    line-height: 1;
    font-weight: 900;
    color: rgba(204, 255, 0, 0.15);
    transition: color 0.3s ease;
}

.process-card:hover .process-step {
    color: var(--brand-lime);
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

.process-icon {
    width: clamp(42px, 5.2vh, 50px);
    height: clamp(42px, 5.2vh, 50px);
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.3rem, 1.8vw, 1.5rem);
    margin-bottom: clamp(0.7rem, 1vh, 1rem);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    background: var(--brand-cyan);
    color: #050b14;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: scale(1.05);
}

.process-card h3 {
    font-family: var(--font-title);
    font-size: clamp(1.15rem, 1.3vw, 1.35rem);
    letter-spacing: 1px;
    color: var(--brand-white);
    margin-bottom: 0.3rem;
}

.process-card p {
    font-size: clamp(0.76rem, 0.85vw, 0.84rem);
    color: var(--brand-text-muted);
    line-height: 1.4;
}

/* --- SECCIÓN EQUIPO (PRISMA CREW / DOSSIER) --- */
.team {
    background: transparent;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 1.5vw, 1.8rem);
    max-width: 1150px;
    margin: 0 auto;
}

.member {
    background: linear-gradient(180deg, rgba(13, 30, 56, 0.95) 0%, rgba(6, 14, 26, 0.98) 100%);
    padding: clamp(1.4rem, 2vh, 2rem) clamp(1.2rem, 1.4vw, 1.6rem);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 260px;
    max-width: 330px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    contain: layout paint;
    transform: translateZ(0);
}

.member-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-hud);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(204, 255, 0, 0.1);
    color: var(--brand-lime);
    border: 1px solid rgba(204, 255, 0, 0.35);
    margin-bottom: clamp(0.6rem, 1.2vh, 0.9rem);
    text-transform: uppercase;
}

.member:hover {
    transform: translateY(-6px) translateZ(0);
    border-color: var(--brand-lime);
    box-shadow: 0 20px 50px rgba(204, 255, 0, 0.2);
}

.member-img-frame {
    margin-bottom: clamp(0.5rem, 1vh, 0.9rem);
}

.member-img {
    width: clamp(75px, 9.5vh, 95px);
    height: clamp(75px, 9.5vh, 95px);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.35s ease;
}

/* Halos Neón Distintivos con la paleta de marca */
.member-lisandro .member-img {
    box-shadow: 0 0 0 3px var(--brand-lime), 0 0 25px rgba(204, 255, 0, 0.5);
}

.member-bryan .member-img {
    box-shadow: 0 0 0 3px var(--brand-cyan), 0 0 25px rgba(0, 240, 255, 0.5);
}

.member-jesus .member-img {
    box-shadow: 0 0 0 3px var(--brand-orange), 0 0 25px rgba(255, 107, 53, 0.5);
}

.member:hover .member-img {
    transform: scale(1.05);
}

.member h4 {
    font-family: var(--font-title);
    font-size: clamp(1.2rem, 1.4vw, 1.5rem);
    letter-spacing: 1px;
    color: var(--brand-white);
    margin-bottom: 0.15rem;
}

.member span {
    font-family: var(--font-hud);
    color: var(--brand-lime);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.member p {
    color: var(--brand-text-muted);
    font-size: clamp(0.75rem, 0.85vw, 0.84rem);
    line-height: 1.4;
    margin-bottom: clamp(0.7rem, 1.2vh, 1.1rem);
}

/* Botón WhatsApp Estilo Canal Directo */
.member-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border: 1px solid #25D366;
    padding: 0.55rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-hud);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
    width: 100%;
}

.member-btn i {
    font-size: 1.1rem;
}

.member-btn:hover {
    background: #25D366;
    color: #050b14;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* --- SECCIÓN CONTACTO (TERMINAL ENCRIPTADA) --- */
.contact {
    background: #03070d;
}

.contact-box {
    background: rgba(8, 20, 38, 0.9);
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(1.8rem, 2.8vh, 2.8rem) clamp(1.5rem, 2.5vw, 2.5rem);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(204, 255, 0, 0.12);
    border: 1px solid rgba(204, 255, 0, 0.25);
    position: relative;
    overflow: hidden;
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-hud);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-text-muted);
    margin-left: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.input-group {
    display: flex;
    gap: 1.5rem;
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    font-family: var(--font-hud);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-cyan);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
    color: var(--brand-white);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--brand-lime);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

/* --- FOOTER INTEGRADO --- */
footer, .footer-integrated {
    width: 100%;
    background-color: transparent;
    color: var(--brand-text-muted);
    text-align: center;
    padding: clamp(0.8rem, 1.8vh, 1.8rem) 5% 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 5;
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    letter-spacing: 3px;
    color: var(--brand-white);
    margin-bottom: 0.2rem;
}

.footer-logo span {
    color: var(--brand-lime);
}

.footer-tagline {
    font-family: var(--font-hud);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--brand-cyan);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- NOTIFICACIÓN FLOTANTE (HUD TOAST) --- */
.toast-notification {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 20, 38, 0.95);
    border: 1px solid var(--brand-lime);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(204, 255, 0, 0.3);
    backdrop-filter: blur(20px);
    color: var(--brand-white);
    padding: 1.2rem 2.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast-notification i {
    font-size: 2rem;
    color: var(--brand-lime);
}

.toast-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.toast-title {
    font-family: var(--font-hud);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-lime);
}

.toast-desc {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

.toast-notification.active {
    bottom: 40px;
    visibility: visible;
    opacity: 1;
}

.toast-notification.error {
    border-color: #ff3366;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 51, 102, 0.5);
}

.toast-notification.error i, .toast-notification.error .toast-title {
    color: #ff3366;
}

/* --- RESPONSIVE OPTIMIZATIONS (TABLET & MÓVIL) --- */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .section-padding {
        padding: 5rem 5%;
    }

    .hero {
        min-height: 100vh;
        padding-top: 5rem;
    }

    .brand-title {
        font-size: clamp(3.2rem, 12vw, 4.5rem);
        letter-spacing: 3px;
    }

    .hero-headline {
        font-size: 1.6rem;
    }

    .typing-wrapper {
        font-size: 0.9rem;
        min-height: 4.8em;
        margin-bottom: 2.2rem;
        padding: 10px 15px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
    }

    .btn-gta {
        width: 100%;
        padding: 0.9rem 1.2rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 1.2rem;
        margin-top: 2.5rem;
    }

    .stat-divider {
        width: 60%;
        height: 1px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .project-img {
        height: 200px;
    }

    /* En Móviles: Flujo Vertical Natural sin Pinning ni Transiciones Complejas */
    .horizontal-slider-stage {
        height: auto !important;
        position: static !important;
    }

    .horizontal-slider-viewport {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        border-top: none !important;
        contain: none !important;
        padding: 0 !important;
    }

    .horizontal-slider-track {
        display: flex !important;
        flex-direction: column !important;
        transform: none !important;
        transition: none !important;
        gap: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    .slide-section {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 4.5rem 5% 3.5rem !important;
        border-top-left-radius: 28px !important;
        border-top-right-radius: 28px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        margin-top: -24px !important;
        overflow: visible !important;
        position: static !important;
    }

    .slide-servicios {
        background-color: #050c17 !important;
        border-top-color: rgba(0, 240, 255, 0.45) !important;
        box-shadow: 0 -20px 50px #000000 !important;
    }

    .slide-stack {
        background-color: #081322 !important;
        border-top-color: rgba(255, 107, 53, 0.45) !important;
        box-shadow: 0 -20px 50px #000000 !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        max-width: 450px !important;
        margin: 0 auto !important;
        gap: 1.2rem !important;
    }

    .section-sheet {
        position: static !important;
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 0 !important;
        margin-top: -24px !important;
        padding: 4.5rem 5% 3.5rem !important;
        border-top-left-radius: 28px !important;
        border-top-right-radius: 28px !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        contain: none !important;
    }

    .section-sheet::before {
        display: none !important;
    }

    .stack-showcase-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .stack-header-right {
        padding-top: 0;
    }

    .marquee-track {
        gap: 1rem;
    }

    .marquee-item {
        padding: 8px 16px;
        gap: 8px;
    }

    .marquee-item i {
        font-size: 1.4rem;
    }

    .marquee-item span {
        font-size: 0.9rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .input-group {
        flex-direction: column;
        gap: 1.2rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .toast-notification {
        width: 90%;
        padding: 1rem 1.5rem;
    }
}

/* ==========================================================================
   ADAPTACIÓN EXPANSIVA PARA MONITORES 1080P, 2K Y PANTALLAS GRANDES
   (min-height: 800px y min-width: 1100px)
   ========================================================================== */
@media screen and (min-height: 800px) and (min-width: 1100px) {
    .section-sheet {
        padding: 3rem 6% !important;
    }

    .section-sheet .section-header {
        margin: 0 auto 2.2rem;
    }

    .section-sheet .section-pill {
        padding: 6px 20px;
        font-size: 0.78rem;
        margin-bottom: 0.8rem !important;
    }

    .section-sheet .section-title {
        font-size: 3rem;
    }

    .section-sheet .section-subtitle {
        font-size: 1rem;
        margin-top: 0.6rem;
    }

    /* Proyectos en 1080p */
    .projects {
        padding: 3rem 5% !important;
    }

    .projects-grid {
        gap: 2rem;
        max-width: 1350px;
    }

    .project-img {
        height: 205px;
    }

    .project-info {
        padding: 1.6rem 1.6rem;
    }

    .project-info h3 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

    .project-info p {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 1.2rem;
        -webkit-line-clamp: 4;
    }

    .project-tag {
        font-size: 0.76rem;
        padding: 4px 12px;
        margin-bottom: 0.6rem;
    }

    .project-tech span {
        font-size: 0.78rem;
        padding: 0.3rem 0.8rem;
    }

    .project-link {
        padding: 0.8rem 1.8rem;
        font-size: 1.05rem;
    }

    /* Proceso en 1080p */
    .process-grid {
        gap: 1.8rem;
        max-width: 1300px;
    }

    .process-card {
        padding: 2.2rem 1.8rem 1.8rem;
    }

    .process-icon {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .process-step {
        font-size: 2.8rem;
    }

    .process-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .process-card p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    /* Equipo en 1080p */
    .team-grid {
        gap: 2.2rem;
        max-width: 1200px;
    }

    .member {
        padding: 2.2rem 1.8rem;
        max-width: 360px;
    }

    .member-badge {
        font-size: 0.75rem;
        padding: 4px 14px;
        margin-bottom: 1rem;
    }

    .member-img {
        width: 115px;
        height: 115px;
    }

    .member-img-frame {
        margin-bottom: 1.2rem;
    }

    .member h4 {
        font-size: 1.65rem;
        margin-bottom: 0.3rem;
    }

    .member span {
        font-size: 0.82rem;
        margin-bottom: 0.8rem;
    }

    .member p {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 1.4rem;
    }

    .member-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Soluciones en 1080p */
    .services-grid {
        gap: 1.8rem;
        max-width: 1250px;
        width: 100%;
        margin: 0 auto;
    }

    .card {
        padding: 2.4rem 2rem 2.2rem;
        border-radius: 16px;
    }

    .icon-box {
        width: 72px;
        height: 72px;
        font-size: 2.3rem;
    }

    .card h3 {
        font-size: 1.5rem;
        margin: 1.2rem 0 0.6rem;
    }

    .card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Stack en 1080p */
    .stack-showcase-header {
        max-width: 1250px;
        width: 100%;
        margin: 0 auto 2.8rem;
    }

    .stack-marquee-wrapper {
        max-width: 1250px;
        width: 100%;
        margin: 0 auto;
    }

    .marquee-track {
        gap: 3.5rem;
    }

    .marquee-item {
        padding: 12px 24px;
        gap: 16px;
    }

    .marquee-item i {
        font-size: 2.8rem;
    }

    .marquee-item span {
        font-size: 1.3rem;
    }

    /* Contacto en 1080p */
    .contact-box {
        max-width: 780px;
        padding: 2.2rem 2.6rem;
    }
}

/* --- CAROUSEL PROYECTOS --- */
.projects-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.projects-carousel-wrapper .projects-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: clamp(1rem, 1.5vw, 1.8rem);
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

.projects-carousel-wrapper .projects-grid::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.projects-carousel-wrapper .project-card {
    flex: 0 0 calc((100% - 2 * clamp(1rem, 1.5vw, 1.8rem)) / 3);
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(8, 20, 38, 0.95);
    border: 1px solid rgba(204, 255, 0, 0.3);
    color: var(--brand-white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--brand-lime);
    color: var(--brand-bg);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.5);
}

.carousel-btn.prev-btn {
    left: -25px;
}

.carousel-btn.next-btn {
    right: -25px;
}

@media (max-width: 1024px) {
    .projects-carousel-wrapper .project-card {
        flex: 0 0 calc((100% - clamp(1rem, 1.5vw, 1.8rem)) / 2);
    }
}

@media (max-width: 768px) {
    .projects-carousel-wrapper {
        padding: 0;
    }
    .carousel-btn {
        display: none;
    }
    .projects-carousel-wrapper .project-card {
        flex: 0 0 100%;
    }
}
