/* ==========================================================================
   E-RACING UDEP - ESTILOS GLOBALES & SISTEMA DE DISEÑO
   Tema: High-Octane Telemetry
   Universidad de Piura - Formula Student Electric
   ========================================================================== */

/* 1. FUENTES DE GOOGLE */
@import url('https://fonts.googleapis.com/css2?family=Chivo:ital,wght@0,300;0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* 2. ICONOS MATERIAL SYMBOLS */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* 3. PATRONES TÉCNICOS DE FONDO (MOTORSPORT TELEMETRY) */
.technical-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.03) 1px, transparent 1px);
}

.carbon-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.04) 1px, transparent 1px);
}

.carbon-mesh {
  background-image: radial-gradient(rgba(225, 6, 0, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

.carbon-surface {
  background: radial-gradient(circle at 50% 0%, #1a1c20 0%, #0c0e12 100%);
}

.technical-crosshair {
  background-image: radial-gradient(circle, rgba(225, 6, 0, 0.4) 1px, transparent 1px);
  background-size: 16px 16px;
}

.scanline {
  background: linear-gradient(180deg, rgba(225, 6, 0, 0.15) 0%, transparent 100%);
}

/* 4. EFECTOS GLOW & RESPLANDOR TELEMETRÍA */
.telemetry-glow-red {
  box-shadow: 0 0 16px rgba(225, 6, 0, 0.35);
}

.glow-primary {
  box-shadow: 0 0 15px rgba(225, 6, 0, 0.35);
}

.glow-subtle {
  box-shadow: 0 0 25px rgba(225, 6, 0, 0.15);
}

/* 5. SCROLLBAR TÉCNICO PERSONALIZADO */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0c0e12;
}

::-webkit-scrollbar-thumb {
  background: #282a2e;
  border-radius: 4px;
  border: 1px solid #333539;
}

::-webkit-scrollbar-thumb:hover {
  background: #e10600;
}

/* 6. SUAVIZADO DE SCROLL Y SELECCIÓN */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #e10600;
  color: #ffffff;
}

/* 7. ANIMACIONES MICRO */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }
}

.pulse-glow {
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
