/* =========================================
   WELCOME PAGE STYLES - HR VENTAS
   ========================================= */

/* Variables CSS específicas para la página de bienvenida */
:root {
    /* Colores HR principales */
    --hr-primary: #C53030;
    --hr-primary-dark: #9B2C2C;
    --hr-secondary: #2D3748;
    --hr-accent: #EDF2F7;

    /* Gradientes personalizados */
    --hr-gradient: linear-gradient(135deg, var(--hr-primary) 0%, var(--hr-primary-dark) 100%);
    --hr-gradient-overlay: linear-gradient(135deg, rgba(197, 48, 48, 0.9) 0%, rgba(155, 44, 44, 0.7) 100%);

    /* Sombras y efectos */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Backdrop blur valores */
    --blur-sm: 4px;
    --blur-md: 8px;
    --blur-lg: 16px;
}

/* Clases utilitarias para colores HR */
.bg-hr-primary {
    background-color: var(--hr-primary);
}

.bg-hr-primary-dark {
    background-color: var(--hr-primary-dark);
}

.text-hr-primary {
    color: var(--hr-primary);
}

.border-hr-primary {
    border-color: var(--hr-primary);
}

/* Efectos de hover para botones HR */
.hover\:bg-hr-primary-dark:hover {
    background-color: var(--hr-primary-dark);
}

/* =========================================
   BACKGROUND & OVERLAY EFFECTS
   ========================================= */

/* Mejoras para la imagen de fondo */
.welcome-bg {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

/* Overlay mejorado con gradiente */
.welcome-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Efecto de parallax suave */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* =========================================
   GLASSMORPHISM EFFECTS
   ========================================= */

/* Efecto glassmorphism para tarjetas */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-large);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Efecto glassmorphism para navegación */
.glass-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   LOGO & BRANDING
   ========================================= */

/* Contenedor del logo principal */
.hero-logo {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

/* Logo de navegación */
.nav-logo {
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

/* Fallback logo con gradiente HR */
.logo-fallback {
    background: var(--hr-gradient);
    box-shadow: var(--shadow-large);
    transition: all 0.3s ease;
}

.logo-fallback:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* =========================================
   TYPOGRAPHY ENHANCEMENTS
   ========================================= */

/* Título principal con efectos */
.hero-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Subtítulo mejorado */
.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Texto con gradiente HR */
.text-gradient-hr {
    background: var(--hr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   BUTTON STYLES
   ========================================= */

/* Botón principal HR */
.btn-hr-primary {
    background: var(--hr-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 18px;
    box-shadow: var(--shadow-large);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hr-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;
}

.btn-hr-primary:hover::before {
    left: 100%;
}

.btn-hr-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-hr-primary:active {
    transform: translateY(0);
}

/* Botón secundario glassmorphism */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* =========================================
   FEATURE CARDS
   ========================================= */

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

/* Tarjeta de característica */
.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hr-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Icono de característica */
.feature-icon {
    background: var(--hr-gradient);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-large);
}

/* =========================================
   ANIMATIONS & TRANSITIONS
   ========================================= */

/* Animación de entrada para elementos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Clases de animación */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInScale {
    animation: fadeInScale 0.8s ease-out forwards;
}

/* Delays para animaciones escalonadas */
.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

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

/* Tablets */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .btn-hr-primary,
    .btn-glass {
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .btn-hr-primary,
    .btn-glass {
        font-size: 16px;
        padding: 12px 24px;
        width: 100%;
    }
}

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

/* Optimización para animaciones */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reducir motion para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .parallax-bg {
        transform: none !important;
    }
}

/* =========================================
   DARK MODE SUPPORT (Futuro)
   ========================================= */

/* Preparado para modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --hr-accent: #1A202C;
    }
}

/* =========================================
   PRINT STYLES
   ========================================= */

@media print {
    .welcome-bg,
    .welcome-overlay,
    .glass-card,
    .glass-nav {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}
