/* static/css/global.css - ESTILOS GLOBALES MEJORADOS */

/* === BRANDING Y LOGO === */
.navbar-logo {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* === FUENTES Y VARIABLES === */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    /* Paleta de colores principal - Azules y índigos armoniosos */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    
    /* Colores secundarios - Índigo */
    --secondary-500: #6366f1;
    --secondary-600: #4f46e5;
    --secondary-700: #4338ca;
    
    /* Grises suaves */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Colores de estado */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* === BODY Y SCROLL === */
body {
    line-height: 1.6;
    color: var(--gray-700);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    scroll-behavior: smooth;
}

/* === HERO SECTION MEJORADO === */
.hero-section {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f3e8ff 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--secondary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === BADGES Y ETIQUETAS === */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 2px solid var(--primary-100);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === BOTONES PRINCIPALES === */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-button-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.hero-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-button-primary:hover::before {
    left: 100%;
}

.hero-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hero-button-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--primary-700);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid var(--primary-200);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.hero-button-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === SECCIONES === */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button-primary,
    .hero-button-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* === UTILIDADES === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--secondary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botón CTA moderno y atractivo*/
/* Botón CTA moderno y atractivo - OPTIMIZADO UX */
.cta-button-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3.125rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 30%, #047857 70%, #065f46 100%);
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5), 0 0 20px rgba(5, 150, 105, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: gentle-pulse 4s ease-in-out infinite;
}

.cta-button-modern:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.7), 0 0 30px rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 30%, #10b981 70%, #065f46 100%);
    border-color: rgba(255, 255, 255, 0.5);
    animation: none;
}

.cta-button-modern:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Efecto de brillo que se desliza SOLO al hover */
.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.7) 70%,
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.cta-button-modern.group:hover .cta-shine {
    left: 100%;
}

/* Animación de pulso suave y profesional */
@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5), 0 0 20px rgba(5, 150, 105, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6), 0 0 25px rgba(5, 150, 105, 0.4);
        transform: scale(1.01);
    }
}

/* Efecto para el icono optimizado */
.cta-button-modern:hover .fas {
    transform: scale(1.15) rotate(8deg);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* Accesibilidad - Respeta preferencias del usuario */
@media (prefers-reduced-motion: reduce) {
    .cta-button-modern {
        animation: none;
    }
    
    .cta-shine {
        animation: none;
    }
    
    .cta-button-modern:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .cta-button-modern:hover .fas {
        transform: scale(1.1);
        filter: none;
    }
}