:root {
    --azul-profundo: #0a1628;
    --azul-corporativo: #0d3b66;
    --azul-medio: #1a5a96;
    --celeste: #3498db;
    --celeste-claro: #5dade2;
    --blanco: #ffffff;
    --gris-claro: #f8fafc;
    --gris-texto: #64748b;
    --gradiente-hero: linear-gradient(135deg, #0a1628 0%, #0d3b66 50%, #1a5a96 100%);
    --sombra-suave: 0 4px 20px rgba(13, 59, 102, 0.15);
    --sombra-elevada: 0 20px 60px rgba(10, 22, 40, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--azul-profundo);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--blanco);
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--azul-profundo);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.preloader-logo span {
    color: var(--celeste-claro);
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: var(--celeste);
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 50px;
    box-shadow: var(--sombra-suave);
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-texto);
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--celeste);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--gris-claro);
}

/* ========== NAVEGACIÓN ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--sombra-suave);
    padding: 0.8rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--blanco);
    transition: color 0.3s;
}

nav.scrolled .logo {
    color: var(--azul-profundo);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: white;
    font-size: 1.3rem;
    position: relative;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.logo-particles {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.logo-particle {
    position: absolute;
    background: var(--celeste-claro);
    border-radius: 50%;
}

.logo-particle:nth-child(1) { width: 6px; height: 6px; top: 5px; right: 5px; opacity: 0.9; }
.logo-particle:nth-child(2) { width: 4px; height: 4px; top: 0; right: 16px; opacity: 0.7; }
.logo-particle:nth-child(3) { width: 5px; height: 5px; top: 12px; right: -2px; opacity: 0.6; }
.logo-particle:nth-child(4) { width: 3px; height: 3px; top: -4px; right: 8px; opacity: 0.4; }
.logo-particle:nth-child(5) { width: 3px; height: 3px; bottom: 12px; right: 0; opacity: 0.5; }

.logo-text {
    display: flex;
}

.logo-text .pixel {
    color: inherit;
}

.logo-text .medios {
    color: var(--celeste-claro);
}

nav.scrolled .logo-text .medios {
    color: var(--celeste);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--azul-corporativo);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--celeste);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--celeste);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--celeste-claro);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.nav-cta::after {
    display: none !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--blanco);
    transition: all 0.3s;
}

nav.scrolled .menu-toggle span {
    background: var(--azul-corporativo);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    background: var(--gradiente-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(93, 173, 226, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(26, 90, 150, 0.1) 0%, transparent 30%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(52, 152, 219, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Partículas flotantes */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--celeste);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 15s; }
.particle:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 20s; width: 8px; height: 8px; }
.particle:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 14s; }
.particle:nth-child(6) { left: 75%; animation-delay: 5s; animation-duration: 16s; width: 5px; height: 5px; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--celeste);
    border-radius: 20px;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--celeste);
    border-radius: 50%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--celeste-claro);
    transform: rotate(45deg);
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 30%;
    right: 25%;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 30px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1s ease forwards 0.5s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--celeste-claro);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--celeste);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--blanco);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--celeste) 0%, var(--celeste-claro) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--celeste);
    color: white;
}

.btn-primary:hover {
    background: var(--celeste-claro);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--celeste);
    background: rgba(52, 152, 219, 0.1);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic {
    position: relative;
    width: 100%;
    height: 100%;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 200px; height: 200px; animation: spin 20s linear infinite; }
.orbit-2 { width: 320px; height: 320px; animation: spin 30s linear infinite reverse; }
.orbit-3 { width: 440px; height: 440px; animation: spin 40s linear infinite; }

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--celeste);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--celeste);
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.4);
    animation: centerPulse 3s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

.center-logo-particles {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.center-particle {
    position: absolute;
    background: var(--celeste-claro);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

.center-particle:nth-child(1) { width: 10px; height: 10px; top: 10px; right: 15px; opacity: 0.9; animation-delay: 0s; }
.center-particle:nth-child(2) { width: 7px; height: 7px; top: 5px; right: 40px; opacity: 0.7; animation-delay: 0.5s; }
.center-particle:nth-child(3) { width: 8px; height: 8px; top: 30px; right: 0; opacity: 0.6; animation-delay: 1s; }
.center-particle:nth-child(4) { width: 5px; height: 5px; top: 0; right: 25px; opacity: 0.4; animation-delay: 1.5s; }
.center-particle:nth-child(5) { width: 6px; height: 6px; bottom: 20px; right: 5px; opacity: 0.5; animation-delay: 2s; }
.center-particle:nth-child(6) { width: 4px; height: 4px; top: 20px; right: -5px; opacity: 0.3; animation-delay: 2.5s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-8px) scale(1.1); opacity: 1; }
}

@keyframes centerPulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 25px 80px rgba(52, 152, 219, 0.6); }
}

/* ========== STATS BAR ========== */
.stats-bar {
    background: var(--azul-profundo);
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--celeste);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========== SERVICIOS PRINCIPALES ========== */
.services {
    padding: 8rem 5%;
    background: var(--gris-claro);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--azul-profundo);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gris-texto);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(13, 59, 102, 0.08);
    opacity: 0;
    transform: translateY(50px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--sombra-elevada);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--celeste) 0%, var(--azul-medio) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(26, 90, 150, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    transform: scale(1.1) rotate(-5deg);
}

.service-card:hover .service-icon svg {
    stroke: white;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--celeste);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--azul-profundo);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gris-texto);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: var(--gris-claro);
    color: var(--azul-medio);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== BOTÓN MÁS (en service cards) ========== */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--celeste);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-more:hover {
    color: var(--celeste-claro);
}

.btn-more .arrow {
    transition: transform 0.3s;
    font-size: 1.1rem;
    line-height: 1;
}

.btn-more:hover .arrow {
    transform: translateX(5px);
}

/* ========== SOLUCIONES INTEGRALES ========== */
.solutions {
    padding: 8rem 5%;
    background: white;
}

.solutions-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solutions-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--azul-profundo);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.solutions-content h2 span {
    color: var(--celeste);
}

.solutions-content > p {
    color: var(--gris-texto);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.solution-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.solution-item:hover {
    background: var(--gris-claro);
    transform: translateX(10px);
}

.solution-item-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(26, 90, 150, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.solution-item:hover .solution-item-icon {
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
}

.solution-item:hover .solution-item-icon svg {
    stroke: white;
}

.solution-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--celeste);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s;
}

.solution-item-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--azul-profundo);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.solution-item-content p {
    color: var(--gris-texto);
    font-size: 0.9rem;
}

.solutions-visual {
    position: relative;
    height: 500px;
}

.tech-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.tech-node {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: var(--sombra-suave);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--azul-profundo);
    animation: nodeFloat 4s ease-in-out infinite;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s;
}

.tech-node:hover {
    transform: scale(1.1);
    box-shadow: var(--sombra-elevada);
    border-color: var(--celeste);
}

.tech-node svg {
    width: 24px;
    height: 24px;
    stroke: var(--celeste);
    stroke-width: 2;
    fill: none;
}

.tech-node:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.tech-node:nth-child(2) { top: 15%; right: 5%; animation-delay: 0.5s; }
.tech-node:nth-child(3) { top: 40%; left: 0%; animation-delay: 1s; }
.tech-node:nth-child(4) { top: 50%; right: 10%; animation-delay: 1.5s; }
.tech-node:nth-child(5) { bottom: 20%; left: 15%; animation-delay: 2s; }
.tech-node:nth-child(6) { bottom: 10%; right: 15%; animation-delay: 2.5s; }

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

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.35);
    position: relative;
    overflow: visible;
}

.central-hub span {
    font-size: 2rem;
    font-weight: 800;
}

.central-hub small {
    font-size: 0.65rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.hub-particles {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hub-particle {
    position: absolute;
    background: var(--celeste-claro);
    border-radius: 50%;
    animation: hubFloat 5s ease-in-out infinite;
}

.hub-particle:nth-child(1) { width: 8px; height: 8px; top: 10px; right: 20px; opacity: 0.8; animation-delay: 0s; }
.hub-particle:nth-child(2) { width: 6px; height: 6px; top: 5px; right: 45px; opacity: 0.6; animation-delay: 0.7s; }
.hub-particle:nth-child(3) { width: 7px; height: 7px; top: 25px; right: 5px; opacity: 0.7; animation-delay: 1.4s; }
.hub-particle:nth-child(4) { width: 5px; height: 5px; top: 0; right: 30px; opacity: 0.5; animation-delay: 2.1s; }
.hub-particle:nth-child(5) { width: 5px; height: 5px; bottom: 15px; right: 15px; opacity: 0.6; animation-delay: 2.8s; }

@keyframes hubFloat {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-6px); opacity: 1; }
}

/* ========== PORTAFOLIO ========== */
.portfolio {
    padding: 8rem 5%;
    background: var(--azul-profundo);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(93, 173, 226, 0.08) 0%, transparent 40%);
}

.portfolio .section-header h2 {
    color: white;
}

.portfolio .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover {
    transform: translateY(-15px);
    border-color: var(--celeste);
    box-shadow: 0 30px 80px rgba(52, 152, 219, 0.3);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--azul-corporativo) 0%, var(--azul-medio) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(52, 152, 219, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-image::before {
    transform: scale(1.1);
}

.portfolio-placeholder {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.portfolio-card:hover .portfolio-placeholder {
    color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    color: var(--celeste);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== PROCESO ========== */
.process {
    padding: 8rem 5%;
    background: var(--gris-claro);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--celeste), var(--azul-medio));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(50px);
}

.process-step:nth-child(even).visible {
    transform: translateX(0);
}

.process-step:nth-child(even) .step-content {
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.step-content {
    width: 45%;
    padding-left: 3rem;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    z-index: 1;
    transition: all 0.3s;
}

.process-step:hover .step-number {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--azul-profundo);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gris-texto);
    font-size: 0.95rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--azul-corporativo) 0%, var(--azul-medio) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: bgMove 30s linear infinite;
}

@keyframes bgMove {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, 30px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--azul-corporativo);
}

.btn-white:hover {
    background: var(--gris-claro);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ========== FOOTER ========== */
footer {
    background: var(--azul-profundo);
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo-text .medios {
    color: var(--celeste-claro);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--celeste);
    transform: translateY(-5px) rotate(5deg);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-column a:hover {
    color: var(--celeste);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--celeste);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--celeste-claro);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* ========== RESPONSIVE GENERAL ========== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .solutions-container {
        grid-template-columns: 1fr;
    }

    .solutions-visual {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        left: 30px;
    }

    .step-number {
        left: 30px;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }

    .step-content,
    .process-step:nth-child(even) .step-content {
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lang-switcher {
        top: auto;
        bottom: 100px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--azul-profundo);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .solutions-visual {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .lang-switcher {
        right: 10px;
        bottom: 80px;
    }
}


/* =======================================================
   ESTILOS PÁGINA DE PLANES (planes.html)
   ======================================================= */

/* Hero compacto para páginas internas */
.page-hero {
    min-height: 50vh;
    background: var(--gradiente-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 5% 80px;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(52, 152, 219, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.page-hero h1 span {
    color: var(--celeste-claro);
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Navegación de servicios (tabs) */
.plans-nav {
    background: var(--azul-profundo);
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plans-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
}

.plan-nav-item {
    padding: 1.2rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.plan-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.plan-nav-item.active {
    color: var(--celeste-claro);
    border-bottom-color: var(--celeste);
}

/* Secciones de planes */
.plans-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, var(--azul-profundo) 0%, #0a0f18 100%);
    min-height: 100vh;
}

.plans-section:nth-child(odd) {
    background: linear-gradient(180deg, #0a0f18 0%, var(--azul-profundo) 100%);
}

.plans-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header de cada sección de servicio */
.service-plans-header {
    text-align: center;
    margin-bottom: 60px;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.3);
}

.service-icon-large svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: none;
}

.service-plans-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.service-plans-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de planes */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* Cards de planes */
.plan-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.plan-card.featured {
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-medio) 100%);
    border: none;
    transform: scale(1.05);
    z-index: 2;
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-card.featured .plan-name {
    color: white !important;
}

.plan-card.featured .plan-price {
    color: white !important;
}

.plan-card.featured .plan-price .currency {
    color: white !important;
}

.plan-card.featured .plan-period {
    color: rgba(255, 255, 255, 0.85) !important;
}

.plan-card.featured .plan-description {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-card.featured .feature-item {
    color: white !important;
}

.plan-card.featured .feature-item span {
    color: white !important;
}

.plan-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.plan-card.featured .features-list {
    color: white;
}

/* Tag popular */
.tag-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Contenido del plan */
.plan-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--azul-profundo);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.plan-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: top;
}

.plan-period {
    font-size: 0.9rem;
    color: var(--gris-texto);
    margin-bottom: 1rem;
}

.plan-description {
    font-size: 0.95rem;
    color: var(--gris-texto);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.plan-card.featured .plan-description {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Lista de características */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #4a5568;
}

.feature-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Botones de planes */
.btn-plan {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-plan-outline {
    background: transparent;
    border: 2px solid var(--celeste);
    color: var(--celeste);
}

.btn-plan-outline:hover {
    background: var(--celeste);
    color: white;
}

.btn-plan-solid {
    background: white;
    border: 2px solid white;
    color: var(--azul-profundo);
}

.btn-plan-solid:hover {
    background: transparent;
    color: white;
}

/* CTA Final en planes */
.plans-cta {
    background: var(--azul-profundo);
    padding: 80px 5%;
    text-align: center;
}

.plans-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.plans-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.plans-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.plans-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.plans-cta .btn-primary {
    background: var(--celeste);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.plans-cta .btn-primary:hover {
    background: var(--celeste-claro);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.plans-cta .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.plans-cta .btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Notas importantes */
.plans-notes {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--celeste);
}

.plans-notes p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.plans-notes strong {
    color: var(--celeste-claro);
}

/* Responsive para planes */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .plan-card.featured {
        transform: none;
        order: -1;
    }

    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .plans-nav-container {
        justify-content: flex-start;
        padding: 0 1rem;
    }

    .plan-nav-item {
        padding: 1rem 1.2rem;
        font-size: 0.85rem;
    }

    .service-plans-header h2 {
        font-size: 1.8rem;
    }

    .plan-price {
        font-size: 2.2rem;
    }

    .plans-cta h2 {
        font-size: 1.8rem;
    }
}
