@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ==========================================================================
   GLOBAL VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color Palette - Corporate K-Tecnol (Rojo, Negro, Gris, Blanco) */
  --bg-primary: #000000;       /* Negro corporativo puro para contraste premium */
  --bg-secondary: #0f0f12;     /* Gris carbón muy oscuro para tarjetas y secciones */
  --bg-tertiary: #1a1a1f;      /* Gris oscuro neutro para hovers y campos */
  
  --accent-red: #d32f2f;       /* Rojo corporativo sólido */
  --accent-red-bright: #ff3333;/* Rojo vibrante para hovers y estados activos */
  --accent-red-glow: rgba(211, 47, 47, 0.45);
  --accent-red-dim: rgba(211, 47, 47, 0.12);
  
  --text-primary: #ffffff;     /* Blanco para títulos y textos principales */
  --text-secondary: #d1d5db;   /* Gris claro neutro (high-contrast) para descripciones y lectura */
  --text-muted: #71717a;       /* Gris medio para textos secundarios, bordes y desactivados */
  
  --border-color: #27272a;     /* Gris de borde estructural */
  --border-hover: #3f3f46;     /* Gris de borde al pasar el cursor */
  
  --metal-silver: linear-gradient(135deg, #27272a 0%, #0f0f12 100%);
  --metal-card-glow: 0 10px 30px -15px rgba(0, 0, 0, 0.8);
  --red-glow-shadow: 0 0 20px var(--accent-red-glow);
  
  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-technical: 'Rajdhani', sans-serif;
  
  /* Layout Options */
  --max-width: 1200px;
  --nav-height: 95px;          /* Altura expandida para mayor visibilidad del logo */
  --nav-height-shrunk: 75px;   /* Altura colapsada */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & SYSTEM BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Typography Selection */
::selection {
  background-color: var(--accent-red);
  color: var(--text-primary);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1, h2, h3 {
  font-family: var(--font-technical);
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   UTILITY CLASSES & GRID LAYOUTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-slate {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-red); }
.text-light { color: var(--text-primary); }

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}

/* ==========================================================================
   SECTION HEADER DECORATIONS
   ========================================================================== */
.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-subtitle {
  font-family: var(--font-technical);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

.section-header.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-description {
  margin-top: 1rem;
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.section-header.text-center .section-description {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
