/* Empresa Genial - Estilos Base */

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Variables CSS para fácil modificación */
:root {
  /* Colores Principales */
  --color-primary: #3b82f6;      /* Azul vibrante */
  --color-primary-dark: #2563eb; /* Azul oscuro */
  --color-secondary: #7c3aed;    /* Violeta moderno */
  --color-accent: #10b981;       /* Verde acento */
  
  /* Colores de Fondo y Texto (Light Mode) */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  /* Tipografía */
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;
  
  /* Transiciones */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
.dark {
  --bg-body: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #1e293b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

/* Reset y Estilos Globales */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Mouse Halo Effect */
#mouse-halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    /* Modo Claro: Azul mucho más fuerte y visible */
    background: radial-gradient(circle, rgba(37, 99, 235, 0.6) 0%, rgba(59, 130, 246, 0.3) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0; /* Nivel base */
    mix-blend-mode: normal; 
    filter: blur(50px); /* Blur suave pero con color fuerte */
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.dark #mouse-halo {
    /* Modo Oscuro: Mantenemos el efecto brillante */
    mix-blend-mode: screen; 
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(124, 58, 237, 0.3) 50%, rgba(0, 0, 0, 0) 70%);
    filter: blur(50px);
}

/* Asegurar que el contenido esté por encima del halo */
section, header, footer, nav, .hero-content, .hero-image {
    position: relative;
    /* Eliminado z-index: 10 para permitir que el halo se vea a través de fondos transparentes */
}



/* Utilidades Personalizadas */
.text-halo-guard {
    /* Resplandor suave (glow) alrededor de las letras */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.8);
    /* Eliminado el background para evitar la "caja" o línea transparente en elementos de bloque */
}

.dark .text-halo-guard {
    text-shadow: none;
}

/* Guard específico para texto con gradiente */
.gradient-halo-guard {
    /* Usamos drop-shadow en lugar de text-shadow para respetar la transparencia del gradiente */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.dark .gradient-halo-guard {
    filter: none;
}

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

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.card-hover {
  transition: var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Animaciones */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
