/* ============================================
   SISTEMA DE DISEÑO PREMIUM - CONTABILIDAD
   Paleta profesional y confiable para servicios financieros
   ============================================ */

:root {
    /* === PALETA DE COLORES PROFESIONAL === */
    --primary-color: #0F172A;        /* Azul navy oscuro profesional */
    --primary-light: #1E293B;        /* Navy medio */
    --primary-dark: #020617;         /* Navy ultra oscuro */
    
    --secondary-color: #0EA5E9;      /* Azul cielo confiable */
    --secondary-light: #38BDF8;      /* Azul cielo claro */
    --secondary-dark: #0284C7;       /* Azul cielo oscuro */
    
    --accent-color: #F59E0B;         /* Ámbar dorado */
    --accent-light: #FCD34D;         /* Ámbar claro */
    --accent-dark: #D97706;          /* Ámbar oscuro */
    
    --success-color: #10B981;        /* Verde éxito */
    --warning-color: #F59E0B;        /* Ámbar advertencia */
    --error-color: #EF4444;          /* Rojo error */
    --info-color: #3B82F6;           /* Azul información */
    
    /* === ESCALA DE GRISES === */
    --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;
    
    /* === COLORES SEMÁNTICOS === */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --text-inverse: #FFFFFF;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-dark: #0F172A;
    
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-dark: #94A3B8;
    
    /* === TIPOGRAFÍA === */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    
    /* === ESPACIADO === */
    --space-xs: 0.25rem;     /* 4px */
    --space-sm: 0.5rem;      /* 8px */
    --space-md: 0.75rem;     /* 12px */
    --space-lg: 1rem;        /* 16px */
    --space-xl: 1.5rem;      /* 24px */
    --space-2xl: 2rem;       /* 32px */
    --space-3xl: 3rem;       /* 48px */
    --space-4xl: 4rem;       /* 64px */
    --space-5xl: 6rem;       /* 96px */
    
    /* === SOMBRAS === */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 10px 30px rgba(14, 165, 233, 0.2);
    
    /* === RADIOS === */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* === TRANSICIONES === */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;
    
    /* === GRADIENTES === */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-secondary: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
}

/* ============================================
   RESET Y BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-normal) var(--ease-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background-color: var(--accent-color);
    color: white;
}

/* ============================================
   CONTENEDOR
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   BOTONES PREMIUM
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

/* ============================================
   NAVBAR PREMIUM
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 85px;
    display: flex;
    align-items: center;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
    height: 75px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: var(--weight-extrabold);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

.logo i {
    font-size: var(--text-3xl);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
}

.nav-menu a {
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    font-size: var(--text-base);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width var(--duration-normal) var(--ease-smooth);
    border-radius: var(--radius-full);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: var(--weight-semibold);
    box-shadow: var(--shadow-md);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-toggle {
    display: none;
    font-size: var(--text-2xl);
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: var(--space-sm);
}

/* ============================================
   HERO SECTION PREMIUM
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 90%),
                url('../public/img/1.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 85px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    bottom: -150px;
    left: -150px;
    animation: float 25s infinite ease-in-out;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient-accent);
    top: 40%;
    left: 10%;
    animation: float 30s infinite ease-in-out;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
    66% {
        transform: translateY(20px) rotate(-5deg) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 850px;
    animation: fadeInUp 1s var(--ease-out);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-extrabold);
    line-height: 1.2;
    margin-bottom: var(--space-xl);
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gradient-accent);
    opacity: 0.2;
    border-radius: var(--radius-full);
}

.hero p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3xl);
    opacity: 0.9;
    line-height: 1.8;
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    min-height: 55vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%),
                url('images/page-header.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 85px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    color: white;
    animation: fadeInUp 0.8s var(--ease-out);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--space-lg);
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.page-header p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 650px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: var(--space-5xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-5xl);
    animation: fadeInUp 0.8s var(--ease-out);
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-full);
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

.light-text h2 {
    color: white;
}

.light-text p {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-preview {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, white 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-3xl);
}

.service-card {
    background: white;
    padding: var(--space-3xl) var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.icon-box {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin: 0 auto var(--space-xl);
    transition: all var(--duration-normal) var(--ease-bounce);
    position: relative;
}

.icon-box::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.service-card:hover .icon-box {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .icon-box::after {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    font-family: var(--font-display);
}

.service-card p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.service-link {
    color: var(--secondary-color);
    font-weight: var(--weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    transition: gap var(--duration-normal);
}

.service-link:hover {
    gap: var(--space-md);
    color: var(--secondary-dark);
}

.service-link i {
    transition: transform var(--duration-normal) var(--ease-smooth);
}

/* ============================================
   PLATFORMS SECTION
   ============================================ */
.platforms-preview {
    background: var(--gradient-primary);
    padding: var(--space-5xl) 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-3xl);
}

.platform-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all var(--duration-slow) var(--ease-smooth);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.platform-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    transition: all var(--duration-slow);
}

.platform-card:hover .platform-bg {
    opacity: 0.12;
    transform: scale(1.05);
}

.platform-content {
    position: relative;
    z-index: 2;
    padding: var(--space-3xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.platform-icon {
    font-size: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xl);
}

.platform-info h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    font-weight: var(--weight-bold);
    font-family: var(--font-display);
}

.platform-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: var(--text-base);
    line-height: 1.7;
}

.link-text {
    color: var(--secondary-color);
    font-weight: var(--weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    transition: gap var(--duration-normal);
}

.link-text:hover {
    gap: var(--space-md);
    color: var(--secondary-dark);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: linear-gradient(180deg, white 0%, var(--bg-secondary) 100%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-3xl);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-smooth);
    border: 1px solid var(--border-light);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.stars {
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    font-size: var(--text-base);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent-light);
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
}

.author-info p {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-smooth);
    box-shadow: var(--shadow-md);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--gradient-accent);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: var(--space-xl);
    font-family: var(--font-display);
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3xl);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.8;
}

/* ============================================
   FOOTER PREMIUM
   ============================================ */
footer {
    background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
    color: var(--gray-400);
    padding: var(--space-5xl) 0 var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.footer-logo .logo {
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-logo p {
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    color: var(--gray-400);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: white;
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-md);
    font-weight: var(--weight-semibold);
    font-family: var(--font-display);
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.footer-links ul li {
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: var(--gray-400);
    transition: all var(--duration-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--duration-normal);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    align-items: flex-start;
}

.contact-item i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2px;
    font-size: var(--text-lg);
}

.social-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--duration-normal) var(--ease-bounce);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-4px) rotate(5deg);
    border-color: currentColor;
}

.facebook-link:hover {
    background: #1877F2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.instagram-link:hover {
    background: linear-gradient(135deg, #833AB4, #FD1D1D);
    box-shadow: 0 8px 20px rgba(253, 29, 29, 0.4);
}

.tiktok-link:hover {
    background: #000000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.linkedin-link:hover {
    background: #0077B5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
    z-index: 999;
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Clases de animación */
.fade-in {
    animation: fadeIn 0.8s var(--ease-out);
}

.slide-in-left {
    animation: slideInLeft 0.8s var(--ease-out);
}

.slide-in-right {
    animation: slideInRight 0.8s var(--ease-out);
}

.scale-in {
    animation: scaleIn 0.8s var(--ease-out);
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: white;
        flex-direction: column;
        padding: var(--space-3xl) var(--space-2xl);
        box-shadow: var(--shadow-xl);
        transition: left var(--duration-slow) var(--ease-smooth);
        overflow-y: auto;
        gap: var(--space-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: var(--text-lg);
        width: 100%;
        padding: var(--space-md) 0;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header {
        min-height: 45vh;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
    
    .services-grid,
    .platform-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: var(--space-4xl) 0;
    }
    
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 576px) {
    .navbar {
        height: 70px;
    }
    
    .navbar.scrolled {
        height: 65px;
    }
    
    .hero,
    .page-header {
        margin-top: 70px;
    }
    
    .logo {
        font-size: var(--text-xl);
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .back-to-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 48px;
        height: 48px;
    }
    
    .service-card,
    .platform-card,
    .testimonial-card {
        padding: var(--space-2xl) var(--space-xl);
    }
    
    .icon-box {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }
}

/* ============================================
   MODO OSCURO (Opcional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: var(--primary-dark);
        color: var(--gray-200);
    }
    
    body.dark-mode .navbar {
        background: rgba(15, 23, 42, 0.95);
    }
    
    body.dark-mode .service-card,
    body.dark-mode .platform-card,
    body.dark-mode .testimonial-card {
        background: var(--primary-color);
        border-color: var(--gray-700);
    }
    
    body.dark-mode .service-card h3,
    body.dark-mode .platform-info h3,
    body.dark-mode .testimonial-author h4 {
        color: white;
    }
    
    body.dark-mode .service-card p,
    body.dark-mode .platform-info p,
    body.dark-mode .testimonial-text {
        color: var(--gray-400);
    }
}

/* ============================================
   IMPRESIÓN
   ============================================ */
@media print {
    .navbar,
    .hero,
    .page-header,
    .back-to-top,
    .nav-toggle,
    .hero-shapes,
    .cta {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .service-card,
    .platform-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    border: 3px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--gray-100);
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Reducir movimiento para usuarios que lo prefieren */
@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;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0066CC;
        --accent-color: #CC6600;
    }
    
    .service-card,
    .platform-card,
    .testimonial-card {
        border: 2px solid;
    }
}

/* ============================================
   FIN DEL SISTEMA DE DISEÑO
   ============================================ */