/* ==========================================
   DISEÑO COMPLETO MEJORADO - CDGSystem
   ========================================== */

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

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #0891b2;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-main: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #0891b2, #06b6d4);

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================
   TOP BAR - MEJORADO
   ========================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 95, 0.98));
    backdrop-filter: blur(12px);
    padding: 8px 0;
    border-bottom: 1px solid rgba(8, 145, 178, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-300);
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.top-bar-contact a:hover {
    color: var(--white);
    background: rgba(8, 145, 178, 0.15);
    transform: translateY(-1px);
}

.top-bar-contact svg {
    color: var(--accent);
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.4));
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector - Mejorado */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--gray-200);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all var(--transition-base);
    z-index: 1001;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-form {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

button.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

button.lang-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

button.lang-option:hover {
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.08), transparent);
    color: var(--gray-900);
    padding-left: 22px;
}

button.lang-option:hover::before {
    transform: scaleY(1);
}

button.lang-option.active {
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.12), transparent);
    color: var(--secondary);
    font-weight: 600;
}

button.lang-option.active::before {
    transform: scaleY(1);
}

/* Flags */
.flag {
    width: 18px;
    height: 13px;
    border-radius: 3px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    vertical-align: middle;
}

/* ==========================================
   HEADER - MEJORADO
   ========================================== */
.header {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.4);
    position: relative;
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6);
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
    filter: blur(8px);
}

.logo:hover .logo-icon::after {
    opacity: 0.6;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.02em;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav a:hover {
    color: var(--white);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Language Selector */
.mobile-lang-selector {
    display: none;
    position: relative;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.mobile-lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1001;
    overflow: hidden;
}

.mobile-lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-lang-dropdown .lang-option {
    padding: 10px 14px;
    font-size: 13px;
}

.mobile-lang-dropdown .lang-form {
    margin: 0;
    padding: 0;
    display: block;
}

.mobile-lang-dropdown button.lang-option {
    padding: 10px 14px;
    font-size: 13px;
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 6px;
    transition: all var(--transition-base);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 95, 0.98));
    backdrop-filter: blur(16px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.mobile-nav.active {
    max-height: 400px;
    padding: 20px 24px 28px;
}

.mobile-nav a {
    color: var(--gray-200);
    text-decoration: none;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 0;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-base);
}

.mobile-nav a:hover {
    color: var(--white);
    padding-left: 16px;
}

.mobile-nav a:hover::before {
    width: 12px;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ==========================================
   BUTTONS - MEJORADOS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a7c9e 100%);
    color: var(--white);
    box-shadow:
        0 2px 4px rgba(8, 145, 178, 0.2),
        0 6px 20px rgba(8, 145, 178, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(8, 145, 178, 0.3),
        0 12px 32px rgba(8, 145, 178, 0.4);
}

/* White Button */
.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.btn-white:hover {
    transform: translateY(-3px);
    color: var(--secondary);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 12px 32px rgba(8, 145, 178, 0.15);
    border-color: rgba(8, 145, 178, 0.2);
}

/* Outline Buttons */
.btn-outline-white {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   HERO - Immersive Experience
   ========================================== */
.hero {
    background: var(--gradient-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Advanced Background Effects */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%230891b2' stroke-width='0.3' opacity='0.07'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 60px 60px;
    animation: subtle-shift 20s ease-in-out infinite;
}

@keyframes subtle-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Animated Grid Lines */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Glowing Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orb-float 12s ease-in-out infinite;
    opacity: 0.8;
}

.hero-orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(8, 145, 178, 0.12);
    top: -10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(6, 182, 212, 0.08);
    bottom: 10%;
    left: -5%;
    animation-delay: -6s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(20px, -20px) scale(1.05); opacity: 0.6; }
}

/* Data Stream Lines */
.hero-streams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-streams::before,
.hero-streams::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
    animation: stream-flow 5s linear infinite;
}

.hero-streams::before {
    top: 25%;
    animation-delay: 0s;
}

.hero-streams::after {
    top: 75%;
    animation-delay: 2.5s;
}

@keyframes stream-flow {
    0% { transform: translateX(-100%); opacity: 0; }
    15% { opacity: 0.4; }
    85% { opacity: 0.4; }
    100% { transform: translateX(100vw); opacity: 0; }
}

/* Wave Bottom */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

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

.hero-content {
    color: var(--white);
}

/* Badge Refined */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    color: var(--accent-light);
    animation: badge-glow 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.hero-badge:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15);
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.08); }
    50% { box-shadow: 0 0 30px rgba(6, 182, 212, 0.15); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Title */
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 5.5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: title-reveal 0.8s ease forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title-line:nth-child(2) { animation-delay: 0.4s; }
.hero-title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes title-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, #67e8f9 25%, var(--accent) 50%, #67e8f9 75%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradient-flow 8s ease infinite;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(6, 182, 212, 0.2));
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 17px;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.85;
    max-width: 500px;
    font-weight: 400;
    opacity: 0;
    animation: fade-up 0.8s ease 0.8s forwards;
}

@keyframes fade-up {
    to { opacity: 1; }
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up 0.8s ease 1s forwards;
}

.hero-stats {
    margin-top: 48px;
}

.hero-stat-line {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* Hero Visual - Enhanced Metrics Card */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Hero Card Mejorado */
.hero-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: card-float 6s ease-in-out infinite;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.1),
        0 0 40px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes card-float {
    0%, 100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-5deg) rotateX(5deg) translateY(-10px); }
}

.card-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-dots {
    display: flex;
    gap: 8px;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-dots span:hover {
    transform: scale(1.25);
    filter: brightness(1.2);
}

.card-dots span:first-child {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.card-dots span:nth-child(2) {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}
.card-dots span:last-child {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.card-title {
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-content {
    padding: 28px;
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.metric {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.metric:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.metric:hover .metric-value {
    color: var(--accent-light);
}

.metric-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.metric-label {
    font-size: 12px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-container {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 12px;
    color: var(--gray-400);
}

.chart-badge {
    font-size: 11px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
}

.hero-card:hover .chart-badge {
    background: rgba(34, 197, 94, 0.18);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
}

.chart-bars .bar {
    flex: 1;
    background: linear-gradient(180deg, var(--accent) 0%, var(--secondary) 100%);
    border-radius: 3px 3px 0 0;
    position: relative;
    transform-origin: bottom;
    animation: bar-grow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: scaleY(0);
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.chart-bars .bar:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.bar-1 { height: 45%; animation-delay: 0.1s; }
.bar-2 { height: 65%; animation-delay: 0.2s; }
.bar-3 { height: 50%; animation-delay: 0.3s; }
.bar-4 { height: 85%; animation-delay: 0.4s; }
.bar-5 { height: 70%; animation-delay: 0.5s; }
.bar-6 { height: 95%; animation-delay: 0.6s; }

@keyframes bar-grow {
    to { transform: scaleY(1); }
}

/* ==========================================
   SECTION TAG - MEJORADO
   ========================================== */
.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
    position: relative;
    padding-left: 24px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(8, 145, 178, 0.4);
}

.section-tag.light {
    color: var(--accent-light);
}

.section-tag.light::before {
    background: linear-gradient(90deg, var(--accent-light), #67e8f9);
}

/* ==========================================
   SECTION HEADER - MEJORADO
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 48px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.9));
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    position: relative;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.section-header .section-tag {
    padding-left: 0;
}

.section-header .section-tag::before {
    display: none;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-style: italic;
    font-weight: 400;
}

/* ==========================================
   STATS SECTION - MEJORADO
   ========================================== */
.stats-section {
    padding: 60px 0;
    background: var(--gray-50);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.stat-card-mini {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-accent);
    transition: height var(--transition-base);
}

.stat-card-mini:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.stat-card-mini:hover::before {
    height: 100%;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.25);
    transition: all var(--transition-base);
}

.stat-card-mini:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4);
}

.stat-card-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
}

/* ==========================================
   PARTNERS SECTION - MEJORADO
   ========================================== */
.partners-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.partners-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.partners-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.partners-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.partners-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 0 0 2px 2px;
}

.partners-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.partners-lead {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 28px;
    font-style: italic;
}

.partners-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.partners-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.partners-features li:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.08);
    transform: translateX(4px);
}

.partners-features li svg {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.partners-features li span {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

.partners-features li strong {
    color: var(--gray-800);
    font-weight: 600;
}

.partners-features li span em {
    font-style: italic;
    color: var(--gray-500);
}

.partners-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    display: block;
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 14px;
    color: var(--gray-600);
}

/* ==========================================
   SERVICES - MEJORADO
   ========================================== */
.services-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(8, 145, 178, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

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

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

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-lg);
    background: inherit;
    filter: blur(12px);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

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

.service-card:hover .service-icon::after {
    opacity: 0.6;
}

.service-icon.blue {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

.service-icon.teal {
    background: linear-gradient(135deg, #0891b2, #0d9488);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.3);
}

.service-icon.cyan {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    transition: color var(--transition-base);
}

.service-card:hover .service-content h3 {
    color: var(--secondary);
}

.service-content p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    font-style: italic;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    margin-top: auto;
    transition: all var(--transition-base);
    position: relative;
    padding-bottom: 2px;
}

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

.service-link:hover {
    gap: 14px;
}

.service-link:hover::after {
    width: calc(100% - 22px);
}

/* ==========================================
   PROCESS SECTION - MEJORADO
   ========================================== */
.process-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), var(--gray-300), transparent);
    z-index: 0;
}

.process-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.process-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

.process-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.process-card:hover .process-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.4);
}

.process-number {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    transition: transform var(--transition-base);
}

.process-card:hover .process-number {
    transform: scale(1.1);
}

.process-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.process-card p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.7;
    font-style: italic;
}

/* ==========================================
   ABOUT SECTION - MEJORADO
   ========================================== */
.about-section {
    padding: 100px 0;
    background: var(--gradient-main);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}



.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    color: var(--white);
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.about-lead {
    font-size: 15px;
    color: var(--gray-300);
    line-height: 1.85;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 28px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateX(4px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.feature-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--white);
}

.feature-item span {
    font-size: 14px;
    color: var(--gray-200);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-stats .stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-stats .stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.about-stats .stat-value {
    color: var(--white);
}

.about-stats .stat-text {
    color: var(--gray-300);
}

/* ==========================================
   CTA SECTION - MEJORADO
   ========================================== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-main);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 2;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 300px at 30% 50%, rgba(6, 182, 212, 0.15), transparent),
        radial-gradient(ellipse 400px 400px at 70% 50%, rgba(8, 145, 178, 0.1), transparent);
    animation: heroGlow 10s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}



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

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 16px;
    color: var(--gray-300);
    margin-bottom: 28px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================
   CONTACT SECTION - MEJORADO
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-base);
}

.contact-info:hover {
    box-shadow: var(--shadow-lg);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 0 0 2px 2px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-lead {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 32px;
    font-style: italic;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.contact-item:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.contact-item:hover .contact-icon {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.35);
}

.contact-icon svg {
    color: var(--white);
    width: 20px;
    height: 20px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-text a,
.contact-text span:not(.contact-label) {
    font-size: 14px;
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-text a:hover {
    color: var(--secondary);
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    position: relative;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 0 0 2px 2px;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 28px;
    font-style: italic;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label .optional {
    font-weight: 400;
    text-transform: none;
    font-style: italic;
    color: var(--gray-400);
    font-size: 11px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
    font-style: italic;
    font-size: 13px;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* ==========================================
   FOOTER - MEJORADO
   ========================================== */
.footer {
    padding: 50px 0 20px;
    background: var(--gray-900);
    color: var(--white);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 14px;
}

.footer-description {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.75;
    margin-bottom: 16px;
    font-style: italic;
    font-weight: 300;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-email svg {
    color: var(--secondary);
}

.footer-email:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

.footer-links ul a {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links ul a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.footer-links ul a:hover {
    color: var(--white);
    padding-left: 12px;
}

.footer-links ul a:hover::before {
    width: 8px;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

.footer-legal {
    margin-top: 12px;
    opacity: 0.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .partners-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-subtitle,
    .about-lead {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card,
    .about-features,
    .partners-stats {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

    .process-grid::before {
        display: none;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-email {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header {
        top: 0;
        padding: 12px 0;
    }

    .nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-lang-selector {
        display: block;
    }

    .header-actions .btn:not(.mobile-lang-btn):not(.mobile-menu-btn) {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-title-line {
        display: inline;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

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

    .section-header,
    .partners-content,
    .contact-info,
    .contact-form-card {
        padding: 32px 28px;
    }

    .section-header h2,
    .partners-content h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 30px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 8px 16px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 12px;
    }

    .btn-lg {
        padding: 14px 30px;
        font-size: 13px;
    }

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

    .process-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process-card {
        padding: 20px 16px;
    }

    .section-header,
    .partners-content,
    .contact-info,
    .contact-form-card {
        padding: 24px 20px;
    }

    .section-header h2,
    .partners-content h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .stats-grid, .process-grid {
        gap: 16px;
    }

    .service-card, .process-card {
        padding: 24px 20px;
    }
}

/* ==========================================
   BREAKPOINT 640px - DISPOSITIVOS MEDIANOS
   ========================================== */
@media (max-width: 640px) {
    .hero-grid, .about-grid, .partners-section .container {
        gap: 30px;
    }

    .section-header, .partners-content, .contact-info, .contact-form-card {
        padding: 28px 24px;
    }
}

/* ==========================================
   FORMULARIO - ERRORES Y MENSAJES
   ========================================== */

/* Errores de validación */
.form-group .error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Mensajes de éxito/error */
.messages-container {
    margin-bottom: 20px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* Captcha */
.captcha-group {
    margin-bottom: 20px;
}

.captcha-group > div {
    display: flex;
    justify-content: flex-start;
}

/* Responsive para captcha */
@media (max-width: 480px) {
    .captcha-group > div {
        transform: scale(0.9);
        transform-origin: left;
    }
}

/* ==========================================
   MEJORAS RESPONSIVE ADICIONALES
   ========================================== */

/* Ampliar dropdown idiomas en mobile */
.mobile-lang-dropdown {
    min-width: 120px;
}

/* Formulario 1 columna desde 768px */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
