/* =========================================
   1. VARIABLES Y RESET
========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(25, 25, 25, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    
    --accent-1: #4F46E5; 
    --accent-2: #06B6D4; 
    --whatsapp: #25D366;
    
    /* Nueva fuente aplicada a todo */
    --font-head: 'JetBrains Mono', monospace;
    --font-body: 'JetBrains Mono', monospace;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Oculta el cursor nativo para el custom */
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden !important; /* Fuerza a ocultar desbordes */
    width: 100%; /* Evita bugs de 100vw en móviles */
    max-width: 100%;
    line-height: 1.6;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Soporte de scrollbar para Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-dark);
}

.container {
    width: 93%;
    max-width: 1250px;
    margin: 0 auto;
}

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

/* Custom Scrollbar Webkit */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 10px; }

/* Text Gradient Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* =========================================
   2. CUSTOM MAGNETIC CURSOR
========================================= */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background-color: var(--accent-2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover States for Cursor */
.cursor-dot.hovering { width: 0; height: 0; }
.cursor-outline.hovering {
    width: 60px; height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Touch Pulse Mobile */
.touch-pulse {
    position: fixed;
    width: 40px; height: 40px;
    background: rgba(6, 182, 212, 0.3);
    border: 1px solid var(--accent-2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9999;
    animation: tapPulse 0.5s ease-out forwards;
}

@keyframes tapPulse {
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* =========================================
   3. BACKGROUND MESH (Ambient Glow)
========================================= */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; /* Cambiado de 100vw a 100% */
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   4. NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    width: 90%; max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 24px; font-weight: 900;
    letter-spacing: 2px; color: var(--text-main);
}

#nav-menu { display: flex; align-items: center; gap: 30px; }

#nav-menu a {
    font-size: 14px; font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

#nav-menu a:hover { color: var(--text-main); }

.btn-outline-nav {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-main) !important;
}

.btn-outline-nav:hover {
    background: var(--text-main);
    color: var(--bg-dark) !important;
}

/* Hamburger */
/* Hamburger Original Animada */
.hamburger { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between;
    width: 32px; 
    height: 22px;
    cursor: none; /* Manteniendo tu estilo de cursor custom */
    z-index: 1001; /* Debe estar por encima del menú desplegado */
}

.hamburger span { 
    display: block;
    width: 100%; 
    height: 3px; 
    background-color: var(--text-main); 
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: left center;
}

/* Clases de animación al hacer clic */
.hamburger.active span:nth-child(1) { transform: rotate(45deg); width: 110%; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); width: 110%; }

/* =========================================
   5. HERO SECTION REDISEÑADA (TECH & CREATIVE)
========================================= */
.hero {
    min-height: 100vh;
    display: flex; 
    align-items: center;
    padding-top: 80px; 
    position: relative;
    background-color: #000; /* Fondo negro puro para que resalte el canvas */
    overflow: hidden;
}

/* Estilos para el Canvas de Fondo */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás de todo */
    opacity: 0.6; /* Sutil */
}

.hero-container {
    width: 90%; 
    max-width: 1300px; 
    margin: 0 auto;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 40px;
    position: relative;
    z-index: 10; /* Por encima del canvas */
}

.hero-text-box { 
    flex: 1.1; 
    max-width: 700px; 
    text-align: left;
}

/* Badge más elegante */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 4px; /* Menos redondeado, más técnico */
    font-size: 12px; 
    font-weight: 400; 
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px; 
    color: var(--accent-2);
}

/* Tipografía Principal Imponente */
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(32px, 4.5vw, 56px); /* Un poco más pequeña pero más gruesa */
    line-height: 1.2; 
    font-weight: 800; /* Extra Bold */
    margin-bottom: 25px; 
    min-height: 200px; /* Ajuste anti-saltos */
    letter-spacing: -2px; /* Más moderno */
}

.hero-subtitle {
    font-size: 16px; 
    color: var(--text-muted);
    margin-bottom: 40px; 
    max-width: 550px;
    font-weight: 300;
}

/* =========================================
   NUEVO BOTÓN TECH (GLASS + GRADIENT)
========================================= */
.btn-primary-tech {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.03); /* Casi transparente */
    color: var(--text-main);
    padding: 16px 35px; 
    border-radius: 4px; /* Técnico */
    font-family: var(--font-head); 
    font-weight: 700; 
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

/* Borde degradado sutil usando un pseudo-elemento */
.btn-primary-tech::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px; 
    padding: 1px; /* Grosor del borde */
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    transition: var(--transition);
}

/* Efecto de brillo de fondo en hover */
.btn-primary-tech::after {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    background: var(--accent-1);
    filter: blur(50px);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
    transform: translate(-50%, -50%);
    top: 50%; left: 50%;
}

.btn-primary-tech:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
}

.btn-primary-tech:hover::before {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); /* Borde neón en hover */
}

.btn-primary-tech:hover::after {
    opacity: 0.3; /* Brillo interno */
}

.hero-cta-group { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    gap: 15px; 
}

.microcopy-text { 
    font-size: 12px; 
    color: var(--text-muted); 
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 300;
}

.hero-visual {
    flex: 1; 
    position: relative;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

/* Ajuste de tu cohete */
.rocket-visual {
    width: 100%; 
    max-width: 400px; 
    filter: drop-shadow(0 0 30px rgba(79, 70, 229, 0.3)); 
    animation: floatRocket 6s ease-in-out infinite;
    will-change: transform; /* OPTIMIZACIÓN: Aceleración por GPU */
}

@keyframes floatRocket {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-25px) rotate(-10deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10;
}
.mouse {
    width: 20px; height: 32px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 6px; background: var(--accent-2); border-radius: 2px;
    animation: scrollWheel 2s infinite;
    will-change: transform, opacity; /* OPTIMIZACIÓN: Aceleración por GPU */
}
/* Animación de la ruedita del mouse */
@keyframes scrollWheel { 
    0% { 
        top: 6px; 
        opacity: 1; 
    } 
    100% { 
        top: 18px; 
        opacity: 0; 
    } 
}

/* =========================================
   RESPONSIVE HERO
========================================= */
@media (max-width: 768px) {
    .hero-container { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 60px; 
        gap: 30px;
    }
    
    /* ¡Aquí forzamos el centrado de todos los textos! */
    .hero-text-box { 
        display: flex; 
        flex-direction: column;
        align-items: center; /* Centra los elementos flex (como el badge y el botón) */
        text-align: center;  /* Centra el texto (títulos y párrafos) */
    }
    
    .hero-title { 
        min-height: auto; 
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta-group { 
        align-items: center; 
        width: 100%;
    }
    
    .rocket-visual { 
        max-width: 250px; 
    }
    
    #hero-canvas { 
        opacity: 0.4; 
    } 
}

/* =========================================
   6. SERVICIOS COMPACTOS (3 COLUMNAS ASIMÉTRICAS)
========================================= */
.services-compact { 
    padding: 60px 0 100px 0; 
    position: relative;
    z-index: 5;
}

.services-compact .section-header { 
    text-align: center; 
    margin-bottom: 50px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-compact h2 { 
    font-family: var(--font-head); 
    font-size: clamp(32px, 4vw, 48px); 
    line-height: 1.2;
    letter-spacing: -1px;
}

/* --- Grid de 3 Columnas --- */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 40px; 
}

/* El toque asimétrico para escritorio */
.card-left { transform: translateY(0); }
.card-center { transform: translateY(40px); } /* Empujada hacia abajo */
.card-right { transform: translateY(0); }

/* --- Diseño de Tarjetas (Premium UI) --- */
.compact-card {
    position: relative;
    background: rgba(10, 10, 10, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 20px; 
    padding: 35px 30px; 
    overflow: hidden; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; 
    flex-direction: column; 
    
    transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    will-change: background-color, border-color, box-shadow; /* OPTIMIZACIÓN GPU */
}

/* Elementos internos */
.card-content {
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.card-icon {
    width: 50px; 
    height: 50px; 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 20px; 
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
    will-change: transform; /* OPTIMIZACIÓN GPU */
}

.card-tag {
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-1);
    background: rgba(79, 70, 229, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    font-weight: 900;
}

.compact-card h3 { 
    font-family: var(--font-head); 
    font-size: 20px; 
    margin-bottom: 12px; 
    font-weight: 700;
}

.compact-card p { 
    color: var(--text-muted); 
    font-size: 14px; 
    line-height: 1.6;
}

/* =========================================
   NUEVO HOVER PREMIUM (OPTIMIZADO PARA GPU)
========================================= */

/* 1. Preparamos la línea superior invisible (Ahora usa ScaleX en lugar de Width) */
.compact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 2px; 
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    transform: scaleX(0); /* Lo aplastamos para que no se vea */
    transform-origin: left; /* Hacemos que crezca desde la izquierda */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    will-change: transform; /* OPTIMIZACIÓN GPU */
}

/* 2. El cambio en la tarjeta principal al hacer hover */
.compact-card:hover { 
    background: rgba(15, 15, 15, 0.85);
    border-color: rgba(255, 255, 255, 0.15); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* 3. Disparamos la línea superior por GPU */
.compact-card:hover::before {
    transform: scaleX(1); /* Regresa a su tamaño original de forma súper fluida */
}

/* 4. Snap del Ícono (Micro-interacción brutal) */
.compact-card:hover .card-icon {
    background: var(--accent-2);
    color: var(--bg-dark);
    border-color: var(--text-main);
    transform: scale(1.05) rotate(-5deg); 
}

/* =========================================
   NUEVO HOVER PREMIUM (CERO MOVIMIENTO RETRO)
========================================= */
.compact-card:hover { 
    /* La tarjeta NO se mueve ni escala. Solo se ilumina. */
    background: rgba(15, 15, 15, 0.6);
    border-color: rgba(255, 255, 255, 0.2); /* El borde resalta */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.compact-card:hover .card-glow { 
    opacity: 1; /* Se enciende la nebulosa de color */
}

.compact-card:hover .card-icon {
    /* El ícono se pinta de color y flota levísimo hacia arriba */
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px); 
}

/* =========================================
   RESPONSIVE COMPACT GRID
========================================= */
@media (max-width: 1024px) {
    /* En tablets apilamos de otra forma o forzamos 1 columna si es muy estrecho */
    .compact-grid { gap: 15px; }
    .compact-card { padding: 25px 20px; }
}

@media (max-width: 768px) {
    .services-compact { padding: 50px 0; }
    
    .compact-grid { 
        grid-template-columns: 1fr; /* Una sola columna para móviles */
        gap: 20px;
        padding-bottom: 0; /* Quitamos el extra padding del desfase */
    }
    
    /* Quitamos el desfase asimétrico en móviles para que no se vea chueco */
    .card-left, .card-center, .card-right { 
        transform: translateY(0) !important; 
    }

    .card-header { align-items: center; }
}

/* =========================================
   7. EL PAQUETE 72H (SHOWCASE PREMIUM)
========================================= */
.package-premium {
    padding: 100px 0;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255,255,255,0.03); 
}

/* --- Header Centrado --- */
.package-premium .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.package-title {
    font-family: var(--font-head);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.package-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 550px;
    line-height: 1.6;
    margin: 0 auto;
}

/* --- Grid Principal --- */
.package-grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 35px;
    align-items: center;
}

/* =========================================
   TUS ESTILOS ORIGINALES DE LA FEATURE LIST 
========================================= */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: transparent; 
    border: 1px solid transparent;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, background-color, border-color; /* OPTIMIZACIÓN GPU */
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, background, color, border-color; /* OPTIMIZACIÓN GPU */
}

.feature-text h4 {
    font-family: var(--font-head);
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Tu Hover Original (Estilo Hardware) */
.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(10px); 
}

.feature-item:hover .feature-icon-box {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    color: var(--text-main);
    border-color: var(--text-main);
    transform: scale(1.05) rotate(-5deg); 
}

.feature-item:hover .icon-int {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
}

/* =========================================
   COLUMNA DERECHA: VISUAL SHOWCASE
========================================= */
.package-showcase {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-stage {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 550px;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; 
    overflow: visible; 
}

/* Fondo de cuadrícula tipo Blueprint/Ingeniería */
.blueprint-grid {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    z-index: 0;
}

/* Mockups con 3D inicial */
.mockup-laptop {
    position: absolute;
    width: 100%;
    max-width: 580px;
    z-index: 1;
    border-radius: 8px;
    transform: rotateY(-12deg) rotateX(4deg);
    box-shadow: 20px 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid gray;
    will-change: transform; /* OPTIMIZACIÓN GPU */
}

.mockup-phone {
    position: absolute;
    bottom: 20px;
    right: -10px;
    width: 130px;
    z-index: 2;
    border-radius: 12px;
    transform: rotateY(15deg) rotateX(5deg) translateZ(50px);
    box-shadow: -15px 20px 30px rgba(0,0,0,0.8);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform; /* OPTIMIZACIÓN GPU */
}

/* Al pasar el mouse por el escenario, los mockups "te miran" de frente */
.showcase-stage:hover .mockup-laptop { transform: rotateY(0deg) rotateX(0deg); }
.showcase-stage:hover .mockup-phone { transform: rotateY(0deg) rotateX(0deg) translateY(-15px); }

/* =========================================
   RESPONSIVE PACKAGE DETAILS
========================================= */
@media (max-width: 1024px) {
    .package-grid { grid-template-columns: 1fr; gap: 80px; }
    /* Centrado de la lista para tablet */
    .feature-list { width: 100%; max-width: 600px; margin: 0 auto; text-align: left; } 
}

@media (max-width: 768px) {
    .package-premium { padding: 60px 0; }
    
    .feature-item { padding: 15px; gap: 15px; }
    .feature-item:hover { transform: translateX(5px); } /* Slide más corto en móvil */

    .showcase-stage { height: 320px; max-width: 100%; border-radius: 20px;}
    
    .mockup-laptop { width: 95%; transform: rotateY(0) rotateX(0); }
    .mockup-phone { width: 90px; right: 5%; bottom: -10px; transform: rotateY(0) rotateX(0); }
}

/* =========================================
   8. PROYECTOS (EDITORIAL VERTICAL SCROLL)
========================================= */
.projects-editorial {
    padding: 100px 0; /* Un poco menos de padding general */
    background-color: var(--bg-dark);
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-editorial .section-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.projects-title {
    font-family: var(--font-head);
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* --- Layout del Slider --- */
.editorial-wrapper {
    position: relative;
    width: 100%;
}

.editorial-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none; 
}

.editorial-track::-webkit-scrollbar {
    display: none;
}

/* --- Tarjeta Vertical Minimalista (TAMAÑOS AJUSTADOS) --- */
.ed-card {
    flex: 0 0 300px; /* Reducido de 400px a 300px para que quepan más en pantalla */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 20px; 
    /* OPTIMIZACIÓN: Se reemplazó color-mix por rgba para compatibilidad entre navegadores */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 20px;
}

/* La Ventana del Proyecto (AHORA CON SKELETON LOADER) */
.ed-window {
    width: 100%;
    height: 400px; 
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* Efecto de carga (esqueleto) */
    background: linear-gradient(90deg, #050505 25%, #151515 50%, #050505 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 2s infinite linear;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    transform: translateZ(0);
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Agregamos un fondo de respaldo a la imagen para que no transparente */
.scrolling-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top; 
    background-color: transparent; /* Permite ver el skeleton debajo */
    transition: object-position 5s cubic-bezier(0.25, 1, 0.5, 1); 
    will-change: object-position; 
}

.ed-window:hover .scrolling-img {
    object-position: bottom; 
}

/* Overlay de "Visitar Sitio" */
.view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.4s ease;
    will-change: opacity; /* OPTIMIZACIÓN GPU */
}

.view-overlay span {
    background: var(--text-main);
    color: #000;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    will-change: transform; /* OPTIMIZACIÓN GPU */
}

.ed-window:hover .view-overlay { opacity: 1; }
.ed-window:hover .view-overlay span { transform: translateY(0); }

/* --- Metadatos --- */
.ed-meta { padding: 0 5px; }

.ed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.ed-header h3 {
    font-family: var(--font-head);
    font-size: 18px; /* Título un poco más refinado */
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.ed-year {
    font-family: monospace; 
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.ed-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ed-tags .dot { color: rgba(255, 255, 255, 0.2); }

/* --- Textos introductorios (ESTILO EDITORIAL PREMIUM) --- */
.projects-intro {
    margin-top: 35px;
    max-width: 680px;
    border-left: 2px solid var(--accent-1); /* Línea índigo elegante a la izquierda */
    padding-left: 24px; /* Separación de la línea */
}

/* El primer párrafo actúa como un subtítulo fuerte */
.projects-intro p:nth-child(1) {
    font-family: var(--font-head); /* Usamos la fuente de los títulos */
    font-size: 20px;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Las letras negritas del primer párrafo resaltan en Cyan */
.projects-intro p:nth-child(1) strong {
    color: var(--accent-2); 
    font-weight: 600;
}

/* El segundo párrafo es la explicación sutil */
.projects-intro p:nth-child(2) {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .projects-intro {
        margin-top: 25px;
        padding-left: 16px;
        border-left-width: 2px;
    }
    .projects-intro p:nth-child(1) {
        font-size: 18px;
    }
    .projects-intro p:nth-child(2) {
        font-size: 14px;
    }
}

/* --- Controles del Slider (ULTRA MINIMALISTAS Y CÓMODOS) --- */
.ed-controls {
    display: flex;
    gap: 10px; /* Reduje el gap porque los botones ahora son más anchos */
    margin-top: 0px;
    padding: 0;
}

.ed-btn {
    background: transparent;
    border: none; 
    color: var(--text-muted);
    font-size: 32px; /* Flecha más grande y visible */
    
    /* EL SECRETO: Un hitbox (área táctil) gigante y transparente */
    padding: 30px 25px; 
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, color; /* OPTIMIZACIÓN GPU */
}

.ed-btn:hover {
    color: var(--text-main);
}

/* Interacción de movimiento sutil al pasar el mouse (se ajustó la distancia) */
#ed-prev:hover { transform: translateX(-8px); }
#ed-next:hover { transform: translateX(8px); }

/* =========================================
   RESPONSIVE PACKAGE DETAILS
========================================= */
@media (max-width: 1024px) {
    .package-grid { grid-template-columns: 1fr; gap: 80px; }
    /* Centrado de la lista para tablet */
    .feature-list { width: 100%; max-width: 600px; margin: 0 auto; text-align: left; } 
}

@media (max-width: 768px) {
    .package-premium { padding: 60px 0; }
    
    .feature-item { padding: 15px; gap: 15px; }
    .feature-item:hover { transform: translateX(5px); } /* Slide más corto en móvil */

    .showcase-stage { height: 320px; max-width: 100%; border-radius: 20px;}
    
    .mockup-laptop { width: 95%; transform: rotateY(0) rotateX(0); }
    .mockup-phone { width: 90px; right: 5%; bottom: -10px; transform: rotateY(0) rotateX(0); }
}

/* =========================================
   8. PROYECTOS (EDITORIAL VERTICAL SCROLL)
========================================= */
.projects-editorial {
    padding: 100px 0; /* Un poco menos de padding general */
    background-color: var(--bg-dark);
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-editorial .section-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.projects-title {
    font-family: var(--font-head);
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* --- Layout del Slider --- */
.editorial-wrapper {
    position: relative;
    width: 100%;
}

.editorial-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none; 
}

.editorial-track::-webkit-scrollbar {
    display: none;
}

/* --- Tarjeta Vertical Minimalista (TAMAÑOS AJUSTADOS) --- */
.ed-card {
    flex: 0 0 300px; /* Reducido de 400px a 300px para que quepan más en pantalla */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 20px; 
    /* OPTIMIZACIÓN: Se reemplazó color-mix por rgba para máxima compatibilidad */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 20px;
}

/* La Ventana del Proyecto */
.ed-window {
    width: 100%;
    height: 400px; /* Reducido de 550px a 400px, perfecto para laptops */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    transform: translateZ(0);
}

/* El Scroll-on-Hover Mágico */
.scrolling-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top; 
    transition: object-position 5s cubic-bezier(0.25, 1, 0.5, 1); 
    will-change: object-position; /* OPTIMIZACIÓN GPU */
}

.ed-window:hover .scrolling-img {
    object-position: bottom; 
}

/* Overlay de "Visitar Sitio" */
.view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.4s ease;
    will-change: opacity; /* OPTIMIZACIÓN GPU */
}

.view-overlay span {
    background: var(--text-main);
    color: #000;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    will-change: transform; /* OPTIMIZACIÓN GPU */
}

.ed-window:hover .view-overlay { opacity: 1; }
.ed-window:hover .view-overlay span { transform: translateY(0); }

/* --- Metadatos --- */
.ed-meta { padding: 0 5px; }

.ed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.ed-header h3 {
    font-family: var(--font-head);
    font-size: 18px; /* Título un poco más refinado */
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.ed-year {
    font-family: monospace; 
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.ed-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ed-tags .dot { color: rgba(255, 255, 255, 0.2); }

/* --- Textos introductorios (ESTILO EDITORIAL PREMIUM) --- */
.projects-intro {
    margin-top: 35px;
    max-width: 680px;
    border-left: 2px solid var(--accent-1); /* Línea índigo elegante a la izquierda */
    padding-left: 24px; /* Separación de la línea */
}

/* El primer párrafo actúa como un subtítulo fuerte */
.projects-intro p:nth-child(1) {
    font-family: var(--font-head); /* Usamos la fuente de los títulos */
    font-size: 20px;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Las letras negritas del primer párrafo resaltan en Cyan */
.projects-intro p:nth-child(1) strong {
    color: var(--accent-2); 
    font-weight: 600;
}

/* El segundo párrafo es la explicación sutil */
.projects-intro p:nth-child(2) {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .projects-intro {
        margin-top: 25px;
        padding-left: 16px;
        border-left-width: 2px;
    }
    .projects-intro p:nth-child(1) {
        font-size: 18px;
    }
    .projects-intro p:nth-child(2) {
        font-size: 14px;
    }
}

/* --- Controles del Slider (ULTRA MINIMALISTAS Y CÓMODOS) --- */
.ed-controls {
    display: flex;
    gap: 10px; /* Reduje el gap porque los botones ahora son más anchos */
    margin-top: 0px;
    padding: 0;
}

.ed-btn {
    background: transparent;
    border: none; 
    color: var(--text-muted);
    font-size: 32px; /* Flecha más grande y visible */
    
    /* EL SECRETO: Un hitbox (área táctil) gigante y transparente */
    padding: 30px 25px; 
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, color; /* OPTIMIZACIÓN GPU */
}

.ed-btn:hover {
    color: var(--text-main);
}

/* Interacción de movimiento sutil al pasar el mouse (se ajustó la distancia) */
#ed-prev:hover { transform: translateX(-8px); }
#ed-next:hover { transform: translateX(8px); }

/* =========================================
   RESPONSIVE EDITORIAL SLIDER
========================================= */
@media (max-width: 1024px) {
    .ed-card { flex: 0 0 280px; }
    .ed-window { height: 380px; }
}

@media (max-width: 768px) {
    .projects-editorial { padding: 60px 0; }
    .editorial-track { gap: 20px; }
    
    .ed-card { 
        flex: 0 0 85%; /* Se mantiene el 85% para el swipe perfecto en móvil */
        scroll-snap-align: center;
    }
    
    .ed-window { height: 360px; /* Aún más compacta en celular */ }
    
    .view-overlay { display: none; }
    .ed-controls { display: none; } /* En móvil puramente táctil */
}

/* =========================================
   9. NOSOTROS (AGENCIA TECH PREMIUM)
========================================= */
.about-premium {
    padding: 0px 0;
    position: relative;
    z-index: 5;
}

/* El Contenedor Maestro */
.about-wrapper {
    position: relative;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 80px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Destello sutil en el borde superior */
.about-glare {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    opacity: 0.7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- Textos de la Izquierda --- */
.about-title {
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.about-lead {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 16px;
    border-left: 2px solid var(--accent-1);
    padding-left: 16px;
}

.about-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* --- Estadísticas de Autoridad --- */
.about-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.stat-number i {
    color: var(--accent-2); /* Cyan */
    font-size: 22px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- Composición Visual (Derecha) --- */
.about-visual {
    position: relative;
    width: 100%;
    border-radius: 24px;
}

.image-frame {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(0); 
}

/* La imagen entra en escala de grises y se pinta al hacer hover */
.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
    transition: filter 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: filter, transform; /* OPTIMIZACIÓN GPU */
}

.image-frame:hover .team-img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.05);
}

/* Degradado inferior para asentar la imagen */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5,5,5,0.8) 100%);
    pointer-events: none;
}

/* =========================================
   RESPONSIVE ABOUT
========================================= */
@media (max-width: 1024px) {
    .about-wrapper { padding: 60px 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .about-lead { border-left: none; padding-left: 0; }
    .about-stats { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .about-premium { padding: 60px 0; }
    .about-wrapper { 
        padding: 40px 20px; 
        border-radius: 24px; 
        border-left: none; 
        border-right: none;
    }
    
    .about-title { font-size: 32px; }
    .about-stats { 
        gap: 20px; 
        align-items: center; 
        border-top: none; 
        padding-top: 10px;
    }
    .stat-box {
        flex-direction: row;
    }
    
    .image-frame { height: 350px; }

    .about-stats{
        display: none;
    }
}

/* =========================================
   10. CTA FINAL (MINIMALISMO PRO)
========================================= */
.cta-section-pro {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

/* Contenedor principal sin brillos ni degradados retro */
.cta-box-solid {
    background: #0a0a0a; /* Un negro casi puro, pero que resalta sobre el fondo del body */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); /* Sombra sólida y oscura, cero colores */
}

/* --- Lado Izquierdo: Textos --- */
.cta-text-side {
    flex: 1;
    max-width: 550px;
}

.cta-terminal-tag {
    font-family: var(--font-head);
    font-size: 13px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.cta-terminal-tag i {
    color: var(--whatsapp);
    font-size: 10px;
}

.cta-heading {
    font-family: var(--font-head);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.cta-paragraph {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Lado Derecho: Acción --- */
.cta-action-side {
    flex-shrink: 0;
}

.action-card {
    background: #050505; /* Más oscuro para generar contraste interno */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Botón Sólido y Nítido (Cero animaciones baratas) */
.btn-solid-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--whatsapp);
    color: #000; /* Letra negra para el mejor contraste */
    padding: 20px 40px;
    border-radius: 12px; /* Bordes menos redondeados, más técnicos */
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    width: 100%;
    transition: transform 0.2s ease, background-color 0.2s ease;
    will-change: transform, background-color; /* OPTIMIZACIÓN GPU */
}

.btn-solid-wa i {
    font-size: 24px;
}

/* Hover directo y elegante */
.btn-solid-wa:hover {
    background-color: #ffffff; /* Al pasar el mouse se vuelve blanco puro */
    color: #000;
    transform: translateY(-4px);
}

.action-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-head);
}

.dot-separator {
    color: rgba(255, 255, 255, 0.2);
}

.time-tag {
    color: var(--accent-2); /* Tu cyan para un detalle ultra sutil */
}

/* =========================================
   RESPONSIVE CTA PRO
========================================= */
@media (max-width: 1024px) {
    .cta-box-solid {
        padding: 60px 40px;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .cta-text-side {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .action-card {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .cta-section-pro { padding: 60px 0; }
    
    .cta-box-solid {
        padding: 40px 20px;
        border-radius: 24px;
        border-left: none;
        border-right: none;
    }

    .cta-heading { font-size: 36px; margin-bottom: 16px; }
    .cta-paragraph { font-size: 16px; }
    
    .action-card { padding: 30px 20px; border-radius: 16px; }
    .btn-solid-wa { font-size: 18px; padding: 18px 20px; }
    
    .action-footer { flex-direction: column; gap: 5px; }
    .dot-separator { display: none; }
}

/* =========================================
   11. FOOTER (MINIMALISMO TECH PRO)
========================================= */
.footer-pro {
    background-color: #000000; /* Negro puro para contrastar con el #0a0a0a de arriba */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 0 30px 0;
    position: relative;
    z-index: 5;
}

.footer-grid-pro {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* Distribución asimétrica elegante */
    gap: 60px;
    margin-bottom: 80px;
}

/* --- Columna 1: Marca --- */
.footer-logo {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.footer-brand-pro p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 35px;
}

/* Redes Sociales Cuadradas y Técnicas */
.social-links-pro {
    display: flex;
    gap: 12px;
}

.social-links-pro a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px; /* Cero círculos, estilo botón de hardware */
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, color, background, border-color; /* OPTIMIZACIÓN GPU */
}

.social-links-pro a:hover {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
    transform: translateY(-4px);
}

/* --- Columnas 2 y 3: Enlaces y Contacto --- */
.footer-links-pro h4,
.footer-contact-pro h4 {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.footer-links-pro nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-pro a {
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    width: fit-content;
    will-change: transform, color; /* OPTIMIZACIÓN GPU */
}

.footer-links-pro a:hover {
    color: var(--text-main);
    transform: translateX(6px); /* Pequeño slide al pasar el mouse */
}

.footer-contact-pro ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.footer-contact-pro li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.footer-contact-pro a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-contact-pro a:hover {
    color: var(--text-main);
}

.footer-contact-pro i {
    color: var(--accent-1); /* Indigo */
    font-size: 18px;
    margin-top: 2px;
}

.location-pro i {
    color: var(--accent-2); /* Cyan */
}

/* --- Barra Inferior --- */
.footer-bottom-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.legal-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--text-main);
}

/* =========================================
   RESPONSIVE FOOTER
========================================= */
@media (max-width: 1024px) {
    .footer-grid-pro {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .footer-brand-pro {
        grid-column: span 2; /* La marca ocupa todo el ancho arriba */
    }
    
    .footer-brand-pro p {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .footer-pro { padding: 60px 0 30px 0; }
    
    .footer-grid-pro {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 50px;
        margin-bottom: 50px;
    }
    
    .footer-brand-pro { 
        grid-column: span 1; 
    }
    
    .footer-bottom-pro {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* =========================================
   12. BOTÓN "VOLVER ARRIBA" (ELEVADOR TECH)
========================================= */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #050505; /* Fondo oscuro sólido */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    border-radius: 12px; /* Cuadrado con bordes suaves, cero círculos retro */
    color: var(--text-main);
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Regresamos el pointer nativo para los botones flotantes */
    z-index: 9999;
    
    /* Estado inicial oculto y ligeramente abajo */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); 
    
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Mantiene la animación de la flecha adentro de la caja */
    will-change: opacity, transform, visibility; /* OPTIMIZACIÓN GPU */
}

/* La clase que le pone el JS cuando hacemos scroll */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* El ícono de la flecha */
#back-to-top i {
    transition: transform 0.3s ease;
    will-change: transform; /* OPTIMIZACIÓN GPU */
}

/* --- Efecto Hover Premium --- */
#back-to-top:hover {
    background: var(--text-main); /* Se vuelve blanco sólido */
    color: #000; /* La flecha se vuelve negra */
    border-color: var(--text-main);
    transform: translateY(-5px); /* La caja entera levita un poco */
}

/* La animación de disparo continuo de la flecha al hacer hover */
#back-to-top:hover i {
    animation: shootUp 0.6s ease-in-out infinite;
}

@keyframes shootUp {
    0% { transform: translateY(0); }
    40% { transform: translateY(-35px); opacity: 0; } /* Sube y desaparece */
    41% { transform: translateY(35px); opacity: 0; }  /* Se teletransporta abajo */
    100% { transform: translateY(0); opacity: 1; }    /* Entra desde abajo */
}

/* =========================================
   RESPONSIVE BACK TO TOP
========================================= */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 16px;
        border-radius: 10px;
    }
}

/* =========================================
   11. PRELOADER TECH
========================================= */
#preloader-tech {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-dark); z-index: 999999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
    will-change: opacity; /* OPTIMIZACIÓN GPU */
}
.loader-content { text-align: center; }
.loader-text { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: 5px; margin-bottom: 20px; display: block;}

.loader-bar-container { width: 200px; height: 2px; background: rgba(255,255,255,0.1); overflow: hidden;}

/* OPTIMIZACIÓN GPU: Se cambió 'width' por 'transform: scaleX' para evitar Reflow de pantalla */
.loader-bar { 
    width: 100%; 
    height: 100%; 
    background: var(--accent-2); 
    transform: scaleX(0);
    transform-origin: left;
    animation: loadBar 2s ease forwards;
    will-change: transform;
}
@keyframes loadBar { 100% { transform: scaleX(1); } }

/* =========================================
   12. ANIMACIONES SCROLL (Observer)
========================================= */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform;}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   13. RESPONSIVE MEDIA QUERIES (GENERAL)
========================================= */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .card-large { grid-column: span 2; }
    .details-layout, .about-glass { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto !important; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 1002; } /* Z-index alto para quedar sobre el fondo */
    
    #nav-menu { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh;
        display: flex; 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        z-index: 1001;
        pointer-events: none; /* Para no bloquear clics cuando está cerrado */
        overflow: hidden;
    }
    
    /* MAGIA: El círculo expandible con borde degradado */
    #nav-menu::before {
        content: '';
        position: absolute;
        top: 25px; /* Alineado a la altura de tu header */
        right: 5%; /* Alineado a tu botón hamburguesa */
        width: 40px; 
        height: 40px;
        border-radius: 50%;
        
        /* Hack avanzado para borde degradado en círculos */
        background: linear-gradient(rgba(5,5,5,0.98), rgba(5,5,5,0.98)) content-box, 
                    linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(79, 70, 229, 0.4)) border-box;
        
        transform: scale(0);
        transform-origin: center;
        transition: transform 0.7s cubic-bezier(0.75, 0, 0.25, 1); /* Curva fluida estilo Apple */
        z-index: -1;
        will-change: transform; /* OPTIMIZACIÓN GPU: Vital para animaciones de escala gigante */
    }
    
    /* Estado activo del menú */
    #nav-menu.active { 
        pointer-events: auto; 
    }
    
    #nav-menu.active::before { 
        transform: scale(80); /* Crece hasta cubrir toda la pantalla */
    }
    
    /* Animación de los enlaces (entran flotando después del círculo) */
    #nav-menu a, #nav-menu .btn-outline-nav {
        font-size: 24px;
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        will-change: transform, opacity; /* OPTIMIZACIÓN GPU */
    }
    
    #nav-menu.active a, #nav-menu.active .btn-outline-nav {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.4s ease 0.3s; /* Tienen un pequeño retraso para lucir más pro */
    }

    /* --- El resto de tus reglas móviles --- */
    .hero-container { 
        text-align: center; padding-top: 0px; gap: 30px;}
    .hero-text-box { align-items: center; display: flex; flex-direction: column;}
    .hero-title { min-height: 115px; margin-bottom: 20px;}
    .hero-subtitle { text-align: center; margin-left: auto; margin-right: auto;}
    .hero-cta-group { align-items: center; width: 100%;}
    .rocket-visual { max-width: 250px; }
    #hero-canvas { opacity: 0.4; } 
}

@media (max-width: 430px){
    .rocket-visual { max-width: 220px; }
    .scroll-indicator { display: none;}
}

@media (max-width: 405px){
    .rocket-visual { max-width: 210px; }
}