/* ==========================================================
   EXPRESO ALVEAR SUR — HOJA DE ESTILOS ÚNICA
   Reemplaza: style.css + sucursal.css + servicios + panel
   ----------------------------------------------------------
   1. Variables
   2. Reset y base
   3. Navbar
   4. Botones
   5. Botón y popup de soporte
   6. Hero (index y servicios)
   7. Secciones del index (nosotros, app, sucursales)
   8. Servicios
   9. Footer
   10. Modales de login
   11. Panel de cliente
   12. Accesibilidad
   13. Responsive
========================================================== */


/* ==========================================================
   1. VARIABLES
========================================================== */
:root {
  --marca: #009ee3;          /* celeste corporativo */
  --marca-oscuro: #0079b0;
  --marino: #0b2a4a;         /* fondos oscuros */
  --marino-profundo: #071c33;
  --claro: #f3f7fa;          /* fondos claros */
  --blanco: #ffffff;
  --texto: #1c2b39;          /* texto sobre fondo claro */
  --texto-suave: #5a6b7b;
  --whatsapp: #25d366;       /* SOLO botones de WhatsApp */
  --whatsapp-hover: #1ebe5d;
  --ok: #27c77a;
  --error: #e5484d;

  --radio: 12px;
  --radio-chico: 8px;
  --sombra: 0 10px 30px rgba(7, 28, 51, 0.12);

  --fuente: "Barlow", "Segoe UI", Arial, sans-serif;
  --alto-navbar: 90px;
}


/* ==========================================================
   2. RESET Y BASE
========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente);
  color: var(--blanco);
  line-height: 1.6;
  background: var(--marino);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

img {
  max-width: 100%;
}

/* Que los anclajes no queden tapados por la navbar fija */
section[id] {
  scroll-margin-top: var(--alto-navbar);
}


/* ==========================================================
   3. NAVBAR
   Semitransparente sobre el hero; con la clase .navbar--solid
   (se agrega por JS al hacer scroll) pasa a marino sólido.
========================================================== */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(11, 42, 74, 0.55);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar--solid {
  background: rgba(11, 42, 74, 0.97);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.logo img {
  height: 60px;
  display: block;
  transition: height 0.3s ease;
}

.navbar--solid .logo img {
  height: 50px;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--blanco);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--marca);
  transition: width 0.3s ease;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
  width: 100%;
}

.navbar nav a.active {
  color: var(--marca);
}


/* ==========================================================
   4. BOTONES
========================================================== */
.btn,
.btn-hero,
.btn-app {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--blanco);
  background: transparent;
  color: var(--blanco);
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radio-chico);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover,
.btn-hero:hover,
.btn-app:hover {
  background: var(--blanco);
  color: var(--marino);
}

.btn-hero--primario {
  background: var(--marca);
  border-color: var(--marca);
}

.btn-hero--primario:hover {
  background: var(--marca-oscuro);
  border-color: var(--marca-oscuro);
  color: var(--blanco);
}

.btn-whatsapp {
  display: inline-block;
  padding: 12px 26px;
  background: var(--whatsapp);
  color: var(--blanco);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radio-chico);
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-whatsapp i {
  margin-right: 6px;
}


/* ==========================================================
   5. BOTÓN Y POPUP DE SOPORTE
========================================================== */
.whatsapp-support {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--whatsapp);
  color: var(--blanco);
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, background 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-support i {
  font-size: 20px;
}

.whatsapp-support:hover {
  transform: scale(1.08);
  background: var(--whatsapp-hover);
}

@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.soporte-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 10000;
  background: rgba(7, 28, 51, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 16px 14px;
  width: 230px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  animation: popupIn 0.2s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.soporte-popup__title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.soporte-popup__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.soporte-popup__close:hover {
  color: var(--blanco);
}

.soporte-opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 8px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--blanco);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.soporte-opcion:last-child {
  margin-bottom: 0;
}

.soporte-opcion i {
  font-size: 16px;
  flex-shrink: 0;
}

.soporte-opcion--pagina {
  background: rgba(0, 158, 227, 0.15);
  border: 1px solid rgba(0, 158, 227, 0.35);
}
.soporte-opcion--pagina:hover { background: rgba(0, 158, 227, 0.28); }
.soporte-opcion--pagina i { color: var(--marca); }

.soporte-opcion--envios {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.soporte-opcion--envios:hover { background: rgba(37, 211, 102, 0.25); }
.soporte-opcion--envios i { color: var(--whatsapp); }


/* ==========================================================
   6. HERO
   El degradé oscurece solo la parte baja, donde va el texto,
   y deja ver el camión y la sucursal.
========================================================== */
.hero-index,
.hero-servicios {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background:
    linear-gradient(180deg, rgba(11, 42, 74, 0.30) 0%, rgba(7, 28, 51, 0.80) 100%),
    url('../img/camion1.webp') center / cover no-repeat;
}

.hero-index {
  min-height: 100vh;
  padding-top: var(--alto-navbar);
}

.hero-servicios {
  height: 360px;
  padding-top: var(--alto-navbar);
}

.hero-overlay h1 {
  color: var(--blanco);
  font-size: 52px;
  margin-bottom: 15px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-servicios .hero-overlay h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-overlay p {
  color: #e6edf3;
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-servicios .hero-overlay p {
  font-size: 18px;
  margin-bottom: 0;
}

.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.hero-overlay .hero-ayuda {
  margin: 18px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-ayuda a {
  color: var(--blanco);
  font-weight: 600;
}


/* ==========================================================
   7. SECCIONES DEL INDEX
   Ritmo: hero (foto) → nosotros (claro) → app (celeste)
          → sucursales (blanco) → footer (marino)
========================================================== */
.section {
  padding: 100px 10%;
  text-align: center;
}

.section h2 {
  font-size: 34px;
  margin-bottom: 40px;
}

/* ---------- NOSOTROS (claro) ---------- */
.nosotros {
  background: var(--claro);
  color: var(--texto);
  text-align: left;
}

.contenido-nosotros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nosotros .texto {
  flex: 1;
  min-width: 280px;
}

.nosotros .texto h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: var(--marino);
}

.nosotros .texto p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--texto-suave);
  max-width: 34em;
}

.nosotros-anios {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--marca);
  margin-bottom: 12px;
}

.nosotros .texto p + p {
  margin-top: 16px;
}

.nosotros .imagen {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nosotros .imagen img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* ---------- APP (celeste de marca) ---------- */
.app-section {
  padding: 100px 10%;
  background: linear-gradient(135deg, var(--marca) 0%, var(--marca-oscuro) 100%);
}

.app-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.app-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.app-image img {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  filter: drop-shadow(0 20px 30px rgba(7, 28, 51, 0.35));
}

.app-info {
  flex: 1;
  max-width: 500px;
}

.app-info h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.app-info p {
  font-size: 18px;
  margin-bottom: 10px;
}

.app-funciones {
  list-style: none;
  padding: 0;
  margin: 12px 0 26px;
  font-size: 17px;
  line-height: 2;
}

.app-funciones i {
  width: 24px;
  opacity: 0.9;
}

.btn-app i {
  margin-right: 6px;
}

.app-info .app-nota {
  font-size: 14px;
  opacity: 0.85;
  margin: 12px 0 0;
}

/* ---------- SUCURSALES (blanco) ---------- */
#sucursales {
  padding: 90px 5%;
  background: var(--blanco);
  color: var(--texto);
  text-align: center;
}

#sucursales h2 {
  font-size: 34px;
  margin-bottom: 50px;
  color: var(--marino);
}

.sucursales-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.sucursal-card {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid #dde7ef;
  box-shadow: var(--sombra);
  text-align: left;
}

.sucursal-card h3 {
  color: var(--marino);
  padding: 18px 20px 14px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 3px solid var(--marca);
}

.sucursal-card iframe {
  width: 100%;
  height: 250px;
  border: none;
  display: block;
}

/* Teléfono + WhatsApp debajo de cada mapa */
.sucursal-contacto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px 20px;
}

.sucursal-card .sucursal-telefono {
  padding: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--texto);
}

/* Para cuando agregues dirección / horario debajo del mapa */
.sucursal-card p {
  padding: 0 20px;
  margin: 14px 0;
  font-size: 15px;
  color: var(--texto-suave);
}

/* ==========================================================
   8. SERVICIOS
========================================================== */
.servicios-section {
  padding: 90px 20px;
  background: var(--claro);
  color: var(--texto);
}

.container {
  max-width: 1200px;
  margin: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--blanco);
  padding: 30px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  border-top: 4px solid var(--marca);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(7, 28, 51, 0.18);
}

.card h3 {
  font-size: 21px;
  margin-bottom: 15px;
  color: var(--marino);
}

.card p {
  font-size: 15px;
  color: var(--texto-suave);
  line-height: 1.6;
}


.card-icono {
  display: block;
  font-size: 28px;
  color: var(--marca);
  margin-bottom: 16px;
}

/* ---------- Bloques de la página de servicios ---------- */
.servicios-bloque {
  padding: 90px 20px;
  text-align: center;
}

.servicios-bloque h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.servicios-bloque--blanco { background: var(--blanco); color: var(--texto); }
.servicios-bloque--claro  { background: var(--claro);  color: var(--texto); }
.servicios-bloque--marca  { background: linear-gradient(135deg, var(--marca) 0%, var(--marca-oscuro) 100%); }
.servicios-bloque--marino { background: var(--marino); }

.servicios-bloque--blanco h2,
.servicios-bloque--claro h2 { color: var(--marino); }

.container--angosto {
  max-width: 760px;
}

.bloque-intro {
  font-size: 18px;
  max-width: 36em;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.bloque-nota {
  font-size: 16px;
  margin-top: 28px;
  opacity: 0.85;
}

/* Cómo enviar */
.pasos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.paso-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--marca);
  color: var(--blanco);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.paso h3 {
  font-size: 20px;
  color: var(--marino);
  margin-bottom: 8px;
}

.paso p {
  color: var(--texto-suave);
  max-width: 22em;
  margin: 0 auto;
}

/* Qué no se puede enviar */
.lista-no {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  text-align: left;
}

.lista-no li {
  background: var(--blanco);
  border: 1px solid #dde7ef;
  border-radius: var(--radio-chico);
  padding: 14px 18px;
  font-weight: 500;
}

.lista-no i {
  color: var(--error);
  margin-right: 10px;
}

/* Cobertura */
.ruta {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  margin: 30px auto 0;
}

.ruta-parada {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}

.ruta-parada i {
  font-size: 30px;
}

.ruta-linea {
  flex: 1;
  height: 0;
  border-top: 3px dashed rgba(255, 255, 255, 0.7);
  margin: 0 16px 30px;
  min-width: 30px;
}

/* Preguntas frecuentes */
.faq {
  text-align: left;
  margin-top: 30px;
}

.faq details {
  border-bottom: 1px solid #dde7ef;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--marino);
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--marca);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 20px;
  color: var(--texto-suave);
}

.faq a {
  color: var(--marca-oscuro);
  font-weight: 600;
}

/* Cotizar */
.cotizar-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================
   9. FOOTER (páginas que usan <footer>)
========================================================== */
footer {
  background: var(--marino-profundo);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: inherit;
}

footer p {
  margin: 0;
}


/* ==========================================================
   10. MODALES DE LOGIN
========================================================== */
.login-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(7, 28, 51, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.login-box {
  background: rgba(11, 42, 74, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 40px;
  border-radius: 14px;
  width: 360px;
  max-width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
  margin-bottom: 25px;
  font-size: 26px;
}

.login-box h3 {
  margin-bottom: 18px;
  font-size: 19px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radio-chico);
  color: var(--blanco);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.login-box input:focus {
  border-color: var(--marca);
}

.login-box input::placeholder {
  color: #9fb0c0;
}

.btn-login {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 2px solid var(--marca);
  background: var(--marca);
  color: var(--blanco);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radio-chico);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.btn-login:hover {
  background: var(--marca-oscuro);
  border-color: var(--marca-oscuro);
}

.btn-volver {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radio-chico);
  color: #c9d4de;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-volver:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanco);
}

.close-login {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.close-login:hover {
  color: var(--blanco);
}

.recuperar {
  margin-top: 15px;
  font-size: 14px;
}

.recuperar a {
  color: #c9d4de;
  text-decoration: none;
}

.recuperar a:hover {
  text-decoration: underline;
}

.error-login {
  background: var(--error);
  color: var(--blanco);
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 14px;
}


/* ==========================================================
   11. PANEL DE CLIENTE
========================================================== */
.panel-principal {
  padding-top: 100px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--marino) 0%, var(--marino-profundo) 100%);
}

/* ---------- Bienvenida ---------- */
.panel-bienvenida {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px 8%;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bienvenida-saludo {
  font-size: 14px;
  color: #9fb0c0;
  margin-bottom: 4px;
}

.bienvenida-nombre {
  font-size: 26px;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 4px;
}

.bienvenida-id {
  font-size: 13px;
  color: #8397aa;
}

.bienvenida-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 20px;
  min-width: 80px;
}

.stat-chip--blue {
  background: rgba(0, 158, 227, 0.1);
  border-color: rgba(0, 158, 227, 0.3);
}

.stat-chip--green {
  background: rgba(39, 199, 122, 0.1);
  border-color: rgba(39, 199, 122, 0.3);
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: #9fb0c0;
  white-space: nowrap;
  margin-top: 2px;
}

/* Contadores que funcionan como filtro */
button.stat-chip {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

button.stat-chip:hover {
  transform: translateY(-2px);
}

.stat-chip.is-activo {
  border-color: var(--blanco);
  box-shadow: 0 0 0 1px var(--blanco) inset;
}

/* ---------- Estructura ---------- */
.panel-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 30px 8%;
  align-items: start;
}

.panel-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radio);
  padding: 20px;
}

.aside-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 14px;
}

.aside-card__desc {
  font-size: 13px;
  color: #9fb0c0;
  margin-bottom: 14px;
  line-height: 1.5;
}

.aside-msg {
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 10px;
  color: #9fb0c0;
}

.aside-msg--ok     { color: var(--ok); }
.aside-msg--error  { color: #ff6b6b; }
.aside-msg--aviso  { color: #f0a030; }
.aside-msg--centro { text-align: center; margin-top: 10px; margin-bottom: 0; }

/* ---------- Buscador ---------- */
.buscador-wrap {
  display: flex;
  gap: 8px;
}

.buscador-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radio-chico);
  color: var(--blanco);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.buscador-input::placeholder { color: #7f93a6; }
.buscador-input:focus { border-color: var(--marca); }

.buscador-btn {
  padding: 10px 14px;
  background: var(--marca);
  border: none;
  border-radius: var(--radio-chico);
  color: var(--blanco);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.buscador-btn:hover { background: var(--marca-oscuro); }

/* ---------- Botones del panel ---------- */
.btn-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--blanco);
  background: transparent;
  color: var(--blanco);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radio-chico);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.btn-panel:hover {
  background: var(--blanco);
  color: var(--marino);
}

.btn-panel--secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #c9d4de;
  padding: 8px 16px;
  margin-top: 12px;
}

.btn-panel--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
}

/* ---------- Datos personales ---------- */
.datos-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.datos-fila {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #dbe3ea;
}

.datos-fila i {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  opacity: 0.6;
}

.datos-fila span {
  overflow-wrap: anywhere;
}

/* ---------- Guías ---------- */
.panel-guias {
  min-width: 0;
}

.guias-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.guias-header h2 {
  font-size: 22px;
  color: var(--blanco);
}

.guias-total {
  font-size: 12px;
  color: #9fb0c0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

.guias-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guias-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 50px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  text-align: center;
}

.guias-empty[hidden] {
  display: none;
}

.guias-empty i {
  font-size: 34px;
  opacity: 0.6;
}

.guia-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.guia-card:hover {
  transform: translateY(-2px);
  border-color: var(--marca);
  background: rgba(0, 158, 227, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.guia-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guia-card__numero {
  font-size: 15px;
  font-weight: 600;
  color: var(--blanco);
  margin: 0 0 3px;
}

.guia-card__cliente {
  font-size: 13px;
  color: #9fb0c0;
  margin: 0;
}

.guia-card__fecha {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #8397aa;
  margin: 0;
}

.guia-card__fecha i { opacity: 0.6; }

/* ---------- Estados ---------- */
.guia-estado {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.estado--entregado {
  background: rgba(39, 199, 122, 0.12);
  color: var(--ok);
  border: 1px solid rgba(39, 199, 122, 0.3);
}

.estado--transito {
  background: rgba(0, 158, 227, 0.12);
  color: var(--marca);
  border: 1px solid rgba(0, 158, 227, 0.3);
}

/* ---------- Modal del tracker ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 28, 51, 0.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[style*="display: flex"],
.modal[style*="display:flex"] {
  display: flex !important;
}

.modal-content {
  position: relative;
  background: rgba(11, 42, 74, 0.97);
  color: var(--blanco);
  width: 90%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radio);
  border: 1px solid rgba(255, 255, 255, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.modal-content .close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #c9d4de;
  background: none;
  border: none;
  z-index: 10;
  float: none;
  transition: color 0.2s;
}

.modal-content .close:hover { color: var(--blanco); }

/* ---------- Modal de datos ---------- */
.modal-datos__box {
  background: rgba(7, 28, 51, 0.97) !important;
  padding: 28px 28px 24px !important;
  max-width: 420px !important;
}

.modal-datos__titulo {
  font-size: 20px;
  margin-bottom: 20px;
}

.closeDatos {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  line-height: 1;
  color: #c9d4de;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.closeDatos:hover { color: var(--blanco); }

.btn-panel--bloque {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.btn-panel:disabled {
  opacity: 0.6;
  cursor: wait;
}

.datos-label small {
  color: #9fb0c0;
  font-weight: 400;
}

.datos-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #9fb0c0;
  margin-bottom: 6px;
}

.datos-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radio-chico);
  color: var(--blanco);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.datos-input::placeholder { color: #7f93a6; }
.datos-input:focus { border-color: var(--marca); }

.datos-tel-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.datos-tel-prefix {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: var(--radio-chico) 0 0 var(--radio-chico);
  font-size: 14px;
  color: #9fb0c0;
  white-space: nowrap;
}

.datos-input--tel {
  border-radius: 0 var(--radio-chico) var(--radio-chico) 0;
  margin-bottom: 0;
}

/* Tabla legacy (por compatibilidad) */
.tabla-eventos { display: none; }

/* Tracker SVG */
#track-svg { display: block; overflow: visible; }

#eventos-list {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
#eventos-list::-webkit-scrollbar { width: 3px; }
#eventos-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}


/* ==========================================================
   12. ACCESIBILIDAD
========================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.whatsapp-support:focus-visible {
  outline: 2px solid var(--marca);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================
   13. RESPONSIVE
========================================================== */
@media (max-width: 992px) {
  :root { --alto-navbar: 150px; }

  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 15px 5%;
  }

  .navbar nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav a {
    margin: 6px 12px;
  }

  .section,
  .app-section {
    padding: 80px 5%;
  }

  .nosotros {
    text-align: center;
  }

  .nosotros .texto p {
    margin-left: auto;
    margin-right: auto;
  }

  .contenido-nosotros {
    flex-direction: column;
    gap: 30px;
  }

  .app-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

}

@media (max-width: 960px) {
  .panel-body {
    grid-template-columns: 1fr;
    padding: 20px 5%;
  }

  .panel-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
  }

  .panel-bienvenida {
    padding: 24px 5%;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-overlay h1 { font-size: 34px; }
  .hero-overlay p { font-size: 17px; }
  .hero-servicios .hero-overlay h1 { font-size: 30px; }
  .app-image img { max-width: 260px; }

  .section h2,
  #sucursales h2,
  .nosotros .texto h2,
  .app-info h2 { font-size: 28px; }

  .panel-aside {
    grid-template-columns: 1fr;
  }

  .servicios-bloque h2 { font-size: 28px; }

  .ruta {
    flex-direction: column;
  }

  .ruta-linea {
    flex: none;
    width: 0;
    height: 40px;
    min-width: 0;
    border-top: 0;
    border-left: 3px dashed rgba(255, 255, 255, 0.7);
    margin: 10px 0;
  }

  .bienvenida-stats {
    width: 100%;
    justify-content: space-between;
  }

  .stat-chip {
    flex: 1;
  }

  .modal-content {
    max-height: 88vh;
  }
}