/* ============================================
   CONECTA MULTISERVICIOS - CSS MODERNO
   Diseño: Mobile-First, Responsive, Animado
   ============================================ */

/* ============================================
   VARIABLES CSS & RESET
   ============================================ */
:root {
    /* Colores Corporativos */
    --primary: #9c1e13;
    --primary-dark: #7a1710;
    --primary-light: #c52419;
    --secondary: #000000;
    --accent: #f39c12;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #9c1e13 0%, #c52419 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(156,30,19,0.8) 100%);
    
    /* Colores de Sistema */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 20px;
    
    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.logo i {
    font-size: 32px;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-link {
    position: relative;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-base);
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Link especial para promoción */
.nav-link-promo {
    position: relative;
    color: #c41e3a !important;
    font-weight: 700;
    animation: glow 2s ease-in-out infinite;
}

.nav-link-promo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.15;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(196, 30, 58, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(196, 30, 58, 0.6);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(156, 30, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 30, 19, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse 80% 50% at 50% -20%,
        rgba(156, 30, 19, 0.15),
        transparent
    );
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

/* Fondo base dividido - Blanco y Negro Puro */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        #ffffff 0%,
        #f5f5f5 25%,
        #e0e0e0 40%,
        #bdbdbd 48%,
        #1a1a1a 52%,
        #0d0d0d 60%,
        #000000 100%
    );
    z-index: 1;
}

/* Ondas como marea animadas - Solo Blanco y Negro */
.hero-background::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    right: -50%;
    height: 300%;
    transform: translateY(-50%);
    background: 
        radial-gradient(ellipse 80% 50px at 50% 48%, transparent 40%, rgba(0, 0, 0, 0.2) 100%),
        radial-gradient(ellipse 80% 60px at 50% 50%, transparent 40%, rgba(255, 255, 255, 0.15) 100%),
        radial-gradient(ellipse 70% 80px at 50% 52%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 2;
    animation: waveMovement 20s ease-in-out infinite;
}

/* Sistema de ondas en capas múltiples - Solo Blanco y Negro */
.animated-shapes::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -25%;
    right: -25%;
    height: 200%;
    transform: translateY(-50%) rotate(-5deg);
    background: 
        repeating-linear-gradient(
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.04) 50px,
            rgba(255, 255, 255, 0.04) 51px
        );
    z-index: 3;
    animation: waveFlowReverse 15s linear infinite;
    opacity: 0.6;
}

.animated-shapes::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -30%;
    right: -30%;
    height: 250%;
    transform: translateY(-50%) rotate(3deg);
    background: 
        repeating-radial-gradient(
            circle at 50% 50%,
            transparent 0,
            transparent 40px,
            rgba(0, 0, 0, 0.06) 40px,
            rgba(0, 0, 0, 0.06) 42px
        );
    z-index: 4;
    animation: waveFlow 25s linear infinite;
    opacity: 0.4;
}

@keyframes waveMovement {
    0%, 100% {
        transform: translateY(-50%) translateX(0) scaleY(1);
    }
    25% {
        transform: translateY(-48%) translateX(-5%) scaleY(1.1);
    }
    50% {
        transform: translateY(-52%) translateX(0) scaleY(0.95);
    }
    75% {
        transform: translateY(-49%) translateX(5%) scaleY(1.05);
    }
}

@keyframes waveFlow {
    0% {
        transform: translateY(-50%) rotate(3deg) translateX(0);
    }
    100% {
        transform: translateY(-50%) rotate(3deg) translateX(50px);
    }
}

@keyframes waveFlowReverse {
    0% {
        transform: translateY(-50%) rotate(-5deg) translateX(0);
    }
    100% {
        transform: translateY(-50%) rotate(-5deg) translateX(-30px);
    }
}

/* Efecto de brillo premium sobre las ondas - Solo Blanco y Negro */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 30% 35%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 70% 55%, rgba(0, 0, 0, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, 
            transparent 0%,
            rgba(0, 0, 0, 0.1) 45%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.1) 55%,
            transparent 100%
        );
    z-index: 5;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: floatPremium 25s infinite ease-in-out;
    mix-blend-mode: soft-light;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation-delay: 8s;
}

.shape-3 {
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(128, 128, 128, 0.3) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 15s;
}

@keyframes floatPremium {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(40px, -40px) scale(1.15) rotate(5deg);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9) rotate(-3deg);
    }
    75% {
        transform: translate(20px, -20px) scale(1.05) rotate(2deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.hero-logo {
    margin-bottom: 32px;
    animation: fadeIn 1s ease;
}

.hero-logo img {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: 
        drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 30px rgba(156, 30, 19, 0.3));
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 6s ease-in-out infinite;
}

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

.hero-logo img:hover {
    transform: scale(1.08) translateY(-8px);
    filter: 
        drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 60px rgba(156, 30, 19, 0.5))
        drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: badgeShine 3s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 2px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(156, 30, 19, 0.3),
            0 4px 12px rgba(212, 175, 55, 0.2),
            inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -3.5px;
    color: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
}

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

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: -0.2px;
    max-width: 680px;
    margin: 0 auto 64px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    min-width: 180px;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(156, 30, 19, 0.2) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(156, 30, 19, 0.15);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(156, 30, 19, 0.6) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: all 0.5s ease;
}

.stat-item:hover .stat-number::after {
    opacity: 1;
    width: 60px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-cta .btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scroll 2s infinite;
}

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

/* ============================================
   SECCIONES
   ============================================ */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(156,30,19,0.1) 0%, rgba(197,36,25,0.1) 100%);
    border: 1px solid rgba(156,30,19,0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--gray-50);
}

.about-content {
    display: flex;
    justify-content: center;
    margin-bottom: 64px;
}

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 28px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.about-visual {
    width: 100%;
    max-width: 800px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% + 32px);
    background: var(--gray-200);
}

.timeline-dot {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(156,30,19,0.1);
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-year {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(156,30,19,0.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 15px;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.mv-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--white);
    font-size: 36px;
    margin: 0 auto 24px;
}

.mv-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.mv-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Values Section */
.values-section {
    margin-top: 64px;
    padding: 48px 0;
}

.section-header-small {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-small {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 12px;
}

.section-description-small {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.value-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(156,30,19,0.1) 0%, rgba(197,36,25,0.15) 100%);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.value-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.value-card > p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.value-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(156,30,19,0.05) 0%, rgba(197,36,25,0.05) 100%);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}

.value-highlight i {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
}

.value-highlight span {
    font-size: 13px;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.5;
}

/* Values Section */
.values-section {
    margin-top: 64px;
    padding: 48px 0;
}

.section-header-small {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-small {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 12px;
}

.section-description-small {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.value-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(156,30,19,0.1) 0%, rgba(197,36,25,0.15) 100%);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.value-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.value-card > p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.value-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(156,30,19,0.05) 0%, rgba(197,36,25,0.05) 100%);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}

.value-highlight i {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
}

.value-highlight span {
    font-size: 13px;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.5;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    position: relative;
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.service-card.featured {
    background: var(--gradient-dark);
    color: var(--white);
    border: 2px solid var(--primary);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 32px;
    margin-bottom: 24px;
}

.service-card.featured .service-icon {
    background: var(--white);
    color: var(--primary);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-700);
    font-size: 15px;
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-features li i {
    color: var(--primary);
    font-size: 18px;
}

.service-card.featured .service-features li i {
    color: var(--accent);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients {
    background: var(--gray-50);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.client-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.client-logo i {
    font-size: 48px;
    color: var(--primary);
}

.client-logo span {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
}

.client-card p {
    color: var(--gray-600);
    font-size: 15px;
}

.trust-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.trust-card {
    background: var(--gradient-dark);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.trust-card i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.trust-card h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.trust-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

/* ============================================
   JOBS SECTION
   ============================================ */
.jobs-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
}

.jobs-benefits h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(156,30,19,0.1) 0%, rgba(197,36,25,0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 24px;
}

.benefit-text h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.benefit-text p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.5;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.stat-mini-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-mini-item i {
    font-size: 28px;
    color: var(--primary);
}

.stat-mini-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--gray-600);
    font-size: 15px;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.application-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
}

.form-group label i {
    color: var(--primary);
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(156,30,19,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition-base);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(156,30,19,0.05);
}

.file-upload-label i {
    font-size: 36px;
    color: var(--primary);
}

.file-name {
    font-weight: 600;
    color: var(--gray-800);
}

.file-info {
    font-size: 13px;
    color: var(--gray-500);
}

.form-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
}

.form-disclaimer i {
    color: var(--primary);
}

.form-success {
    text-align: center;
    padding: 48px 32px;
}

.form-success i {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 24px;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-600);
    font-size: 16px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 24px;
}

.contact-text h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.contact-text p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 20px;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-4px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: var(--transition-base);
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
    transform: scale(1.05);
}

.footer-logo i {
    font-size: 32px;
    color: var(--primary-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 32px 20px;
        box-shadow: var(--shadow-xl);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
        text-align: center;
        background: var(--gray-50);
        border-radius: var(--radius-md);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    :root {
        --section-padding: 60px 0;
    }
}

@media (max-width: 640px) {
    :root {
        --container-padding: 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .services-grid,
    .clients-grid,
    .trust-section,
    .mission-vision,
    .jobs-content,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   ANIMACIONES CUSTOM
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   UTILIDADES DE ACCESIBILIDAD
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mejora de contraste para texto sobre fondos oscuros */
.hero-content,
.footer {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



