/* styles.css - IA Disruptiva Resources Hub */

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    background-color: #020617; /* slate-950 */
    color: #cbd5e1; /* slate-300 */
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
  }
  .font-manrope {
    font-family: 'Manrope', sans-serif;
  }
}

@layer components {
  /* Fondos y luces ambientales */
  .bg-glow-blue {
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  }

  .global-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
  }

  .ambient-light {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80vw; height: 50vh;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
  }

  /* Glass Cards Uniformes (Identidad IA Disruptiva) */
  .glass-card {
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(20, 20, 25, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5);
  }

  /* Texto Corporativo */
  .text-gradient-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Botón Principal Amarillo Exacto (Estilo iadisruptiva.es) */
  .btn-yellow {
    background: linear-gradient(to right, #FFEBB1, #FFC438);
    color: #000000; /* black */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 33px -12px rgba(255,162,42,0.9), inset 0 4px 6.3px rgba(252,220,134,1), inset 0 -5px 6.3px rgba(255,162,38,1);
    border-radius: 9999px;
    font-weight: 500;
  }
  
  .btn-yellow:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 25px 40px -12px rgba(255,162,42,0.9), inset 0 4px 6.3px rgba(252,220,134,1), inset 0 -5px 6.3px rgba(255,162,38,1);
  }
  
  .btn-yellow:active {
    transform: scale(0.95);
  }

  /* Efecto de Brillo Continuo para botón principal */
  @keyframes shimmer {
    0% { transform: translateX(-100%) skewX(12deg); }
    100% { transform: translateX(200%) skewX(12deg); }
  }
  .btn-yellow::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%) skewX(12deg);
    animation: shimmer 2.5s infinite;
    pointer-events: none;
  }

  /* Botón Secundario (Azul corporativo) */
  .btn-outline-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.4);
    position: relative;
    transition: all 0.3s ease;
    border-radius: 9999px;
    font-weight: 500;
  }
  .btn-outline-blue:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.3);
  }

  /* Navegación */
  .nav-link {
    position: relative;
    color: #cbd5e1; /* slate-300 */
    transition: color 0.3s ease;
  }
  .nav-link:hover {
    color: #ffffff;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6; /* Hover azul en el menú */
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }
  .active-link {
    color: #ffffff;
  }
  .active-link::after {
    width: 100%;
    background-color: #3b82f6; 
  }

  /* Iconos corporativos (Cajas con fondo sutil) */
  .icon-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8; /* slate-400 */
    transition: all 0.3s ease;
    border-radius: 0.75rem;
  }
  .glass-card:hover .icon-box {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
    color: #FFC438; /* Icono pasa a amarillo en hover */
  }
}
