/* ============================================================
   DGT Ourense — Semáforos y Puente del Milenio
   Estilos principales
   ============================================================ */

:root {
  --rojo:     #c0392b;
  --rojo-claro: #e74c3c;
  --amarillo: #e8a020;
  --verde:    #27ae60;
  --verde-claro: #2ecc71;
  --azul-dgt: #1a3a5c;
  --azul-medio: #2c5282;
  --azul-claro: #2980b9;
  --gris-oscuro: #1a1e28;
  --gris-medio: #2a2f3e;
  --gris-suave: #3a4054;
  --blanco:   #f5f7fa;
  --acento:   #e8c840;
  --fuente:   'Barlow', sans-serif;
  --fuente-cond: 'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  background: var(--gris-oscuro);
  color: var(--blanco);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(22, 28, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(232, 200, 64, 0.25);
  transition: background 0.3s;
}

.header-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--rojo) 0%, var(--amarillo) 33%, var(--verde) 66%, var(--azul-medio) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.logo-shield {
  width: 46px; height: 52px;
  background: var(--rojo);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-shield.large { width: 64px; height: 72px; }
.logo-shield.small { width: 36px; height: 42px; }

.shield-inner {
  width: 34px; height: 38px;
  background: var(--blanco);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-shield.large .shield-inner { width: 48px; height: 54px; }
.logo-shield.small .shield-inner { width: 26px; height: 30px; }

.shield-dgt {
  font-family: var(--fuente-cond);
  font-weight: 900;
  color: var(--rojo);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-top: -6px;
}
.logo-shield.large .shield-dgt { font-size: 0.95rem; margin-top: -8px; }
.logo-shield.small .shield-dgt { font-size: 0.55rem; margin-top: -4px; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-title {
  font-family: var(--fuente-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--blanco);
  line-height: 1.1;
}
.nav-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--acento);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--blanco); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--rojo) !important;
  color: var(--blanco) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--rojo-claro) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1520 0%, #1a2a40 50%, #0d1a2e 100%);
  padding-top: 80px;
}

/* Carretera de fondo */
.hero-road {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: #1a1e28;
  overflow: hidden;
}

.hero-road::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
}

.road-lane {
  position: absolute;
  top: 0; bottom: 0;
  width: 33.33%;
}
.lane-1 { left: 0; background: rgba(255,255,255,0.01); }
.lane-2 { left: 33.33%; background: rgba(255,255,255,0.02); border-left: 2px dashed rgba(255,255,255,0.1); border-right: 2px dashed rgba(255,255,255,0.1); }
.lane-3 { right: 0; background: rgba(255,255,255,0.01); }

.road-markings {
  position: absolute;
  top: 50%; left: 0; right: 0;
  display: flex;
  gap: 60px;
  transform: translateY(-50%);
  animation: roadScroll 2.5s linear infinite;
}

.dashed-line {
  width: 80px; height: 4px;
  background: var(--acento);
  opacity: 0.5;
  border-radius: 2px;
  flex-shrink: 0;
}

@keyframes roadScroll {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(-140px); }
}

/* Coches */
.car {
  position: absolute;
  bottom: 20px;
  width: 70px; height: 28px;
}

.car-body {
  position: absolute;
  bottom: 0;
  width: 70px; height: 18px;
  border-radius: 3px;
}
.car-roof {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 38px; height: 14px;
  border-radius: 4px 4px 1px 1px;
}
.car-lights {
  position: absolute;
  bottom: 6px;
  width: 8px; height: 6px;
  border-radius: 1px;
}
.car-lights.front { right: 2px; background: #fffde0; box-shadow: 0 0 8px #fffde0; }
.car-lights.rear  { left: 2px; background: #ff4444; box-shadow: 0 0 6px #ff4444; }

.car-1 .car-body { background: #c0392b; }
.car-1 .car-roof { background: #922b21; }

.car-2 .car-body { background: #2980b9; }
.car-2 .car-roof { background: #1a5276; }

.car-3 .car-body { background: #27ae60; }
.car-3 .car-roof { background: #1e8449; }

.car-1 { animation: carMove1 8s linear infinite; left: -80px; }
.car-2 { animation: carMove2 11s linear infinite 3s; left: -80px; bottom: 50px; }
.car-3 { animation: carMove3 9.5s linear infinite 1.5s; left: -80px; bottom: 10px; }

@keyframes carMove1 {
  0% { left: -80px; }
  100% { left: calc(100% + 80px); }
}
@keyframes carMove2 {
  0% { left: -80px; }
  100% { left: calc(100% + 80px); }
}
@keyframes carMove3 {
  0% { left: -80px; }
  100% { left: calc(100% + 80px); }
}

/* Contenido hero */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  padding: 0 2rem 200px 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

.traffic-light-mini {
  display: flex;
  gap: 4px;
  align-items: center;
}
.tl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0.25;
}
.tl-dot.active { opacity: 1; }
.tl-red   { background: var(--rojo); }
.tl-yellow{ background: var(--amarillo); }
.tl-green { background: var(--verde); }

.hero-title {
  font-family: var(--fuente-cond);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  animation: fadeInDown 0.8s ease 0.1s both;
}
.hero-title-accent {
  color: var(--acento);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease 0.2s both;
}
.hero-desc strong { color: var(--acento); }

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rojo);
  color: var(--blanco);
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--rojo-claro);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--blanco);
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  border-color: var(--acento);
  background: rgba(232,200,64,0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 0;
  animation: fadeInDown 0.8s ease 0.4s both;
}
.stat-item {
  display: flex;
  flex-direction: column;
  padding-right: 2rem;
}
.stat-num {
  font-family: var(--fuente-cond);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--acento);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 2rem;
  align-self: stretch;
}

/* Semáforo hero */
.hero-traffic-light {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-55%);
  z-index: 10;
  animation: fadeInRight 1s ease 0.5s both;
}

.tl-arm {
  width: 60px; height: 6px;
  background: #3a4a5a;
  position: absolute;
  left: -30px;
  top: 40px;
  border-radius: 3px;
}

.tl-pole {
  width: 12px;
  height: 280px;
  background: linear-gradient(180deg, #3a4a5a, #2a3540);
  margin: 0 auto;
  border-radius: 6px;
  position: relative;
}
.tl-pole::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -8px;
  width: 28px; height: 12px;
  background: #2a3540;
  border-radius: 6px;
}

.tl-housing {
  width: 70px;
  background: #1a1e28;
  border-radius: 12px;
  padding: 12px 10px;
  margin: 0 auto;
  position: relative;
  top: -20px;
  border: 2px solid #2a3040;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

.tl-visor {
  height: 8px;
  margin: 0 -2px;
  border-radius: 0 0 4px 4px;
  margin-bottom: 2px;
}
.v-red    { background: rgba(192,57,43,0.3); }
.v-yellow { background: rgba(232,160,32,0.3); }
.v-green  { background: rgba(39,174,96,0.3); }

.tl-bulb {
  width: 46px; height: 46px;
  border-radius: 50%;
  margin: 8px auto;
  background: #111;
  border: 2px solid #2a3040;
  transition: background 0.15s, box-shadow 0.15s;
}
.tl-bulb.on-red    { background: var(--rojo);    box-shadow: 0 0 20px var(--rojo), 0 0 40px rgba(192,57,43,0.4); }
.tl-bulb.on-yellow { background: var(--amarillo); box-shadow: 0 0 20px var(--amarillo), 0 0 40px rgba(232,160,32,0.4); }
.tl-bulb.on-green  { background: var(--verde);    box-shadow: 0 0 20px var(--verde), 0 0 40px rgba(39,174,96,0.4); }

/* ============================================================
   SEPARADOR CARRETERA
   ============================================================ */

.road-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: #14181f;
}

.rd-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--acento) 0, var(--acento) 20px, transparent 20px, transparent 35px);
  opacity: 0.4;
}

.rd-sign {
  background: var(--azul-dgt);
  color: var(--blanco);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-family: var(--fuente-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border: 2px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}

/* ============================================================
   ESTADO EN TIEMPO REAL
   ============================================================ */

.estado-section {
  background: var(--gris-oscuro);
  padding-bottom: 5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-top: 4rem;
}
.section-header.centered {
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding-top: 5rem;
}

.section-icon {
  width: 48px; height: 48px;
  background: rgba(232,200,64,0.1);
  border: 2px solid rgba(232,200,64,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-signal {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 10px var(--acento);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--acento); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px var(--acento), 0 0 35px rgba(232,200,64,0.3); }
}

.section-title {
  font-family: var(--fuente-cond);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header.centered .section-sub { justify-content: center; }

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--verde);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(39,174,96,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.estado-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.estado-card {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.2s, background 0.2s;
  animation: fadeInUp 0.6s ease both;
}
.estado-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.07); }

.estado-card:nth-child(1) { animation-delay: 0.05s; }
.estado-card:nth-child(2) { animation-delay: 0.1s; }
.estado-card:nth-child(3) { animation-delay: 0.15s; }
.estado-card:nth-child(4) { animation-delay: 0.2s; }

.card-green { border-left: 4px solid var(--verde); }
.card-yellow { border-left: 4px solid var(--amarillo); }
.card-red { border-left: 4px solid var(--rojo); }

.card-icon { flex-shrink: 0; }

.signal-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
}
.signal-icon.green  { background: var(--verde);    box-shadow: 0 0 12px rgba(39,174,96,0.5); }
.signal-icon.yellow { background: var(--amarillo); box-shadow: 0 0 12px rgba(232,160,32,0.5); animation: blinkYellow 1.5s ease-in-out infinite; }
.signal-icon.red    { background: var(--rojo);     box-shadow: 0 0 12px rgba(192,57,43,0.5); animation: blinkRed 1s ease-in-out infinite; }

@keyframes blinkYellow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes blinkRed {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(192,57,43,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 24px rgba(192,57,43,0.8); }
}

.card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.card-info p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.card-tag {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card-pulse {
  position: absolute;
  right: -15px; top: -15px;
  width: 60px; height: 60px;
  border-radius: 50%;
  opacity: 0.08;
  animation: cardPulse 3s ease-in-out infinite;
}
.green-pulse  { background: var(--verde); }
.yellow-pulse { background: var(--amarillo); }
.red-pulse    { background: var(--rojo); }

@keyframes cardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); opacity: 0.04; }
}

/* ============================================================
   SEMÁFOROS
   ============================================================ */

.semaforos-section {
  background: linear-gradient(180deg, var(--gris-oscuro) 0%, #101520 100%);
  padding-bottom: 5rem;
}

.semaforos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Mapa */
.mapa-container {
  position: relative;
}

.mapa-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1520 0%, #101a28 100%);
}

.mapa-label {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.78rem;
  font-family: var(--fuente-cond);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.mapa-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}

.nodo-semaforo {
  position: absolute;
  cursor: pointer;
  z-index: 5;
}
.nodo-semaforo:hover .nodo-tooltip { opacity: 1; visibility: visible; transform: translateY(-4px); }

.nodo-1 { top: 25%; left: 30%; }
.nodo-2 { top: 46%; left: 42%; }
.nodo-3 { top: 52%; left: 56%; }
.nodo-4 { top: 54%; left: 50%; }
.nodo-5 { top: 28%; left: 68%; }
.nodo-6 { top: 72%; left: 35%; }

.nodo-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  transition: transform 0.2s;
  cursor: pointer;
}
.nodo-semaforo:hover .nodo-dot { transform: scale(1.4); }

.green-dot  { background: var(--verde);    box-shadow: 0 0 10px rgba(39,174,96,0.7); }
.yellow-dot { background: var(--amarillo); box-shadow: 0 0 10px rgba(232,160,32,0.7); }
.red-dot    { background: var(--rojo);     box-shadow: 0 0 10px rgba(192,57,43,0.7); }

.pulse-anim { animation: nodePulse 2s ease-in-out infinite; }

@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.nodo-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(10,15,25,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  line-height: 1.5;
  pointer-events: none;
}
.nodo-tooltip strong { color: var(--acento); }

/* Lista de semáforos */
.semaforos-lista {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.lista-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lista-titulo {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.lista-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.lista-items {
  max-height: 290px;
  overflow-y: auto;
}
.lista-items::-webkit-scrollbar { width: 4px; }
.lista-items::-webkit-scrollbar-track { background: transparent; }
.lista-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.lista-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.lista-item:hover { background: rgba(255,255,255,0.04); }
.lista-item-highlight { background: rgba(232,160,32,0.05); }
.lista-item-alert { background: rgba(192,57,43,0.07); }

.item-light {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.green-light  { background: var(--verde);    box-shadow: 0 0 6px rgba(39,174,96,0.6); }
.yellow-light { background: var(--amarillo); box-shadow: 0 0 6px rgba(232,160,32,0.6); }
.red-light    { background: var(--rojo);     box-shadow: 0 0 6px rgba(192,57,43,0.6); }

.blink { animation: dotBlink 1s ease-in-out infinite; }
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.item-info {
  flex: 1;
  min-width: 0;
}
.item-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-info span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.item-badge {
  font-family: var(--fuente-cond);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.badge-ok    { background: rgba(39,174,96,0.15);  color: var(--verde-claro); }
.badge-warn  { background: rgba(232,160,32,0.15); color: var(--amarillo); }
.badge-alert { background: rgba(192,57,43,0.15);  color: #e74c3c; }

.lista-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.lista-footer strong { color: rgba(255,255,255,0.55); }

/* ============================================================
   PUENTE DEL MILENIO
   ============================================================ */

.puente-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(180deg, #101520 0%, #0d1a2e 100%);
  overflow: hidden;
}

.puente-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
}

.puente-illustration {
  width: 100%;
  opacity: 0.5;
}

.bridge-svg {
  width: 100%;
  display: block;
}

.bridge-light {
  animation: bridgeLight 2.5s ease-in-out infinite;
}
@keyframes bridgeLight {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.6; filter: brightness(0.7); }
}

.water-wave {
  animation: waterWave 4s ease-in-out infinite;
}
@keyframes waterWave {
  0%, 100% { d: path("M0 230 Q100 220 200 230 Q300 240 400 230 Q500 220 600 230 Q700 240 800 230 Q850 225 900 230 L900 300 L0 300Z"); }
  50% { d: path("M0 235 Q100 228 200 235 Q300 242 400 235 Q500 228 600 235 Q700 242 800 235 Q850 230 900 235 L900 300 L0 300Z"); }
}

.bc-1 { animation: bridgeCar1 7s linear infinite; }
.bc-2 { animation: bridgeCar2 10s linear infinite 4s; }

@keyframes bridgeCar1 {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(960px); }
}
@keyframes bridgeCar2 {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(960px); }
}

.puente-content {
  position: relative;
  z-index: 10;
}

.puente-info-card {
  max-width: 680px;
  background: rgba(10, 18, 32, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.puente-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.puente-icon {
  width: 56px; height: 56px;
  background: rgba(232,160,32,0.1);
  border: 2px solid rgba(232,160,32,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.puente-title {
  font-family: var(--fuente-cond);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.puente-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.puente-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.8rem;
}

.puente-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
}

.pstat {
  text-align: center;
}
.pstat-num {
  display: block;
  font-family: var(--fuente-cond);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--acento);
}
.pstat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 0.2rem;
}

.puente-estado-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.estado-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.estado-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 500;
}
.yellow-indicator {
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--amarillo);
}
.yellow-indicator .indicator-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amarillo);
  animation: dotBlink 1s ease-in-out infinite;
}

/* ============================================================
   INCIDENCIAS
   ============================================================ */

.incidencias-section {
  background: var(--gris-oscuro);
  padding-bottom: 5rem;
}

.incidencias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.incidencia-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  transition: transform 0.2s, background 0.2s;
  animation: fadeInUp 0.6s ease both;
}
.incidencia-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}

.inc-sign { flex-shrink: 0; }

.sign-triangle {
  width: 60px; height: 52px;
  background: var(--amarillo);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  color: #1a1a1a;
}

.sign-circle {
  width: 54px; height: 54px;
  background: var(--azul-claro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blanco);
  border: 3px solid rgba(255,255,255,0.3);
}

.sign-octagon {
  width: 58px; height: 58px;
  background: var(--rojo);
  clip-path: polygon(30% 0%,70% 0%,100% 30%,100% 70%,70% 100%,30% 100%,0% 70%,0% 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--blanco);
  letter-spacing: 0.05em;
}

.inc-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.inc-body p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.inc-tag {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.inc-urgent {
  color: #e74c3c !important;
  font-weight: 700 !important;
  animation: textBlink 1.5s ease-in-out infinite;
}
@keyframes textBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
   BANDA DE SEÑALES
   ============================================================ */

.road-signs-band {
  background: linear-gradient(90deg, #0d1520, #111826, #0d1520);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.rsign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeInUp 0.6s ease both;
}
.rsign p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.speed-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blanco);
  border: 5px solid var(--rojo);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #111;
}

.priority-triangle {
  width: 0; height: 0;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 56px solid var(--blanco);
  position: relative;
}
.priority-triangle::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -26px;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 46px solid var(--rojo);
}

.ped-square {
  width: 58px; height: 58px;
  background: var(--azul-dgt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--blanco);
}

.ped-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pf-head {
  width: 10px; height: 10px;
  background: var(--blanco);
  border-radius: 50%;
}
.pf-body {
  width: 6px; height: 12px;
  background: var(--blanco);
  border-radius: 2px;
}
.pf-legs {
  display: flex;
  gap: 3px;
}
.pf-leg {
  width: 4px; height: 10px;
  background: var(--blanco);
  border-radius: 2px;
  transform: skewX(10deg);
}
.pf-leg:first-child { transform: skewX(-15deg); }

.roundabout-sign {
  width: 60px; height: 60px;
  background: var(--blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--azul-dgt);
}

.no-entry-circle {
  width: 60px; height: 60px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--blanco);
}
.ne-bar {
  width: 36px; height: 8px;
  background: var(--blanco);
  border-radius: 4px;
}

/* ============================================================
   CONTACTO
   ============================================================ */

.contacto-section {
  background: linear-gradient(180deg, var(--gris-oscuro) 0%, #0d1520 100%);
  padding: 5rem 0;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contacto-info h2 {
  font-family: var(--fuente-cond);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0.5rem;
  line-height: 1.1;
}
.contacto-info h3 {
  font-family: var(--fuente-cond);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--acento);
  line-height: 1;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.cd-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.cd-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.cd-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blanco);
}
.cd-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.contacto-emergency {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 0.5rem;
}
.emergency-sign {
  width: 52px; height: 52px;
  background: var(--rojo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-cond);
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
  animation: emergencyPulse 2s ease-in-out infinite;
}
@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
}
.contacto-emergency strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e74c3c;
  margin-bottom: 0.2rem;
}
.contacto-emergency span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.contacto-form-area h3 {
  font-family: var(--fuente-cond);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  color: var(--blanco);
  font-family: var(--fuente);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group select option {
  background: #1a2030;
  color: var(--blanco);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--acento);
  background: rgba(255,255,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-dgt);
  color: var(--blanco);
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.03em;
  font-family: var(--fuente);
}
.btn-form:hover {
  background: var(--azul-medio);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem;
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 10px;
}
.form-success.visible { display: block; animation: fadeInUp 0.5s ease; }
.success-icon {
  width: 50px; height: 50px;
  background: var(--verde);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blanco);
  margin: 0 auto 1rem;
}
.form-success p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #080d14;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-road {
  height: 32px;
  background: #111520;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fr-markings {
  display: flex;
  gap: 40px;
  animation: roadScroll 2s linear infinite;
}
.fr-markings span {
  display: block;
  width: 40px; height: 4px;
  background: rgba(232,200,64,0.4);
  border-radius: 2px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo > div:last-child {
  display: flex;
  flex-direction: column;
}
.footer-logo span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.footer-logo span:first-child { color: rgba(255,255,255,0.75); font-weight: 600; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  text-align: right;
}
.footer-copy p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* ============================================================
   ANIMACIONES GENERALES
   ============================================================ */

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px) translateY(-55%); }
  to   { opacity: 1; transform: translateX(0) translateY(-55%); }
}

/* Animación de entrada al scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .semaforos-layout { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .puente-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-traffic-light { display: none; }
  .hero-content { padding-left: 2rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(16,20,32,0.98);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { display: none; }
  .road-signs-band { gap: 2rem; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
  .footer-links { justify-content: center; }
}
