/* ============================================
   CSS VARIABLES (ROOT) - OPTIMIZED
   ============================================ */
:root {
    --primary-blue: #0066FF;
    --light-blue: #00A3FF;
    --sky-blue: #5CC5FF;
    --accent-yellow: #FFD700;
    --dark-blue: #003380;
    --text-dark: #0A1628;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --dark-gray: #1a1a1a;
    
    /* Performance optimizations */
    --border-radius: 20px;
    --border-radius-small: 10px;
    --border-radius-full: 50px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    --shadow-light: 0 4px 20px rgba(0, 102, 255, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 102, 255, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 102, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    --gradient-bg: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}

/* ============================================
   RESET & BASE OPTIMIZED
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   OPTIMIZED LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-blue);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    will-change: transform;
}

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

/* ============================================
   NAVIGATION OPTIMIZED WITH MOBILE MENU
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    padding: 1rem 0;
    will-change: transform, box-shadow;
}

nav.scrolled {
    box-shadow: var(--shadow-light);
    transform: translateZ(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-blue);
    transition: transform var(--transition-normal);
    z-index: 1001;
}

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

.logo img {
    height: clamp(60px, 8vw, 80px);
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    transition: transform var(--transition-normal);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all var(--transition-normal);
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.cta-button {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    box-shadow: var(--shadow-light);
    will-change: transform;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-medium);
}

/* ============================================
   HERO SECTION OPTIMIZED FOR RESPONSIVE
   ============================================ */
.hero-servicios {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 0.85) 0%,
        rgba(0, 102, 255, 0.8) 50%,
        rgba(0, 163, 255, 0.75) 100%);
    color: var(--text-dark);
    overflow: hidden;
    padding: clamp(120px, 15vw, 150px) 0 clamp(2rem, 5vw, 4rem);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(255, 255, 255, 0.15);
    animation: floatUpDown 8s ease-in-out infinite;
    will-change: transform;
}

.floating-icon:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    font-size: clamp(2rem, 4vw, 3rem);
}

.floating-icon:nth-child(2) {
    top: 65%;
    right: 12%;
    animation-delay: 2s;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
}

.floating-icon:nth-child(4) {
    top: 25%;
    right: 25%;
    animation-delay: 1s;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.hero-content p {
    color: white;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
}

.hero-content h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    color: white;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 102, 255, 0.2);
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
    will-change: transform;
    flex: 1;
    min-width: clamp(140px, 25vw, 180px);
    max-width: 200px;
}

.stat-bubble:hover {
    transform: translateY(-5px) scale(1.05) translateZ(0);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    opacity: 0.9;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ============================================
   OPTIMIZED GLOBAL BUTTONS
   ============================================ */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
    will-change: transform;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: var(--shadow-medium);
    color: var(--white) !important;
}

.btn-secondary {
    color: var(--primary-blue);
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    will-change: transform;
    background: transparent;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px) translateZ(0);
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: clamp(1rem, 2vw, 1.2rem) clamp(2rem, 4vw, 2.5rem);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
    font-size: clamp(1rem, 2vw, 1.05rem);
    text-shadow: none;
    will-change: transform;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: var(--shadow-medium);
    color: var(--white) !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    padding: clamp(1rem, 2vw, 1.2rem) clamp(2rem, 4vw, 2.5rem);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(1rem, 2vw, 1.05rem);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    white-space: nowrap;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) translateZ(0);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white) !important;
}

/* ============================================
   SECTIONS GENERAL OPTIMIZED
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: clamp(0.5rem, 1vw, 0.6rem) clamp(1.2rem, 2.5vw, 1.8rem);
    border-radius: var(--border-radius-full);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

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

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================
   SERVICIOS PRINCIPALES OPTIMIZED FOR MOBILE
   ============================================ */
.main-services {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 2.5rem);
    margin-top: clamp(3rem, 6vw, 4rem);
}

.service-card {
    background: var(--white);
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all var(--transition-slow);
    text-align: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-blue);
}

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

.service-icon {
    width: clamp(70px, 10vw, 80px);
    height: clamp(70px, 10vw, 80px);
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1.5rem, 3vw, 2rem);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-light);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg) translateZ(0);
}

.service-icon i {
    font-size: clamp(2rem, 3vw, 2.2rem);
    color: var(--white);
}

.service-card h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dark);
    line-height: 1.3;
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.7;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.service-features {
    list-style: none;
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    text-align: left;
    display: grid;
    gap: clamp(0.6rem, 1.5vw, 0.8rem);
}

.service-features li {
    color: var(--text-dark);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    position: relative;
    padding-left: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-blue);
    font-weight: bold;
    width: 20px;
    height: 20px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.service-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: clamp(1rem, 2vw, 1.2rem) clamp(2rem, 4vw, 2.5rem);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-block;
    font-size: clamp(0.9rem, 2vw, 1rem);
    box-shadow: var(--shadow-light);
    will-change: transform;
    white-space: nowrap;
}

.service-btn:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

/* ============================================
   POR QUÉ ELEGIRNOS OPTIMIZED FOR MOBILE
   ============================================ */
.why-choose {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--light-gray);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 5vw, 4rem);
    align-items: center;
}

.why-choose-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.why-choose-text > p {
    color: var(--text-light);
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.7;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--white);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
    border-left: 4px solid transparent;
    will-change: transform;
}

.advantage-item:hover {
    transform: translateX(10px) translateZ(0);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--primary-blue);
}

.advantage-item i {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary-blue);
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: clamp(45px, 8vw, 50px);
    height: clamp(45px, 8vw, 50px);
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-item h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    margin: 0;
}

.why-choose-visual {
    display: flex;
    justify-content: center;
    order: -1;
}

.stats-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: clamp(2.5rem, 5vw, 3rem);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-heavy);
    max-width: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

.stats-card h3 {
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
}

.stats-card .stat-item {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(0.8rem, 2vw, 1rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-card .stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stats-card .stat-number {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.stats-card .stat-label {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.9;
    font-weight: 500;
}

/* ============================================
   CTA SECTION OPTIMIZED FOR MOBILE
   ============================================ */
.cta-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 102, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 163, 255, 0.1) 2px, transparent 2px);
    background-size: 80px 80px, 120px 120px;
    animation: float 20s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--white);
}

.cta-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: clamp(2.5rem, 5vw, 3rem);
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--white);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(2.5rem, 5vw, 3rem);
    flex-wrap: wrap;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.cta-features i {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    color: var(--primary-blue);
    flex-shrink: 0;
}

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

/* Ajustes para CTA section */
.cta-section .btn-primary {
    padding: clamp(1.1rem, 2.5vw, 1.3rem) clamp(2.2rem, 4vw, 2.8rem);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    padding: clamp(1.1rem, 2.5vw, 1.3rem) clamp(2.2rem, 4vw, 2.8rem);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(1rem, 2vw, 1.1rem);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white) !important;
}

/* ============================================
   FOOTER OPTIMIZED FOR MOBILE
   ============================================ */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: clamp(3rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-brand h3 {
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px) translateZ(0);
    box-shadow: var(--shadow-medium);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.footer-links a:hover {
    color: var(--sky-blue);
}

.footer-links li i {
    margin-right: 0.5rem;
    width: 16px;
}

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

/* ============================================
   ANIMATIONS OPTIMIZED
   ============================================ */
@keyframes floatUpDown {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-25px) rotate(15deg);
        opacity: 0.2;
    }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    33% { 
        transform: translateY(-10px) translateX(5px); 
    }
    66% { 
        transform: translateY(5px) translateX(-5px); 
    }
}

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

/* ============================================
   SCROLL REVEAL OPTIMIZED
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Hardware acceleration for animated elements */
.service-card,
.advantage-item,
.stat-bubble,
.social-link,
.btn-primary,
.btn-secondary,
.btn-hero-primary,
.btn-hero-secondary,
.cta-button,
.service-icon,
.floating-icon,
.nav-toggle {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize font rendering */
body,
.section-title,
.hero-content h1 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduce repaints on scroll */
nav {
    transform: translateZ(0);
}

/* ============================================
   RESPONSIVE DESIGN OPTIMIZADO - MOBILE FIRST
   ============================================ */

/* TABLET GRANDE (1200px+) */
@media (min-width: 1200px) {
    .nav-container,
    .section-container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1100px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-choose-content {
        grid-template-columns: 1fr 400px;
    }
    
    .why-choose-visual {
        order: 0;
    }
}

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-background {
        background-attachment: scroll; /* Mejor rendimiento en tablets */
    }
    
    .floating-elements {
        display: none; /* Reduce complejidad en tablets */
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    
    .why-choose-visual {
        order: -1;
    }
}

/* MÓVIL GRANDE (481px - 768px) */
@media (max-width: 768px) {
    /* NAVEGACIÓN MÓVIL */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-light);
        padding: 2rem 0;
        z-index: 999;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
    }
    
    .cta-button {
        margin-top: 1rem;
    }
    
    /* HERO MÓVIL */
    .hero-servicios {
        min-height: 90vh;
        padding: 120px 1rem 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stat-bubble {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    /* SERVICIOS MÓVIL */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        margin: 0;
    }
    
    /* VENTAJAS MÓVIL */
    .advantages-list {
        gap: 1rem;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .advantage-item i {
        margin-top: 0;
    }
    
    /* CTA MÓVIL */
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-section .btn-primary,
    .cta-section .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    /* FOOTER MÓVIL */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* MÓVIL PEQUEÑO (320px - 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-servicios {
        min-height: 80vh;
        padding: 100px 0.5rem 2rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-bubble {
        padding: 1.2rem 1.8rem;
        max-width: 250px;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-features {
        margin-bottom: 2rem;
    }
    
    .advantage-item {
        padding: 1.5rem 1rem;
    }
    
    .advantage-item i {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .stats-card {
        padding: 2.5rem 2rem;
    }
    
    .cta-features span {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* MÓVIL MUY PEQUEÑO (hasta 360px) */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .hero-content {
        padding: 0 0.8rem;
    }
    
    .hero-servicios {
        padding: 90px 0.5rem 1.5rem;
    }
    
    .section-container {
        padding: 0 0.8rem;
    }
    
    .stat-bubble {
        padding: 1rem 1.5rem;
        max-width: 200px;
    }
    
    .service-card {
        padding: 1.5rem 1.2rem;
    }
    
    .advantage-item {
        padding: 1.25rem;
    }
    
    .stats-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-features {
        gap: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        max-width: 250px;
        padding: 0.9rem 1.8rem;
    }
    
    .footer-brand h3 {
        font-size: 1.4rem;
    }
    
    .footer-brand p {
        font-size: 0.95rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* LANDSCAPE MÓVIL */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-servicios {
        min-height: auto;
        padding: 120px 1rem 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .stat-bubble {
        max-width: 180px;
    }
    
    .floating-elements {
        display: none;
    }
}

/* ============================================
   OPTIMIZACIONES ESPECÍFICAS PARA TOUCH
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Mejor experiencia táctil */
    .btn-primary,
    .btn-secondary,
    .btn-hero-primary,
    .btn-hero-secondary,
    .cta-button,
    .service-btn,
    .nav-link,
    .social-link {
        min-height: 44px; /* Tamaño mínimo para touch */
    }
    
    /* Ajustar efectos hover en dispositivos táctiles */
    .service-card:hover {
        transform: translateY(-5px) translateZ(0);
    }
    
    .advantage-item:hover {
        transform: translateX(5px) translateZ(0);
    }
    
    .stat-bubble:hover {
        transform: translateY(-2px) scale(1.02) translateZ(0);
    }
}

/* ============================================
   UTILITIES RESPONSIVAS
   ============================================ */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-no-gap {
        gap: 0 !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .hero-background,
    .floating-elements,
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-primary,
    .btn-secondary,
    .cta-section::before,
    .stats-card::before,
    .nav-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .advantage-item {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-icon,
    .floating-elements {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000FF;
        --text-dark: #000000;
        --text-light: #333333;
    }
    
    .btn-primary,
    .cta-button,
    .service-btn,
    .btn-hero-primary {
        border: 2px solid var(--white) !important;
    }
    
    .service-card,
    .advantage-item {
        border: 2px solid var(--text-dark) !important;
    }
}

/* Focus states for better accessibility */
.btn-hero-primary:focus,
.btn-hero-secondary:focus,
.btn-primary:focus,
.btn-secondary:focus,
.service-btn:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

.nav-link:focus,
.cta-button:focus,
.social-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

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

/* ============================================
   OPTIMIZACIONES ADICIONALES PARA MÓVILES
   ============================================ */

/* Prevenir zoom en inputs en iOS */
@media (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Mejoras para scroll suave en móviles */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
    
    .main-services,
    .why-choose,
    .cta-section {
        scroll-margin-top: 100px;
    }
}

/* Optimización para pantallas con notch */
@supports (padding: max(0px)) {
    .nav-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .section-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Mejoras para dispositivos con densidad de píxeles alta */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&auto=format&fit=crop&w=4140&q=80');
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Optimización para conexiones lentas */
@media (prefers-reduced-data: reduce) {
    .hero-background {
        background-image: none !important;
        background-color: var(--dark-blue);
    }
    
    .floating-elements {
        display: none !important;
    }
    
    .stats-card::before,
    .cta-section::before {
        animation: none !important;
        background: none !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (OPCIONAL)
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F1F5F9;
        --text-light: #94A3B8;
        --white: #0F172A;
        --light-gray: #1E293B;
        --dark-gray: #F8FAFC;
    }
    
    .service-card,
    .advantage-item {
        background: #1E293B;
        border-color: rgba(148, 163, 184, 0.1);
    }
    
    .stat-bubble {
        background: rgba(30, 41, 59, 0.9);
        border-color: rgba(148, 163, 184, 0.2);
    }
}

/* ============================================
   LOADING STATES OPTIMIZED
   ============================================ */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Skeleton loading para service cards */
.service-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.service-card.loading > * {
    background: #e0e0e0;
    border-radius: 4px;
    color: transparent;
}

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

/* ============================================
   MEJORAS DE INTERACCIÓN MÓVIL
   ============================================ */

/* Feedback táctil mejorado */
@media (hover: none) {
    .service-btn:active,
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Mejora de la experiencia de scroll en móviles */
@supports (scroll-behavior: smooth) {
    .hero-servicios {
        scroll-margin-top: 0;
    }
}