/* ============================================================
   TRANSPORTE D TODO — Hoja de marca compartida
   ------------------------------------------------------------
   Este es el UNICO lugar donde se define la identidad visual
   (colores, tipografia, logo, botones). Si en el futuro cambian
   el logo o los colores de la empresa, se edita SOLO este archivo
   y toda la plataforma se actualiza sola.
   ============================================================ */

/* Tipografia profesional (con respaldo del sistema si no hay internet). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* --- Colores de marca (cambiar aqui para re-brandear) --- */
  --marca:        #0a2540;   /* Azul marino profundo (confianza) */
  --marca-2:      #123a6b;   /* Azul marino intermedio */
  --azul:         #1b6ef3;   /* Azul de accion */
  --acento:       #ff6a00;   /* Naranja (energia, "en movimiento") */
  --acento-suave: #fff1e7;

  /* --- Estados --- */
  --ok:      #16a34a;
  --ok-bg:   #dcfce7;
  --alerta:  #dc2626;
  --alerta-bg: #fee2e2;

  /* --- Neutros --- */
  --fondo:    #f4f7fb;
  --superficie: #ffffff;
  --tinta:    #0f172a;
  --tinta-2:  #475569;
  --tenue:    #94a3b8;
  --borde:    #e2e8f0;

  /* --- Formas --- */
  --radio:     16px;
  --radio-sm:  12px;
  --radio-lg:  24px;
  --sombra:    0 6px 24px rgba(10, 37, 64, .08);
  --sombra-lg: 0 18px 50px rgba(10, 37, 64, .16);

  --fuente: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ancho: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  color: var(--tinta);
  background: var(--fondo);
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   LOGO / MARCA
   ============================================================ */
.marca-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.marca-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--azul), var(--marca));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(27, 110, 243, .35);
  flex-shrink: 0;
}
.marca-badge svg { width: 24px; height: 24px; }
/* Logotipo oficial en vector (public/logo-transporte.svg). */
.marca-img { display: block; height: 48px; width: auto; }
.marca-logo .marca-img { height: 56px; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca-texto .m1 {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tenue); font-weight: 600;
}
.marca-texto .m2 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.marca-texto .m2 b { color: var(--acento); }

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.topbar .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--tinta-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--azul); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-size: 1rem; font-weight: 700; font-family: var(--fuente);
  border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform .08s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-acento { background: var(--acento); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 0, .35); }
.btn-acento:hover { box-shadow: 0 10px 26px rgba(255, 106, 0, .45); }
.btn-marca { background: var(--marca); color: #fff; }
.btn-marca:hover { background: var(--marca-2); }
.btn-azul { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(27,110,243,.3); }
.btn-azul:hover { background: #1560d8; }
.btn-fantasma { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-fantasma:hover { background: rgba(255,255,255,.12); }
.btn-claro { background: #fff; color: var(--marca); box-shadow: var(--sombra); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ============================================================
   SECCIONES GENERICAS
   ============================================================ */
.seccion { padding: 72px 0; }
.seccion-titulo { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.seccion-titulo .eyebrow {
  color: var(--azul); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px;
}
.seccion-titulo h2 { font-size: 2rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.seccion-titulo p { color: var(--tinta-2); font-size: 1.05rem; margin: 0; }

/* ============================================================
   PIE DE PAGINA
   ============================================================ */
.footer {
  background: var(--marca); color: #cbd5e1;
  padding: 56px 0 28px; margin-top: 40px;
}
.footer .cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer .marca-texto .m1 { color: #93a7c4; }
.footer .marca-texto .m2 { color: #fff; }
.footer p { color: #93a7c4; font-size: .92rem; margin: 14px 0 0; max-width: 320px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer a { color: #cbd5e1; text-decoration: none; display: block; margin-bottom: 10px; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; color: #7f96b5; font-size: .85rem; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 760px) {
  .footer .cols { grid-template-columns: 1fr; gap: 26px; }
}

/* Enlace discreto para volver (vistas internas). */
.volver { display: inline-flex; align-items: center; gap: 6px;
  color: var(--tinta-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.volver:hover { color: var(--azul); }

/* ============================================================
   ICONOS EN LINEA (reemplazan a los emojis, look profesional)
   ============================================================ */
.ico-linea { display: inline-flex; vertical-align: middle; }
.ico-linea svg { width: 1.05em; height: 1.05em; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico-linea svg { width: 18px; height: 18px; }

/* Punto "en vivo" con pulso suave */
.dot-vivo { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulso 1.8s infinite; }
@keyframes pulso {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
