/* ===================================
   SST CONSULTING - MAIN STYLES
   Diseño Premium para Consultoría SST
   =================================== */

/* Configuración de fuentes y base */
:root {
    --primary: #0f3a7d;
    --primary-light: #1152d4;
    --primary-dark: #082359;
    --accent: #00d4ff;
    --accent-warm: #ff6b35;
    --background-light: #f8f9fc;
    --background-dark: #0a0e1a;
    --surface-light: #ffffff;
    --surface-dark: #151b2f;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: #111318;
    line-height: 1.6;
}

body.dark {
    background-color: var(--background-dark);
    color: #ffffff;
}

/* ===================================
   ANIMACIONES PERSONALIZADAS
   =================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===================================
   CLASES DE UTILIDAD PERSONALIZADAS
   =================================== */

.shimmer {
    animation: shimmer 3s infinite;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 1000px 100%;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

.float-down {
    animation: floatDown 0.8s ease-out;
}

.pulse-subtle {
    animation: pulse-subtle 2s ease-in-out infinite;
}

/* ===================================
   EFECTOS DE HOVER AVANZADOS
   =================================== */

.hover-lift {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(15, 58, 125, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   COMPONENTES REUTILIZABLES
   =================================== */

.card-premium {
    background: var(--surface-light);
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(15, 58, 125, 0.08);
    transition: all 0.3s ease;
}

.card-premium:hover {
    box-shadow: 0 20px 60px rgba(15, 58, 125, 0.12);
    transform: translateY(-4px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 40px rgba(15, 58, 125, 0.3);
    transform: scale(1.05);
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.input-modern:hover {
    border-color: var(--primary);
    background-color: rgba(15, 58, 125, 0.02);
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 58, 125, 0.1);
}

/* ===================================
   SECCIONES ESPECÍFICAS
   =================================== */

header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.dark {
    background-color: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 58, 125, 0.1), transparent);
    border-radius: 50%;
    transform: translate(200px, -200px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   MODO OSCURO
   =================================== */

.dark .card-premium {
    background: var(--surface-dark);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dark .input-modern {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark .input-modern:hover {
    background-color: rgba(15, 58, 125, 0.1);
}

/* ===================================
   RESPONSIVE & MOBILE
   =================================== */

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* ===================================
   UTILIDADES DE ACCESIBILIDAD
   =================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para navegación con teclado */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===================================
   IMPRESIÓN
   =================================== */

@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
}
