/* ==========================================================================
   VIALPRO SERVICIOS VIALES - CORE DESIGN SYSTEM & FOUNDATION
   Inspirado en Maquinaria Pesada & Seguridad Vial (Caterpillar Yellow / Safety Orange)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Paleta Base - Asfalto & Grafito */
  --bg-dark-900: #090B0E;
  --bg-dark-800: #0F131A;
  --bg-dark-700: #161C26;
  --bg-dark-600: #1E2634;
  --bg-dark-glass: rgba(15, 19, 26, 0.85);

  /* Acentos Industriales - Caterpillar Yellow & Safety Orange */
  --cat-yellow: #F5AF00;
  --cat-yellow-light: #FFC425;
  --cat-yellow-dark: #D49300;
  --cat-yellow-glow: rgba(245, 175, 0, 0.22);
  --cat-yellow-muted: rgba(245, 175, 0, 0.12);

  --safety-orange: #FF5E00;
  --safety-orange-light: #FF7B2E;
  --safety-orange-glow: rgba(255, 94, 0, 0.25);
  --safety-orange-muted: rgba(255, 94, 0, 0.12);

  /* Colores de Señalética Vial */
  --vial-white: #FFFFFF;
  --vial-red: #E11D48;
  --vial-green: #10B981;
  --vial-blue: #0284C7;

  /* Textos y Jerarquía */
  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #64748B;
  --text-dark: #090B0E;

  /* Bordes y Líneas de Calzada */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: var(--cat-yellow);
  --border-hazard: repeating-linear-gradient(
    -45deg,
    #F5AF00,
    #F5AF00 12px,
    #11141B 12px,
    #11141B 24px
  );

  /* Tipografías */
  --font-display: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transiciones & Sombras */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-glass);
  --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(245, 175, 0, 0.2);
  --shadow-glow-yellow: 0 0 30px rgba(245, 175, 0, 0.25);
  --shadow-glow-orange: 0 0 30px rgba(255, 94, 0, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Reset y Reglas Generales */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark-900);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Patrón de Asfalto Sutil de Fondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(rgba(245, 175, 0, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* Tipografía de Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

/* Contenedores y Utilidades */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.section-spacing {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Franja de Advertencia / Hazard Tape Bar */
.hazard-stripe {
  height: 6px;
  width: 100%;
  background: var(--border-hazard);
}

.hazard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--cat-yellow-muted);
  color: var(--cat-yellow);
  border: 1px solid rgba(245, 175, 0, 0.3);
}

.hazard-badge.orange {
  background: var(--safety-orange-muted);
  color: var(--safety-orange-light);
  border-color: rgba(255, 94, 0, 0.3);
}

/* Encabezados de Sección */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header .section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-top: 0.5rem;
}

.text-yellow {
  color: var(--cat-yellow);
}

.text-orange {
  color: var(--safety-orange);
}

.text-gradient-cat {
  color: var(--cat-yellow);
}

/* Línea divisoria técnica */
.tech-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.tech-divider::before,
.tech-divider::after {
  content: '';
  height: 2px;
  width: 50px;
  background: var(--cat-yellow);
}

.tech-divider .dot {
  width: 8px;
  height: 8px;
  background: var(--safety-orange);
  transform: rotate(45deg);
}
