/* =========================================
   1. VARIABLES & RESET (OPTIMIZADO PARA LEGIBILIDAD)
   ========================================= */
:root {
    --bg-color: #FFFFFF;
    --section-bg: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --accent-color: #10B981;
    --accent-hover: #059669;
    --border-color: #E5E7EB;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 16px;
    /* Base sólida: 1rem = 16px */
}

body {
    font-family: var(--font-main);
    background-color: #0f172a;
    color: #f3f4f6;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden !important;
    /* Fix "chueca" layout */
}

/* FUERZA BRUTA PARA EL TEXTO: Hacemos que TODO se lea bien */
p {
    font-size: 1.1rem !important;
    /* ~17.6px (Antes era muy pequeño) */
    line-height: 1.7 !important;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   2. HEADER & NAVBAR
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

/* Estado Scrolled (Controlado por JS) */
.header.scrolled,
.header-solid {
    background-color: #0f172a !important;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container h2 {
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    margin: 0;
    color: white;
}

/* Navegación Desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li a:hover {
    color: #00ff88;
}

/* =========================================
   MOBILE MENU (SLIDE-OUT SIDEBAR)
   ========================================= */
/* =========================================
   MOBILE MENU (SLIDE-OUT SIDEBAR)
   ========================================= */
@media (max-width: 1024px) {

    /* Mostrar Toggle */
    .menu-toggle {
        display: flex !important;
    }

    /* Force Dark Header on Mobile for Visibility */
    .header {
        background-color: #0f172a !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 70%;
        /* Reduced from 80% */
        max-width: 260px;
        /* Reduced from 300px */
        height: 100vh;
        background-color: #0f172a;
        /* Dark theme */
        flex-direction: column;
        align-items: flex-start;
        /* Align left inside sidebar */
        justify-content: flex-start;
        padding: 80px 20px 30px 25px;
        /* Slightly less padding */
        /* Top padding for logo/close btn */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 2000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 20px;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    /* Staggered animation for items */
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.6s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.7s;
    }

    .nav-links li a {
        font-size: 1.4rem;
        /* Increased size */
        font-weight: 800;
        /* Bolder */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 15px;
        width: 100%;
        color: white !important;
        justify-content: space-between;
        /* Arrow alignment */
    }

    /* Green color for Active Page */
    .nav-links li a.active-page,
    .nav-links li.active-page>a {
        color: #00ff88 !important;
        border-bottom-color: rgba(0, 255, 136, 0.3);
    }

    /* Mobile Branding (Client request) */
    .mobile-branding {
        display: block !important;
        margin-bottom: 30px !important;
        border-bottom: none !important;
    }

    /* CTA Button in mobile (Pill Style) */
    .nav-links .btn-primary {
        width: 100% !important;
        background-color: #00ff88 !important;
        color: #0f172a !important;
        text-align: center;
        margin-top: 10px !important;
        display: block;
        padding: 16px 0 !important;
        font-size: 1rem !important;
        font-weight: 900 !important;
        text-transform: uppercase;
        border-radius: 50px !important;
        /* Perfect Pill */
        box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
        letter-spacing: 1px;
    }

    /* FIX: Vertical Stack for Dropdown */
    .dropdown-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        height: auto !important;
        width: 100%;
    }

    /* MOBILE DROPDOWN STYLES */
    .dropdown-menu {
        position: static !important;
        /* Reset absolute desktop pos */
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        min-width: 100% !important;
        display: none;
        /* Hidden by default */
        margin-top: 10px !important;
        padding-left: 20px !important;
        /* Indent sub-items */
        border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
    }

    .dropdown-item.mobile-active .dropdown-menu {
        display: block !important;
        animation: keyframes-fade-in-down 0.3s ease;
    }

    .dropdown-menu li a {
        font-size: 1rem !important;
        font-weight: 500 !important;
        padding: 10px 0 !important;
        color: #94a3b8 !important;
        border-bottom: none !important;
        /* Remove separator for sub-items */
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a.active-page {
        color: #00ff88 !important;
        padding-left: 10px !important;
    }
}

/* OVERLAY BACKDROP */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark Dim */
    backdrop-filter: blur(2px);
    z-index: 1001;
    /* Behind Sidebar (2000) but above everything else */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* HAMBURGER TO X ANIMATION */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown Menu (Desktop) - ARREGLADO */
.dropdown-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0f172a;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px 0;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* FIX: Evitar cierre accidental */
    margin-top: 0 !important;
    padding-top: 15px;
}

/* Puente invisible para el mouse */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-item:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.dropdown-menu li a {
    padding: 12px 25px !important;
    display: block !important;
    color: #cbd5e1 !important;
    border-radius: 0 !important;
}

.dropdown-menu li a:hover {
    background-color: rgba(0, 255, 136, 0.05);
    color: #00ff88 !important;
    padding-left: 30px !important;
}

/* Botón CTA Navbar */
.nav-links .btn-primary {
    background: #00ff88;
    color: #0f172a;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Toggle Mobile (Hamburguesa) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 5px;
    z-index: 2005;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   3. HERO SECTION (REDESIGN - WARP SPEED)
   ========================================= */
/* =========================================
   3. HERO SECTION (REDESIGN - WARP SPEED)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Altura exacta de la ventana (móvil amigable) */
    min-height: 600px;
    /* Evitar colapso en pantallas muy bajitas */
    /* Altura exacta de la ventana (móvil amigable) */
    min-height: 600px;
    /* Evitar colapso en pantallas muy bajitas */
    display: grid;
    grid-template-rows: 1fr auto;
    /* Content centers in 1fr, slider sits in auto */
    justify-items: center;
    align-items: center;
    text-align: center;
    background-color: #0B1120;
    overflow: hidden;
    padding-top: 80px;
    /* Navbar a bit tighter */
}

/* =========================================
   3.1 HERO CENTERED (Paginas de Servicios)
   ========================================= */
.hero-centered {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 140px;
    /* Baja el contenido para alejarlo del header */
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    background-color: #0B1120;
    overflow: hidden;
    /* Contain floating elements */
}

/* =========================================
   3.2 VISUAL EFFECTS (Cerebro, Grid, Orbs)
   ========================================= */

/* Grid Pattern for Tech Vibe */
.mind-grid {
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    width: 100%;
    height: 100%;
}

/* Floating Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.bg-orb-green {
    background: #10b981;
}

.bg-orb-purple {
    background: #a855f7;
}

.bg-orb-blue {
    background: #3b82f6;
}

/* Floating Icons Animation */
.floating-bot {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    animation: floatbot 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatbot {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Floating Keys (Teclas Brillantes) */
.floating-key {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    z-index: 1;
    animation: floatKey 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-key:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-5px) scale(1.1);
    cursor: default;
}

.floating-key.purple:hover {
    border-color: #a855f7;
    color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

@keyframes floatKey {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* =========================================
   3.3 PILOT VIEW (Velocidad / Hiperespacio)
   ========================================= */
.hyperspace-mode {
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    overflow: hidden;
    perspective: 1000px;
}

.hyperspace-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.1) 30%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.data-tunnel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.data-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 50vh;
    background: linear-gradient(to top, transparent, #00ff94);
    transform-origin: top;
    opacity: 0;
}

/* Generamos multiples lineas con nth-child en HTML o usamos un truco de box-shadow */
/* Usaremos una animacion simple de "estrellas" / particulas para simular velocidad */
.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

/* =========================================
   3.4 AI AGENTS HERO (Living Organism)
   ========================================= */
.hero-ai-live {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0B1120;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 50px;
    text-align: center;
}

/* Neural Canvas Background */
#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: all;
    /* Allow mouse interaction */
}

/* Overlay for Text Readability */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 17, 32, 0.7) 0%, rgba(11, 17, 32, 0.95) 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-content-live {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

/* Typography & Colors */
.text-highlight {
    color: #00FF94;
    text-shadow: 0 0 15px rgba(0, 255, 148, 0.3);
}

/* Breathing Button Animation */
.btn-breathing {
    background-color: #00FF94;
    color: #0B1120;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 255, 148, 0.4);
    animation: pulse-glow 3s infinite ease-in-out;
}

.btn-breathing:hover {
    background-color: #00e685;
    transform: translateY(-2px);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 148, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 148, 0.8), 0 0 5px rgba(0, 255, 148, 1);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 255, 148, 0.4);
    }
}

/* Tech Stack Social Proof */
.tech-stack-bar {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.tech-icon {
    font-size: 2.5rem;
    /* FontAwesome size */
    color: white;
    /* Fallback */
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    cursor: pointer;
}

.tech-icon:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
    color: #00FF94;
    /* Colorize hover for FontAwesome */
}

/* Image based icons override if necessary */
/* Image based icons override if necessary */
.tech-img {
    height: 40px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.tech-img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
}

/* =========================================
   3.5 WEB ARCHITECTURE HERO (Digital Shield)
   ========================================= */
.hero-web-arch {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0B1120;
    overflow: hidden;
    padding: 100px 20px;
    text-align: center;
}

/* Hexagonal Grid Background */
.hex-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(150deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(30deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(150deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(60deg, #1e293b77 25%, transparent 25.5%, transparent 75%, #1e293b77 75%, #1e293b77),
        linear-gradient(60deg, #1e293b77 25%, transparent 25.5%, transparent 75%, #1e293b77 75%, #1e293b77);
    background-size: 60px 105px;
    background-position: 0 0, 0 0, 30px 52px, 30px 52px, 0 0, 30px 52px;
    opacity: 0.1;
    animation: hex-move 20s linear infinite;
    z-index: 0;
}

@keyframes hex-move {
    0% {
        background-position: 0 0, 0 0, 30px 52px, 30px 52px, 0 0, 30px 52px;
    }

    100% {
        background-position: 60px 105px, 60px 105px, 90px 157px, 90px 157px, 60px 105px, 90px 157px;
    }
}

/* Cyan Pulse */
.hex-pulse {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 60%);
    animation: pulse-move 8s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse-move {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Text Gradient (Green -> Cyan) */
.text-gradient-arch {
    background: linear-gradient(90deg, #00FF94, #00FFFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Lighthouse Score Animation */
.score-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.score-circle {
    fill: none;
    stroke: #1e293b;
    stroke-width: 10;
}

.score-circle-fill {
    fill: none;
    stroke: #00FF94;
    stroke-width: 10;
    stroke-dasharray: 440;
    /* 2 * PI * r (approx for r=70) */
    stroke-dashoffset: 440;
    /* Start empty */
    transition: stroke-dashoffset 2s ease-out;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(0, 255, 148, 0.5));
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
}

.score-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Feature Cards (Glassmorphism) */
.feature-card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.feature-card-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(0, 255, 148, 0.3);
}

.feature-icon-glass {
    font-size: 1.5rem;
    color: #00FF94;
    filter: drop-shadow(0 0 5px rgba(0, 255, 148, 0.3));
}

margin-top: -120px;
position: relative;
z-index: 10;
}

.hero-content h1 {
    /* REDUCIDO: De 3.5rem a 3rem para que no se vea gigante */
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    /* REDUCIDO: Menos espacio entre el título y el subtítulo */
    margin-bottom: 15px;
    color: white;
    letter-spacing: -1px;
}

/* Subtítulo (párrafo dentro del hero) */
.hero-content p {
    font-size: 1.1rem !important;
    margin-bottom: 15px;
    /* Pegamos más el texto al botón */
}

.highlight {
    color: #00ff88;
}

.text-transparent {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* REDUCIDO: Botones más pegados al texto (antes era 30px) */
    margin-top: 15px;
}

.btn-neon {
    background-color: #10b981;
    color: white;
    padding: 12px 30px;
    /* Ajuste de tamaño del botón */
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-neon:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.btn-outline {
    border: 1px solid #10b981;
    color: #10b981;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: rgba(16, 185, 129, 0.1);
    color: white;
}

/* --- EFECTO DE TEXTO --- */
.hero-content h1 .highlight {
    background: linear-gradient(90deg, #00ff88 0%, #00ff88 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
    font-weight: 900;
    letter-spacing: -1px;
}

/* Efecto Hover en el título (opcional, si quieres que se mueva al pasar el mouse) */
.hero-content h1:hover .highlight {
    text-shadow: 0 0 60px rgba(0, 255, 136, 0.6);
    /* Brilla más al pasar el mouse */
    filter: brightness(1.2);
}

/* Tech Marquee */

/* =========================================
   4. SECCIÓN INVERSIÓN (GASTO VS INVERSIÓN)
   ========================================= */
.investment-section {
    background-color: #f8fafc;
    padding: 100px 0;
    position: relative;
    color: #0f172a;
    clip-path: inset(15% 5% 15% 5% round 40px);
    opacity: 0;
    transform: translateY(50px);
    transition: clip-path 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 1s ease, transform 1s ease;
}

.investment-section.is-visible {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateY(0);
}

.investment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.investment-text {
    padding-right: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.is-visible .investment-text {
    opacity: 1;
    transform: translateY(0);
}

.investment-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.investment-divider {
    width: 80px;
    height: 4px;
    background: #00ff88;
    margin-bottom: 25px;
}

.investment-description {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.7;
}

.investment-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    background: rgba(15, 23, 42, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #00ff88;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.investment-chart-container {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease 0.4s;
}

.is-visible .investment-chart-container {
    opacity: 1;
    transform: translateX(0);
}

.white-card-frame {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    height: 350px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.white-card-frame:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

/* =========================================
   5. SERVICES & ROADMAP (BENTO STYLE)
   ========================================= */
/* =========================================
   5. SERVICES & ROADMAP (High-Tech Redesign)
   ========================================= */
.glass-card {
    /* Base Glass Style */
    background: rgba(15, 23, 42, 0.6);
    /* Fondo más oscuro */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borde sutil inicial */
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Rebote suave "Juicy" */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    /* Altura uniforme */
}

/* Identidad de Color por Tarjeta (Variables) */
.glass-card:nth-child(1) {
    --card-accent: #10b981;
}

/* Verde Neón */
.glass-card:nth-child(2) {
    --card-accent: #3b82f6;
}

/* Azul Eléctrico */
.glass-card:nth-child(3) {
    --card-accent: #a855f7;
}

/* Púrpura Brillante */

/* Estado Hover Premium */
.glass-card:hover {
    transform: translateY(-12px);
    /* Subir más */
    background: rgba(15, 23, 42, 0.95);
    /* Casi sólido para contraste */
    border-color: var(--card-accent);
    /* Iuminar borde */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 20px -5px var(--card-accent);
    /* Glow externo */
    z-index: 10;
}

/* Contenedor del Icono (Primer Div) */
.glass-card>div:first-child {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 70px !important;
    height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--card-accent) !important;
    box-shadow: 0 0 15px -5px var(--card-accent);
    /* Glow permanente */
    transition: all 0.4s ease;
}

.glass-card:hover>div:first-child {
    transform: scale(1.1);
    box-shadow: 0 0 30px -5px var(--card-accent);
    /* Glow intenso */
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-accent);
}

.glass-card>div:first-child svg {
    width: 32px;
    height: 32px;
}

/* Tipografía */
.glass-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.glass-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 30px;
}

/* Enlace / Botón 'Ver más' */
.glass-card a {
    color: var(--card-accent) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: display;
    /* Reset */
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.glass-card a svg {
    transition: transform 0.3s ease;
}

.glass-card:hover a {
    filter: brightness(1.2);
    text-shadow: 0 0 10px var(--card-accent);
}

.glass-card:hover a svg {
    transform: translateX(8px);
    /* Flecha animada */
}

/* Roadmap Specifics - MEJORADO */
.roadmap-section {
    padding: 100px 0;
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Contenedor base */
}

/* Decoración de Fondo (Iconos Gigantes) */
.roadmap-bg-decor {
    position: absolute !important;
    z-index: -1 !important;
    /* Detrás del contenido */
    opacity: 0.04 !important;
    /* Sutil */
    pointer-events: none;
    display: block !important;
}

.roadmap-bg-decor i,
.roadmap-bg-decor svg {
    font-size: 30rem !important;
    /* GIGANTE */
    color: white;
}

.icon-1 {
    top: -10%;
    left: -10%;
    transform: rotate(25deg);
}

.icon-2 {
    bottom: -10%;
    right: -10%;
    transform: rotate(-15deg);
}

.roadmap-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto 1fr;
    /* Two rows for right side */
    gap: 40px 60px;
    align-items: start;
    position: relative;
    z-index: 10;
}

/* Desktop Grid Placement */
.steps-grid {
    grid-column: 1;
    grid-row: 1 /span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.roadmap-header {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}

.roadmap-content {
    grid-column: 2;
    grid-row: 2;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 220px;
    /* Force consistent height */
}

.step-card:hover {
    border-color: #00ff88;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.step-num {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88, #3b82f6);
    -webkit-background-clip: text;
    color: transparent;
}

.roadmap-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
}

/* Botón "Ver Disponibilidad" (Roadmap) */
.roadmap-content .btn-primary {
    display: inline-block !important;
    background-color: #00ff88 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4) !important;
    margin-top: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.roadmap-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6) !important;
}

/* MOBILE LAYOUT ADJUSTMENTS */
@media (max-width: 768px) {
    .roadmap-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .roadmap-header {
        text-align: center;
        order: 1;
        /* Title FIRST */
        margin-bottom: 10px;
    }

    .roadmap-title {
        font-size: 2.5rem;
        /* Resize for mobile */
    }

    .steps-grid {
        order: 2;
        /* Cards MIDDLE */
        grid-template-columns: 1fr 1fr;
        /* Keep 2 cols or switch to 1? Keeping 2 as per screenshot look but optimized */
        gap: 15px;
    }

    .step-card {
        padding: 20px;
        min-height: 180px;
        /* Make them less "tall/rectangular" */
    }

    .roadmap-content {
        order: 3;
        /* Desc/Btn LAST */
        text-align: center;
    }
}

/* =========================================
   6. TESTIMONIALS & FAQ (REDISEÑO VISUAL + TAMAÑO)
   ========================================= */
.testimonials-section {
    padding: 120px 0;
    background-color: #0f172a;
    position: relative;
    /* Fondo sutil */
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
}

/* TÍTULO GRANDE (Impacto Real) */
.section-tag {
    display: block;
    color: #00ff88;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.testimonials-section .section-title {
    font-size: 3.5rem !important;
    /* Muy grande */
    margin-bottom: 60px;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    /* Brillo sutil blanco */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Tarjetas más anchas */
    gap: 40px;
    /* Más espacio entre ellas */
    margin-top: 50px;
}

/* TARJETA DE TESTIMONIO (Estilo Épico) */
.review-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    /* Más redondeado */
    padding: 40px;
    /* Más espacio interno */
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    /* Tarjeta más alta */
    position: relative;
    overflow: hidden;
}

/* Efecto Hover */
.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 41, 59, 0.8);
    border-color: #00ff88;
    box-shadow: 0 20px 50px -10px rgba(0, 255, 136, 0.15);
}

/* Icono del Sector */
.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.sector-icon {
    width: 60px;
    /* Icono más grande */
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    font-size: 1.5rem;
}

.client-info h4 {
    font-size: 1.25rem !important;
    /* Título del sector más grande */
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.client-info span {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Texto del Testimonio */
.review-body p {
    font-size: 1.15rem !important;
    /* Texto del cuerpo GRANDE */
    line-height: 1.7 !important;
    color: #cbd5e1;
    opacity: 1;
    /* Quitamos transparencia para que se lea mejor */
}

/* Resultado Verde (Abajo) */
/* Resultado Verde (Abajo) - REDISEÑO PREMIUM */
.review-result {
    margin-top: auto;
    background: rgba(0, 255, 136, 0.05);
    /* Fondo muy sutil */
    color: #4ade80;
    /* Verde vibrante pero legible text-green-400 */
    padding: 16px 24px;
    border-radius: 0 12px 12px 0;
    /* Bordes redondeados solo derecha */
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-left: 4px solid #00ff88;
    /* La barra lateral clave */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Efecto Brillo al Hover (Toque Premium) */
.review-result::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.review-card:hover .review-result {
    background: rgba(0, 255, 136, 0.1);
    padding-left: 30px;
    /* Desplazamiento sutil */
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1);
}

.review-card:hover .review-result::after {
    transform: translateX(100%);
}

/* --- FAQ REDISEÑADO (Grande y Legible) --- */
/* --- FAQ SECTION CONTAINER & TITLE --- */
.faq-section {
    padding: 100px 0;
    background-color: #0d1425;
}

.faq-section .section-title {
    font-size: 3.5rem !important;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: white;
    letter-spacing: -1px;
    line-height: 1.1;
}

.faq-section .section-title .highlight {
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.faq-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 30px;
    /* Más padding para que se vea grande */
    font-size: 1.3rem !important;
    /* Pregunta GRANDE */
    font-weight: 700;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer p {
    font-size: 1.1rem !important;
    /* Respuesta legible */
    padding: 0 30px 30px;
    color: #cbd5e1;
}

/* Icono y Estados Activos (Igual que antes, pero asegurando el tamaño) */
.faq-item:hover {
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateX(5px);
}

.faq-item.active {
    border-color: #00ff88;
    background: rgba(15, 23, 42, 0.9);
}

.faq-icon {
    font-size: 1.5rem;
    color: #00ff88;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(135deg);
    color: #ef4444 !important;
}

/* RESPUESTA (CONTENIDO) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    /* Fondo interior sutilmente más oscuro */
}

.faq-answer p {
    padding: 0 25px 30px 25px;
    color: #cbd5e1;
    /* Gris claro muy legible */
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

@keyframes keyframes-fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FIX: Mobile Typography Sizing */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem !important;
        /* Smaller size to fit 'Transformación' */
        line-height: 1.2;
        padding-top: 20px;
        /* More space from header */
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 2.2rem !important;
        /* Scale down other titles too */
    }

    /* Remove Investment Chart on Mobile */
    .investment-chart-container {
        display: none !important;
    }

    /* Ensure grid is single column */
    .investment-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- HERO SECTION (Warp Speed Mode) --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 20px;
    overflow: hidden;
    text-align: center;
    background-color: #0B1120;
    z-index: 0;
}

/* Canvas Generativo */
#warp-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Contenido Flotante (Sin Caja) */
.hero-content-clean {
    position: relative;
    z-index: 2;
    /* Encima del canvas */
    max-width: 900px;
    width: 90%;
    padding: 0 1rem;
    margin-bottom: auto;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tipografía de Alto Contraste */
/* 1. TÍTULO MÁS LIMPIO Y POTENTE */
.hero-title {
    font-size: 3.5rem;
    /* Grande */
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    /* Quitamos esa sombra borrosa y ponemos una nítida sutil */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
        /* Minimal padding */
        height: 100dvh;
        min-height: 600px;
        display: grid;
        grid-template-rows: 1fr auto;
        /* Center content, slider at bottom */
        justify-items: center;
        align-items: center;
        background: transparent !important;
        overflow: hidden;
        /* Prevent overflow */
    }

    .hero-content-clean {
        width: 100%;
        max-width: 100vw;
        /* Prevent overflow */
        padding: 0 20px;
        /* Safe padding */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow-x: hidden;
        /* Crucial */
    }

    .hero-title {
        font-size: 2rem;
        /* Reduced from 2.3/1.8 to be safe */
        margin-bottom: 15px;
        line-height: 1.2;
        width: 100%;
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-buttons {
        gap: 15px;
        margin-bottom: 10px;
        flex-direction: column;
        /* Stack buttons! Horizontal was causing overflow */
        width: 100%;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 80%;
        /* Consistent wide buttons */
        max-width: 300px;
        justify-content: center;
    }

    .tech-slider-container {
        padding-bottom: 15px;
        /* Margin top not needed in grid */
    }

    .tech-marquee-container {
        padding: 10px 0;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
        /* Even bigger on desktop for impact */
    }
}

/* 2. EL DEGRADADO CORRECTO (Solo para "Piloto Automático") */
.gradient-text {
    background: linear-gradient(to bottom, #ffffff 0%, #00FF94 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* standard property */
    display: inline-block;

    /* TRUCO PRO: Un filtro drop-shadow al contenedor para que brille el verde */
    filter: drop-shadow(0 0 15px rgba(0, 255, 148, 0.3));
}

/* 3. SUBTÍTULO LEGIBLE */
.hero-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    /* Un gris muy claro, casi blanco */
    font-weight: 500;
    /* Un poco más gordita la letra */
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;

    /* ESTO ES CLAVE: Una sombra suave detrás del texto para separarlo de las estrellas */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #00FF94;
    color: #0B1120;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 148, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 148, 0.6);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Slider Container */
.tech-slider-container {
    position: relative;
    z-index: 2;
    width: 100%;
    /* margin-top managed by grid layout */
    padding-bottom: 30px;
    /* Espacio desde el borde inferior de la pantalla */
    background: linear-gradient(to bottom, transparent, #0B1120);
}

/* --- FIXED TECH MARQUEE (Senior Specs) --- */
.tech-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 5;
    padding: 30px 0;
    /* Más aire vertical */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    background: transparent;
}

.tech-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 4rem;
    width: max-content;
    animation: tech-scroll 30s linear infinite;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

.tech-item:hover {
    color: white;
}

.tech-item i {
    color: #00FF94;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(0, 255, 148, 0.5));
}

@keyframes tech-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}