:root {
    --bg-dark: #030712;
    --blue-tech: #0EA5E9;
    --blue-tech-light: #38BDF8;
    --gold: #F59E0B;
    --gold-light: #FBBF24;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-subtle: rgba(14, 165, 233, 0.15);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* overflow-x: hidden va en html, NO en body.
   Si está en body, Chrome convierte al body en un scroll-container y los
   elementos con position:fixed se anclan a él en lugar del viewport real,
   lo que desplaza el cursor custom. */
html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Forzar renderizado al 80% de zoom como predeterminado en pantallas de escritorio */
@media (min-width: 1025px) {
    body {
        zoom: 0.8;
        -moz-transform: scale(0.8);
        -moz-transform-origin: top left;
        /* Compensar el zoom: 100% / 0.8 = 125vw */
        width: 125vw;
        max-width: none;
    }
    
    /* Invertir el zoom en los elementos del cursor para que las coordenadas de e.clientX 
       no sufran distorsión y coincidan perfectamente con el puntero real del OS */
    .cursor-dot, .cursor-ring {
        zoom: 1.25 !important;
        -moz-transform: translate(-50%, -50%) scale(1.25) !important;
    }
}

/* GLOBAL WALLPAPER STYLES (Encasement of the cyborg) */
.global-cyborg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -3;
    perspective: 1500px;
    background-color: var(--bg-dark);
}

#master-cyborg-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

#threejs-head-container {
    width: 100%;
    height: 110vh;
    opacity: 1;
    /* Increased from 0.8 to make face pop */
    /* Ensure it is visible immediately without scroll */
    mix-blend-mode: screen;
    /* clip-path removed: we want it visible from the start */
    transform: translateY(3vh);
    /* Push down so it clears the top navigation menu */
    /* Start at neutral Y so it's fully framed */
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.6));
}

#threejs-head-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    /* Soft circular radial gradient to fuse the edges into the abyss */
    background: radial-gradient(circle at center 30%, transparent 15%, var(--bg-dark) 85%);
    pointer-events: none;
    z-index: 1;
}

.bg-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Custom Cursor */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    /* Ocultar inmediatamente en touch via variable CSS */
    display: var(--hide-cursor, block);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blue-tech-light);
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(14, 165, 233, 0.5);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-ring.hovering {
    width: 50px;
    height: 50px;
    background-color: rgba(14, 165, 233, 0.1);
    border-color: var(--blue-tech-light);
}

/* Canvas Background */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}

.mono-num {
    font-family: var(--font-mono);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: var(--bg-dark);
    border: 1px solid var(--blue-tech);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--blue-tech), var(--blue-tech-light));
    z-index: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 0.9;
}

.btn-primary .btn-text {
    position: relative;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.btn-primary:hover .btn-glow {
    transform: translate(-50%, -50%) scale(1);
}

.btn-secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn.lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Base Card Styles */
.card {
    background: #050a14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-scan {
    position: relative;
    overflow: hidden;
}

.tech-scan::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.5), transparent);
    animation: scan 4s linear infinite;
    opacity: 0.2;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

/* SECTION 1: HERO */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-logo-img {
    height: 65px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--blue-tech-light);
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.hero-split-text {
    position: absolute;
    top: 45vh;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    pointer-events: none;
    z-index: 5;
    transform: translateY(-50%);
}

.split-word {
    font-family: var(--font-heading);
    font-size: 1.8vw;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-main);
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.split-word.right {
    color: #D3D3D3;
    text-shadow: 0 0 20px rgba(211, 211, 211, 0.4);
}

@media (max-width: 1024px) {
    .hero-split-text {
        padding: 0 2vw;
    }

    .split-word {
        font-size: 2.5vw;
    }
}

@media (max-width: 768px) {
    .hero-split-text {
        /* Sacar del posicionamiento absoluto en móvil */
        position: relative;
        top: auto;
        transform: none;
        /* Empujar por debajo de la cara (face ocupa ~100vh de fondo) */
        margin-top: 18vh;
        padding: 1.5rem 1rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        z-index: 5;
    }

    .split-word {
        font-size: 1.2rem;
        text-align: center;
    }

    /* Reducir hero-content en móvil: el split-text ya ocupa el espacio superior */
    .hero-content {
        min-height: 40vh;
        padding-top: 1rem;
    }
}

.hero-content {
    position: relative;
    min-height: 122vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 20vh;
    padding-bottom: 0;
}

.hero-tag-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-tag-container.center-nuvio {
    text-align: center;
}

.hero-tag-container.center-nuvio .hero-brand {
    margin: 0;
    width: 100%;
    text-align: center;
    transform: translateX(0);
    /* Remove offset */
}

/* Removed hero-text-floating styles as they were deleted from HTML */

.hero-scroll-indicator {
    position: absolute;
    bottom: 5vh;
    /* Pulled further down as requested */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 50;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--blue-tech) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: scrollDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDrop {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.scroll-wrapper-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
}

.scroll-hint-bar span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.hero-footer-content {
    position: relative;
    margin-top: auto;
    width: 100%;
    padding: 4vh 2rem 4rem 2rem;
    text-align: center;
    background: linear-gradient(to top, var(--bg-dark) 40%, rgba(3, 7, 18, 0.5) 80%, transparent);
    z-index: 20;
}

.hero-services {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-services .dot {
    color: var(--blue-tech);
    margin: 0 10px;
}

.hero-title {
    font-size: 1.4rem;
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    pointer-events: auto;
    /* Buttons must be clickable */
}

/* SECTION 2: PROBLEM */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    text-align: center;
}

.stat-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--blue-tech-light);
    display: inline-block;
}

.stat-symbol {
    font-size: 2rem;
    color: var(--blue-tech);
    font-weight: 700;
}

.stat-desc {
    font-size: 1.1rem;
    margin: 1rem 0;
    color: var(--text-main);
}

.stat-source {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.dramatic-quote {
    background: rgba(14, 165, 233, 0.05);
    border-left: 4px solid var(--blue-tech);
    padding: 3rem;
    border-radius: 0 8px 8px 0;
    text-align: center;
}

.dramatic-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--text-main);
}

.dramatic-quote strong {
    color: white;
}

/* SECTION 3: SOLUTION */
.comparison-table {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-weight: bold;
    text-align: center;
}

.table-header>div {
    padding: 1.5rem;
}

.col-bad {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header .col-bad {
    color: #ef4444;
}

.table-header .col-good {
    color: var(--blue-tech-light);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row>div {
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.table-row .col-bad {
    color: rgba(248, 250, 252, 0.7);
    background: rgba(239, 68, 68, 0.02);
}

.table-row .col-good {
    background: rgba(14, 165, 233, 0.1);
    border-left: 2px solid var(--blue-tech);
    color: white;
    font-weight: 600;
}

/* SECTION 4: APPROACH */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.approach-category {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.approach-col .item {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.approach-col .item.bad {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.approach-col .item.good {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--blue-tech);
}

.icon-cross svg {
    width: 20px;
    height: 20px;
    color: #ef4444;
}

.icon-check svg {
    width: 20px;
    height: 20px;
    color: var(--blue-tech-light);
}

.item .label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item.bad .label {
    color: var(--text-muted);
    text-decoration: line-through;
}

.item.good .label {
    color: var(--blue-tech);
    font-weight: bold;
}

.item p {
    font-size: 0.95rem;
}

/* SECTION 5: ECOSYSTEM */
.tools-galaxy {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.group-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    max-width: 300px;
}

.chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--blue-tech);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.group-ventas .chip:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.group-marketing .chip:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.group-operaciones .chip:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.group-productividad .chip:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* SECTION 6: REASONS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cards-grid.list-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cards-grid.list-layout .reason-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2rem;
    padding: 2rem;
}

.cards-grid.list-layout .reason-card .icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.reason-card {
    position: relative;
}

.reason-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 0 var(--blue-tech);
    transition: box-shadow 0.3s ease;
    opacity: 0;
}

.reason-card:hover::after {
    opacity: 1;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.2);
    border: 1px solid var(--blue-tech);
}

.reason-card .icon {
    width: 40px;
    height: 40px;
    color: var(--blue-tech);
    margin-bottom: 1.5rem;
}

.reason-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.reason-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SECTION 7: METHODOLOGY */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    background: var(--blue-tech);
}

.timeline-item {
    position: relative;
    padding-bottom: 4rem;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--bg-dark);
    border: 2px solid var(--blue-tech);
    color: var(--blue-tech-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
    background: var(--blue-tech);
    color: #fff;
    box-shadow: 0 0 15px var(--blue-tech);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.timeline-content p {
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: none;
    padding-left: 1rem;
}

.timeline-content li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: -1.2rem;
    color: var(--blue-tech);
}

/* SECTION 8: USE CASE */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.terminal-card {
    background: #0f172a;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
    background: #ef4444;
}

.terminal-dots span:nth-child(2) {
    background: #f59e0b;
}

.terminal-dots span:nth-child(3) {
    background: #10b981;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 2rem;
    color: #a7f3d0;
    line-height: 1.8;
}

.terminal-body .highlight {
    color: white;
    font-weight: bold;
}

.blinking-cursor {
    display: inline-block;
    width: 10px;
    height: 1em;
    background: var(--gold);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 2px solid transparent;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(14, 165, 233, 0.05);
    border-top-color: var(--blue-tech);
}

.result-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.result-icon svg {
    width: 40px;
    height: 40px;
    color: var(--blue-tech);
}

/* SECTION 9: CTA FINAL */
.cta-final {
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* SECTION 10: FOOTER */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    background: #020408;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--blue-tech-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-quote {
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}


/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;           /* parte del hero, se va con el scroll */
    top: calc(100vh - 8rem);      /* al fondo de la pantalla inicial */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    animation: scrollFadeIn 2s ease 1.2s forwards;
}

.scroll-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

/* Línea vertical */
.scroll-line {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.22);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

/* Gota brillante que baja por la línea */
.scroll-drop {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 1), transparent);
    border-radius: 2px;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.9));
    animation: dropFall 2s ease-in-out infinite;
}

@keyframes dropFall {
    0%   { top: -20px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 80px;  opacity: 0; }
}

@keyframes scrollFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* Ocultar en móvil */
@media (max-width: 768px) {
    .scroll-indicator { display: none; }
}


/* Responsive - sin cambios de layout en móvil */



/* --- NEW SECTIONS --- */

.container-2col {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .container-2col {
        flex-direction: column;
        gap: 2rem;
    }
}

.col-left,
.col-right {
    flex: 1;
    width: 100%;
}

.col-left {
    position: sticky;
    top: 100px;
}

.col-right .reason-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reason-item.card {
    background: #050a14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.reason-item .icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--blue-tech);
}

.carousel-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 350px;
    max-width: 400px;
    flex-shrink: 0;
}

.review-rating {
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--blue-tech-light);
    border: 1px solid var(--blue-tech);
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.author-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-nav:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--blue-tech);
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

@media (max-width: 1200px) {
    .flip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .flip-grid {
        grid-template-columns: 1fr;
    }
}

.flip-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner.card {
    background: #050a14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    background: #001233 !important;
    color: white;
    transform: rotateY(180deg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-card-front {
    background: #050a14 !important;
    z-index: 2;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-card-front .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.flip-card-front h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.flip-card-back {
    background: #001233 !important;
    color: white;
    transform: rotateY(180deg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-card-back p {
    font-size: 0.95rem;
    color: var(--text-main);
}

.new-footer {
    font-size: 14px;
}

.border-top-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-heading {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-tech-light) !important;
}

.new-footer ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.new-footer ul li a.mailto-link {
    color: var(--blue-tech-light) !important;
}

.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.wa-modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 400px;
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modificador opaco a tarjetas */
.opaco {
    background: rgba(3, 7, 18, 0.98) !important;
    backdrop-filter: blur(8px) !important;
}

.flip-card-back.opaco {
    background: #001233 !important;
}

.flip-card-front.opaco {
    background: rgba(0, 10, 30, 0.98) !important;
}

/* Explicit solid overrides for flip cards */
.flip-card-front,
.flip-card-back {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 2rem !important;
}

.flip-card-front {
    background: #0B132B !important;
    /* Solid dark navy */
    z-index: 2;
}

.flip-card-back {
    background: #1C2541 !important;
    /* Solid slightly lighter navy for contrast */
    transform: rotateY(180deg) !important;
}

.flip-card-inner {
    border-radius: 16px !important;
}

.review-card {
    background: #0B132B !important;
    /* Make reviews solid too just in case */
    border-radius: 16px !important;
}

/* Flip section */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    perspective: 1200px;
}

@media (max-width: 1200px) {
    .flip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .flip-grid {
        grid-template-columns: 1fr;
    }
}

.flip-card {
    background-color: transparent;
    height: 250px;
    perspective: 1200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 16px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem !important;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.flip-card-front {
    background-color: #030712 !important;
    /* Deep space solid dark blue */
    z-index: 2;
}

.flip-card-front h3 {
    margin: 0;
    color: #ffffff !important;
}

.flip-card-back {
    background-color: #0f172a !important;
    /* Slightly lighter solid blue */
    transform: rotateY(180deg);
}

.flip-card-back p {
    margin: 0;
    color: #cbd5e1 !important;
}

/* Ensure review cards are also completely opaque */
.review-card {
    background-color: #030712 !important;
    box-sizing: border-box;
}

/* Add overrides for the specific new flip card updates requested */
.flip-card {
    height: 280px !important;
    /* Minimum 220px, making it 280 for generous padding */
}

.flip-card-front {
    background-color: rgba(0, 20, 60, 0.95) !important;
    border: 1px solid rgba(0, 200, 255, 0.3) !important;
    z-index: 10 !important;
    padding: 3rem !important;
    /* Generous */
}

.flip-card-front h3 {
    font-size: 1.4rem !important;
}

.flip-card-back {
    background-color: rgba(0, 10, 40, 0.98) !important;
    border: 1px solid rgba(0, 200, 255, 0.3) !important;
    padding: 2.5rem !important;
    /* Generous */
}

.flip-card-back p {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    line-height: 1.6;
}

/* Styles for the new simple solutions grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

.solution-card {
    background-color: rgba(0, 20, 60, 0.95) !important;
    border: 1px solid rgba(0, 200, 255, 0.3) !important;
    padding: 2.5rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 200, 255, 0.8) !important;
}

.solution-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
    padding-bottom: 0.8rem;
}

.solution-card p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* REVIEWS CAROUSEL CSS */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.review-card {
    flex: 0 0 calc(33.333% - 2rem);
    margin: 0 1rem;
    background: rgba(10, 15, 25, 0.9) !important;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    white-space: normal;
}

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 calc(100% - 2rem);
    }
}

.review-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    border-color: var(--blue-tech-light);
}


/* CONTACT MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.contact-form-glass {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .contact-form-glass {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.classic-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row>.input-group {
    flex: 1;
}

.input-group {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-tech-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input,
.input-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--blue-tech);
    background: rgba(14, 165, 233, 0.1);
}

.input-group textarea {
    resize: none;
}

.b-full {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ==============================================
   MOBILE RESPONSIVE STYLES
   ============================================== */

/* Desktop-only: zoom en nav/header/footer */
@media (min-width: 769px) {
    nav, header, footer {
        zoom: 1.25;
    }
}

/* Ocultar cursor custom en touch */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
    * { cursor: auto !important; }
}

@media (max-width: 768px) {

    /* --- NAVBAR: fila 1 = logo + botón, fila 2 = links centrados --- */
    .navbar {
        padding: 0.6rem 1rem;
        flex-wrap: wrap;
        row-gap: 0.4rem;
    }
    .nav-logo-img {
        height: 38px;
    }
    .nav-cta {
        margin-left: auto;
    }
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem 0.9rem;
        width: 100%;
        order: 3;
    }
    .nav-links a {
        font-size: 0.65rem;
    }

    /* --- SPLIT TEXT: "Democratizando" y "Competitividad" debajo de la cara --- */
    .hero-split-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
        top: 62vh;          /* empieza debajo de la cara */
        height: auto;
        padding: 0 1rem;
        gap: 0.4rem;
        transform: none;    /* quitar el translate del desktop */
        pointer-events: none;
    }
    .split-word {
        font-size: 4.5vw;
        letter-spacing: 2px;
        white-space: nowrap;
        display: block;
        width: 100%;
        text-align: center;
    }
    .split-word.right {
        color: #D3D3D3;
        text-shadow: 0 0 20px rgba(211, 211, 211, 0.4);
    }

    /* --- TIPOGRAFÍA: proporcional al ancho del teléfono --- */
    .section-title {
        font-size: clamp(1.1rem, 4.5vw, 1.6rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .hero-title {
        font-size: clamp(0.85rem, 3.2vw, 1.1rem);
        line-height: 1.5;
    }

    .cta-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .stat-value {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stat-desc {
        font-size: 0.8rem;
    }

    .stat-symbol {
        font-size: 1.4rem;
    }

    /* --- CARDS: reducir padding para que quede info visible --- */
    .card {
        padding: 1rem;
    }

    .solution-card {
        padding: 1rem !important;
    }

    .solution-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .solution-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* --- SECTIONS: menos espacio vertical --- */
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* --- REASON CARDS: compactas --- */
    .cards-grid.list-layout .reason-card {
        padding: 1rem;
        gap: 1rem;
    }

    .reason-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .reason-card p {
        font-size: 0.8rem;
    }

    /* --- TIMELINE --- */
    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    /* --- FOOTER: 2 columnas para que quepa todo en móvil --- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
    }
    .footer-brand {
        grid-column: 1 / -1; /* Ocupa todo el ancho */
    }
    .footer-brand h2 {
        font-size: 1.4rem;
    }
    .footer-links h3 {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    .footer-links a {
        font-size: 0.78rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.72rem;
    }
    .footer-quote {
        display: none;
    }
    /* --- REORDEN TABLA COMPARACIÓN --- */
    .comparison-table {
        display: flex;
        flex-direction: column;
    }
    .table-header,
    .table-row {
        display: contents;
    }
    .table-header .col-bad  { order: 1; display: block; background: rgba(239,68,68,0.12); font-weight: 800; border-bottom: 2px solid #ef4444; padding: 1rem; font-family: var(--font-mono); text-align: center; color: #ef4444; font-size: 0.85rem; }
    .table-row .col-bad      { order: 2; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.85rem 1rem; background: rgba(239,68,68,0.02); color: rgba(248,250,252,0.8); font-size: 0.82rem; }
    .table-header .col-good { order: 3; display: block; background: rgba(14,165,233,0.2); font-weight: 800; margin-top: 1.5rem; border-bottom: 2px solid var(--blue-tech); padding: 1rem; font-family: var(--font-mono); text-align: center; color: var(--blue-tech-light); font-size: 0.85rem; }
    .table-row .col-good     { order: 4; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.85rem 1rem; background: rgba(14,165,233,0.06); color: white; font-weight: 600; border-left: 3px solid var(--blue-tech); font-size: 0.82rem; }
}

/* --- INFINITE TICKER CARRUSEL --- */
.ticker-track {
    animation: scrollTicker 40s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}