/* ==============================================
   V3 INTEGRAL - HOJA DE ESTILOS PRINCIPAL
   TEMA CLARO PREMIUM - COLORES PERSONALIZADOS
   ============================================== */

/* Variables Globales */
:root {
    /* Colores principales - Personalizados */
    --purple: #5E00A3;        /* Púrpura principal para textos */
    --purple-dark: #4A0082;   /* Púrpura oscuro */
    --purple-light: #7B1FA2;  /* Púrpura claro */
    --purple-soft: rgba(94, 0, 163, 0.08);
    --purple-glow: rgba(94, 0, 163, 0.3);
    
    --blue: #218ace;          /* Azul principal */
    --blue-dark: #1a6da3;     /* Azul oscuro */
    --blue-light: #5ba8dc;    /* Azul claro */
    --blue-soft: rgba(33, 138, 206, 0.08);
    --blue-glow: rgba(33, 138, 206, 0.3);
    
    --cyan: #bae3f7;          /* Azul cielo claro */
    --cyan-dark: #98c9e8;     /* Azul cielo oscuro */
    --cyan-light: #d4ecfa;    /* Azul cielo más claro */
    --cyan-soft: rgba(186, 227, 247, 0.15);
    --cyan-glow: rgba(186, 227, 247, 0.4);
    
    /* Colores de acento */
    --green: #10B981;
    --green-soft: rgba(16, 185, 129, 0.1);
    
    --orange: #F59E0B;
    --orange-soft: rgba(245, 158, 11, 0.1);
    
    --red: #EF4444;
    --red-soft: rgba(239, 68, 68, 0.1);
    
    /* Colores base - Tema Claro */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F1F3F5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F9FA;
    --bg-input: #F8F9FA;
    
    --text-primary: #5E00A3;
    --text-secondary: #6B1FA8;
    --text-tertiary: #7B3FB0;
    --text-muted: #9C6BBF;
    
    --border-color: rgba(94, 0, 163, 0.15);
    --border-color-hover: rgba(94, 0, 163, 0.4);
    
    /* Gradientes */
    --gradient-main: linear-gradient(135deg, #5E00A3 0%, #218ace 50%, #bae3f7 100%);
    --gradient-purple: linear-gradient(135deg, #7B1FA2 0%, #5E00A3 100%);
    --gradient-blue: linear-gradient(135deg, #5ba8dc 0%, #218ace 100%);
    --gradient-cyan: linear-gradient(135deg, #d4ecfa 0%, #bae3f7 100%);
    --gradient-green: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    --gradient-orange: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    --gradient-red: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    --gradient-hero: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 50%, #FFFFFF 100%);
    --gradient-card: linear-gradient(135deg, rgba(94, 0, 163, 0.03) 0%, rgba(33, 138, 206, 0.03) 100%);
    
    /* Sombras - Ajustadas para tema claro */
    --shadow-xs: 0 1px 2px rgba(94, 0, 163, 0.05);
    --shadow-sm: 0 2px 4px rgba(94, 0, 163, 0.06), 0 1px 2px rgba(94, 0, 163, 0.04);
    --shadow-md: 0 4px 6px rgba(94, 0, 163, 0.08), 0 2px 4px rgba(94, 0, 163, 0.05);
    --shadow-lg: 0 10px 25px rgba(94, 0, 163, 0.12), 0 4px 10px rgba(94, 0, 163, 0.08);
    --shadow-xl: 0 20px 50px rgba(94, 0, 163, 0.15), 0 8px 20px rgba(94, 0, 163, 0.1);
    --shadow-purple: 0 8px 32px rgba(94, 0, 163, 0.2);
    --shadow-blue: 0 8px 32px rgba(33, 138, 206, 0.2);
    --shadow-cyan: 0 8px 32px rgba(186, 227, 247, 0.3);
    --shadow-glow: 0 0 40px rgba(94, 0, 163, 0.1);
    
    /* Bordes */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Tipografía */
    --font-primary: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Fondo con patrón sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(94, 0, 163, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 138, 206, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(186, 227, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

/* Selección de texto */
::selection {
    background: var(--purple);
    color: var(--white, #FFFFFF);
}

/* ==============================================
   PRELOADER
   ============================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

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

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

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-icon {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--purple-glow));
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 1rem;
    position: relative;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    animation: preloaderProgress 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--purple-glow);
}

@keyframes preloaderProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.preloader-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==============================================
   CURSOR PERSONALIZADO
   ============================================== */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--purple);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--purple-glow);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(94, 0, 163, 0.4);
    transform: translate(-50%, -50%);
    transition: all 0.25s ease-out;
}

@media (max-width: 768px) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ==============================================
   SCROLL PROGRESS BAR
   ============================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-main);
    width: 0%;
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--purple-glow);
}

/* ==============================================
   NAVBAR
   ============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(94, 0, 163, 0.1);
    border-bottom-color: var(--border-color-hover);
}

.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: #FFFFFF;
    letter-spacing: -1px;
    box-shadow: var(--shadow-purple);
    position: relative;
    overflow: hidden;
    animation: logoShine 3s ease-in-out infinite;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    animation: logoShineEffect 3s ease-in-out infinite;
}

@keyframes logoShineEffect {
    0%, 100% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
    50% {
        transform: translate(30%, 30%) rotate(180deg);
    }
}

.logo-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--gradient-orange);
    color: #FFFFFF;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

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

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

.btn-nav {
    background: var(--gradient-main);
    color: #FFFFFF !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    box-shadow: var(--shadow-purple);
    transition: var(--transition-base) !important;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(94, 0, 163, 0.3);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
    transition: var(--transition-base);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--purple);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--purple);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(94, 0, 163, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-gradient-1,
.hero-gradient-2,
.hero-gradient-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: heroFloat 15s ease-in-out infinite;
}

.hero-gradient-1 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    top: -100px;
    left: -100px;
}

.hero-gradient-2 {
    width: 400px;
    height: 400px;
    background: var(--blue);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.hero-gradient-3 {
    width: 300px;
    height: 300px;
    background: var(--cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(-40px, -20px) scale(1.05);
    }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(94, 0, 163, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 0, 163, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    opacity: 0.5;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: shapeFloat 20s ease-in-out infinite;
    opacity: 0.1;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: var(--purple);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--blue);
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    background: var(--cyan);
    bottom: 30%;
    left: 20%;
    animation-delay: -8s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    background: var(--purple-light);
    top: 30%;
    right: 25%;
    animation-delay: -12s;
}

.shape-5 {
    width: 30px;
    height: 30px;
    background: var(--blue-light);
    bottom: 20%;
    right: 40%;
    animation-delay: -16s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(-40px, -10px) rotate(270deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
    transition: var(--transition-base);
}

.hero-badge:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
}

.badge-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.7rem;
    animation: badgeIconPulse 2s ease-in-out infinite;
}

@keyframes badgeIconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--purple-glow);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(94, 0, 163, 0);
    }
}

.badge-arrow {
    color: var(--text-muted);
    transition: var(--transition-base);
}

.hero-badge:hover .badge-arrow {
    transform: translateX(4px);
    color: var(--purple);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 3.5rem);
    font-weight: 1024;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out 1s both;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    position: relative;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(10deg);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Botones */
.btn {
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-main);
    color: #FFFFFF;
    box-shadow: var(--shadow-purple);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 45px rgba(94, 0, 163, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--purple);
    background: var(--purple-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
    50% {
        transform: translate(30%, 30%) rotate(180deg);
    }
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--purple-soft);
    color: var(--purple);
    flex-shrink: 0;
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-mouse {
    width: 28px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 6px;
    transition: var(--transition-base);
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--purple);
    border-radius: var(--radius-full);
    animation: scrollWheel 2s ease-in-out infinite;
}

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

.scroll-link:hover {
    transform: translateY(4px);
}

.scroll-link:hover .scroll-mouse {
    border-color: var(--purple);
}

/* ==============================================
   TRUSTED BY SECTION
   ============================================== */
.trusted-section {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.trusted-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition-base);
    font-weight: 600;
    cursor: default;
    opacity: 0.6;
}

.logo-item:hover {
    color: var(--purple);
    opacity: 1;
    transform: scale(1.05);
}

.logo-item i {
    font-size: 1.8rem;
}

/* ==============================================
   SECTION HEADERS
   ============================================== */
.section {
    padding: 5rem 2rem;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: var(--purple-soft);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.section-badge i {
    font-size: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==============================================
   FEATURES SECTION
   ============================================== */
.features-section {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--purple-soft) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-base);
    border-radius: 50%;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
    transform: scale(2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

.feature-icon.purple {
    background: var(--purple-soft);
    color: var(--purple);
}

.feature-icon.blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.feature-icon.cyan {
    background: var(--cyan-soft);
    color: var(--blue);
}

.feature-icon.green {
    background: var(--green-soft);
    color: var(--green);
}

.feature-icon.orange {
    background: var(--orange-soft);
    color: var(--orange);
}

.feature-icon.red {
    background: var(--red-soft);
    color: var(--red);
}

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

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--purple);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

.feature-link i {
    transition: var(--transition-base);
}

.feature-link:hover {
    color: var(--blue);
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* ==============================================
   MODULES SECTION
   ============================================== */
.modules-section {
    background: var(--bg-secondary);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--purple-soft) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-base);
    border-radius: 50%;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color-hover);
}

.module-card:hover::before {
    opacity: 1;
    transform: scale(2);
}

.module-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.module-icon.purple {
    background: var(--purple-soft);
    color: var(--purple);
}

.module-icon.blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.module-icon.cyan {
    background: var(--cyan-soft);
    color: var(--blue);
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(5deg);
    animation: moduleIconWiggle 0.6s ease;
}

@keyframes moduleIconWiggle {
    0%, 100% {
        transform: scale(1.1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-8deg);
    }
    50% {
        transform: scale(1.1) rotate(8deg);
    }
    75% {
        transform: scale(1.1) rotate(-4deg);
    }
}

.module-icon span {
    display: block;
    position: relative;
    z-index: 1;
}

.module-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.module-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ==============================================
   BENEFITS SECTION
   ============================================== */
.benefits-section {
    background: var(--bg-primary);
}

.benefits-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.benefit-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-hover);
    transform: translateX(8px);
}

.benefit-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.benefit-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.benefit-content h3 i {
    color: var(--purple);
    font-size: 1rem;
    width: 24px;
    height: 24px;
    background: var(--purple-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==============================================
   TESTIMONIALS SECTION
   ============================================== */
.testimonials-section {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition-base);
    position: relative;
    cursor: default;
}

.testimonial-card.featured {
    background: var(--gradient-main);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: var(--shadow-purple);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color-hover);
}

.testimonial-quote {
    font-size: 2.5rem;
    color: var(--purple);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-card.featured .testimonial-quote {
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card.featured .testimonial-text {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.testimonial-card.featured .author-info h4 {
    color: #FFFFFF;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.3rem;
}

.testimonial-card.featured .author-info span {
    color: rgba(255, 255, 255, 0.8);
}

.author-rating {
    display: flex;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: var(--orange);
}

/* ==============================================
   CTA SECTION
   ============================================== */
.cta-section {
    background: var(--bg-primary);
    padding: 5rem 2rem;
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.cta-card:hover {
    box-shadow: 0 25px 60px rgba(94, 0, 163, 0.15);
    border-color: var(--border-color-hover);
}

.cta-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--purple-soft) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: ctaGlow 6s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

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

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--orange-soft);
    color: var(--orange);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px var(--purple-soft);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-base);
}

.form-group input:focus + i,
.form-group input:focus ~ i {
    color: var(--purple);
}

.cta-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-disclaimer i {
    color: var(--green);
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
    cursor: default;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    color: #FFFFFF;
    box-shadow: var(--shadow-purple);
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--purple);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-link i {
    transition: var(--transition-base);
}

.contact-link:hover {
    color: var(--blue);
}

.contact-link:hover i {
    transform: translateX(4px);
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    background: var(--gradient-main);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple);
    border-color: transparent;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

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

.footer-newsletter h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px var(--purple-soft);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ==============================================
   BACK TO TOP
   ============================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-purple);
    transition: var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(94, 0, 163, 0.3);
}

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

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

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

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

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

/* ==============================================
   CLASES DE UTILIDAD
   ============================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 968px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        transition: var(--transition-slow);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(94, 0, 163, 0.15);
        padding: 2rem;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 6rem 1.5rem 4rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.2rem 1.5rem;
        min-width: 130px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .modules-grid,
    .testimonials-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .benefit-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .benefit-number {
        font-size: 2rem;
        min-width: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .stat-card {
        width: 100%;
        justify-content: flex-start;
    }
    
    .trusted-logos {
        gap: 1.5rem;
    }
    
    .logo-item {
        font-size: 1rem;
    }
    
    .logo-item i {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .cta-card {
        padding: 2rem 1.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==============================================
   ACCESIBILIDAD
   ============================================== */
@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;
    }
}

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

/* ==============================================
   IMPRESIÓN
   ============================================== */
@media print {
    .navbar,
    .back-to-top,
    .preloader,
    .cursor-dot,
    .cursor-ring,
    .scroll-progress,
    .hero-scroll {
        display: none !important;
    }
    
    body {
        background: white;
        color: #5E00A3;
    }
    
    .section,
    .hero {
        padding: 2rem;
    }

    /* ==============================================
   WHATSAPP FLOATING BUTTON
   ============================================== */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 950;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button i {
    font-size: 2rem;
    color: #FFFFFF;
    animation: whatsappIconWiggle 3s ease-in-out infinite;
}

.whatsapp-button:hover i {
    animation: none;
    transform: scale(1.2);
}

/* Tooltip */
.whatsapp-button .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #25D366;
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 3px;
    rotate: 45deg;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Estado en línea */
.whatsapp-button .whatsapp-status {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    animation: whatsappStatusPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappIconWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    20% {
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(-10deg);
    }
    40% {
        transform: rotate(0deg);
    }
}

@keyframes whatsappStatusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(76, 175, 80, 0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .whatsapp-button {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button i {
        font-size: 1.6rem;
    }
    
    .whatsapp-button .whatsapp-tooltip {
        display: none;
    }

    /* ==============================================
   WHATSAPP EN FOOTER
   ============================================== */
.whatsapp-contact {
    margin-top: 1rem;
}

.whatsapp-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
    border: none;
}

.whatsapp-contact-link:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #FFFFFF;
}

.whatsapp-contact-link i {
    font-size: 1.1rem;
}
/* ==============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 2.2rem;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
    animation: whatsappIcon 2s ease-in-out infinite;
}

/* Tooltip */
.whatsapp-float-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #25D366;
    color: #FFFFFF;
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    letter-spacing: 0.3px;
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 3px;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Efecto de pulso */
.whatsapp-float-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2s ease-out infinite;
    z-index: 1;
}

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

@keyframes whatsappIcon {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    20% {
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(-10deg);
    }
    40% {
        transform: rotate(0deg);
    }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 1.8rem;
    }
    
    .whatsapp-float-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 1.6rem;
    }
}