/* ==========================================================================
   Track & Trace · eCMR — estilos del bloque
   Depende de Bootstrap 5 (grid + utilidades) ya cargado en el tema.
   Todo queda ámbito bajo .tt-ecmr para no chocar con el resto del tema.
   ========================================================================== */

.tt-ecmr {
  --tt-navy: #0a2f6b;
  --tt-navy-2: #003da6;
  --tt-blue: #003da6;
  --tt-blue-soft: #eaf1fd;
  --tt-blue-soft-2: #c7d4ee;
  --tt-blue-muted: #adbde0;
  --tt-blue-muted-2: #8fa0c9;
  --tt-bg-soft: #f4f8ff;
  --tt-border: #e3e7ee;
  --tt-text: #141c2b;
  --tt-text-muted: #5b6472;
  --tt-green: #1c9d63;
  --tt-green-bg: #e6f7ee;
  --tt-green-bright: #26e07f;
  --tt-green-bright-text: #7dffb0;
  --tt-red: #d6455a;
  --tt-yellow: #ffd166;
  --tt-shadow-navy: rgba(10, 47, 107, .45);
  --tt-shadow-blue: rgba(26, 79, 214, .25);
  --tt-radius-lg: 22px;
  --tt-radius-md: 16px;
  --tt-radius-sm: 12px;

  font-family: 'Roboto Condensed', sans-serif;
  color: var(--tt-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.tt-ecmr a { text-decoration: none; }
.tt-ecmr img { max-width: 100%; display: block; }

/* Ancho de página (equivalente al max-width:1180px del diseño original).
   Se usa junto con .row/.col-* de Bootstrap para el grid. */
.tt-wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
}
@media (max-width: 575.98px) {
  .tt-wrap { padding-inline: 20px; }
}

/* .tt-section { padding-block: clamp(56px, 9vw, 88px); } */
.tt-section-navy { background: var(--tt-navy); color: #fff; }
.tt-section-soft { background: var(--tt-bg-soft); }

/* Tipografía --------------------------------------------------------- */
.tt-ecmr h1,
.tt-ecmr h2,
.tt-ecmr h3,
.tt-ecmr .tt-font-heading {
  font-family: 'Roboto Condensed', sans-serif;
  /* font-weight: 800; */
}

.tt-h1 {
  /* font-size: clamp(30px, 3.6vw, 42px); */
  font-weight: 800;
  /* line-height: 1.15; */
  color: var(--tt-navy);
  margin-bottom: 18px;
}
.tt-h2 {
  /* font-size: clamp(24px, 2.6vw, 32px); */
  font-weight: 800;
  /* line-height: 1.2; */
  color: var(--tt-navy);
  margin-bottom: 16px;
}
/* .tt-h2--sm { font-size: clamp(22px, 2.2vw, 30px); } */
.tt-section-navy .tt-h2,
.tt-section-navy .tt-h1 { color: #fff; }

.tt-lead { font-size: 17px; color: var(--tt-text-muted); }
.tt-section-navy .tt-lead { color: var(--tt-blue-soft-2); }
.tt-text-accent { color: var(--tt-blue); }
.tt-text-muted { color: var(--tt-text-muted); }
.tt-text-light-blue { color: var(--tt-blue-soft-2); }
.tt-text-yellow { color: var(--tt-yellow); }
.tt-quote {
  /* font-family: 'Poppins', sans-serif; */
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--tt-blue);
  margin-top: 22px;
}

/* Botones ------------------------------------------------------------- */
.tt-btn-primary {
  background: var(--tt-blue);
  color: #fff !important;
  border: none;
  box-shadow: 0 10px 24px var(--tt-shadow-blue);
}
.tt-btn-primary:hover { background: var(--tt-navy-2); color: #fff; }

.tt-link-underline {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--tt-blue);
  border-bottom: 2px solid var(--tt-blue-soft);
  padding-bottom: 2px;
}

/* ------------------------------------------------------------------ */
/* HERO                                                                */
/* ------------------------------------------------------------------ */
.tt-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(26, 79, 214, .1), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(26, 79, 214, .08), transparent 45%),
    #fff;
}

.tt-hero-visual { position: relative; }

.tt-hero-card {
  background: linear-gradient(160deg, var(--tt-navy), var(--tt-blue));
  border-radius: var(--tt-radius-lg);
  padding: 22px;
  box-shadow: 0 30px 60px -20px var(--tt-shadow-navy);
}
.tt-hero-card-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  display: inline-block;
}
.tt-hero-card-inner {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
}

.tt-floating-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 16px 34px rgba(10, 47, 107, .18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tt-text);
}
.tt-floating-badge--top-right { top: -18px; right: -20px; }
.tt-floating-badge--bottom-left { bottom: -16px; left: -24px; }
.tt-floating-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tt-floating-icon--green { background: var(--tt-green-bg); color: var(--tt-green); }
.tt-floating-icon--blue { background: var(--tt-blue-soft); color: var(--tt-blue); }

@media (max-width: 575.98px) {
  .tt-floating-badge { position: static; margin-top: 12px; display: inline-flex; }
  .tt-floating-badge--bottom-left { margin-left: 8px; }
}

/* Franja legal --------------------------------------------------------- */
.tt-law-bar { background: var(--tt-navy-2); color: #fff; }
.tt-badge-alert {
  background: var(--tt-red);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .05em;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Icono en lista de consecuencias -------------------------------------- */
.tt-icon-circle {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* Captura / firma -------------------------------------------------------- */
.tt-phone-showcase {
  background: var(--tt-bg-soft);
  border-radius: 24px;
  padding: 34px;
}
.tt-phone-frame {
  width: 230px;
  margin-inline: auto;
  background: var(--tt-navy);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 26px 50px -18px var(--tt-shadow-navy);
}
.tt-phone-screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  height: 400px;
}

/* Placeholder de imagen (a sustituir por la captura real) --------------- */
.tt-image-slot {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(26, 79, 214, .06) 0 10px, transparent 10px 20px),
    #eef2fb;
  border: 1.5px dashed var(--tt-blue-soft-2);
  border-radius: inherit;
  color: var(--tt-blue);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.tt-image-slot[data-slot="phone-signature-shot"] {
  background-image: url('https://www.prismasg.com/wp-content/uploads/2026/08/carta-porte-firma-transpottista.png');
  background-size: cover;
  background-position: center;
}

.tt-image-slot[data-slot="hero-doc-real"] {
  background-image: url('https://www.prismasg.com/wp-content/uploads/2026/08/carta-porte-deca-ecmr-e1787142599130.png');
  background-size: cover;
  background-position: center;
}

/* Pasos (4 columnas) ----------------------------------------------------- */
.tt-step-card {
  background: #fff;
  border-radius: var(--tt-radius-md);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--tt-border);
  height: 100%;
}
.tt-step-number {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--tt-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  margin: 0 auto 16px;
}
.tt-step-icon {
  margin-bottom: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--tt-blue-soft);
  color: #8a8f98;
}
.tt-step-title {
  font-size: 22px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--tt-blue);
  font-weight: 800;
}
.tt-step-text { font-size: 13px; color: var(--tt-text-muted); margin-bottom: 0; }
.tt-step-arrow {
  position: absolute;
  top: 42px;
  right: -28px;
  color: var(--tt-border);
  font-size: 22px;
  font-weight: 900;
}

/* Tarjetas de funcionalidades -------------------------------------------- */
.tt-feature-card {
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-md);
  padding: 28px;
  height: 100%;
}
.tt-feature-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--tt-blue-soft);
  color: var(--tt-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tt-feature-title { font-size: 20px; margin-bottom: 8px; }
.tt-feature-text { font-size: 13.5px; color: var(--tt-text-muted); margin-bottom: 0; }

/* Track & Trace en vivo --------------------------------------------------- */
.tt-section-decorated { position: relative; overflow: hidden; }
.tt-decor-circle {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 99, 224, .35), transparent 70%);
  top: -220px; right: -160px;
  pointer-events: none;
}

.tt-pill-included {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(38, 224, 127, .14);
  border: 1px solid rgba(38, 224, 127, .3);
  color: var(--tt-green-bright-text);
  font-weight: 700;
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 20px;
}

.tt-map-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(2px);
}
.tt-map-meta { font-size: 16px; font-weight: 700; color: var(--tt-blue-soft-2); }
.tt-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800;
  color: var(--tt-green-bright-text);
  letter-spacing: .04em;
}
.tt-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tt-green-bright);
  box-shadow: 0 0 0 4px rgba(38, 224, 127, .25);
  display: inline-block;
}
.tt-map-canvas {
  border-radius: 14px;
  height: 300px;
  overflow: hidden;
  background: #e5e3df;
}
.tt-map-legend { font-size: 14px; color: var(--tt-blue-soft-2); }
.tt-legend-dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
  background: var(--c, #fff);
  margin-right: 6px;
}

/* Línea de tiempo de estados ---------------------------------------------- */
.tt-timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 26px;
}
.tt-timeline-item:last-child { padding-bottom: 0; }
.tt-timeline-item::before {
  content: '';
  position: absolute;
  left: 13px; top: 28px; bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .14);
}
.tt-timeline-item:last-child::before { display: none; }
.tt-timeline-dot {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  z-index: 1;
  background: rgba(255, 255, 255, .12);
  color: var(--tt-blue-soft-2);
}
.tt-timeline-dot--done { background: var(--tt-green); color: #fff; }
.tt-timeline-dot--current {
  background: #1b63e0;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(27, 99, 224, .25);
}
.tt-timeline-title { font-size: 20px; font-weight: 700; margin-bottom: 0; color: #fff; }
.tt-timeline-title--muted { font-weight: 600; color: var(--tt-blue-muted-2); }
.tt-timeline-time { font-size: 16px; color: var(--tt-blue-muted-2); }

.tt-mini-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 22px;
  height: 100%;
}
.tt-mini-card-icon { margin-bottom: 10px; color: var(--tt-blue-soft-2); }
.tt-mini-card-title {
  font-size: 14px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  font-weight: 800;
}
.tt-mini-card-text { font-size: 13px; color: var(--tt-blue-muted); margin-bottom: 0; }

/* CTA final ---------------------------------------------------------------- */
.tt-cta {
  background: #FFFFFF;
  color: #333333;
  text-align: center;
}
.tt-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 61, 166, .15);
  border-radius: 30px;
  padding: 10px 20px;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
}
.tt-cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tt-yellow);
  display: inline-block;
}
.tt-cta-lead {
  font-size: 16px;
  /* color: #dce6fb; */
  max-width: 560px;
  margin-inline: auto;
}
.tt-cta-btn {
  color: var(--tt-blue) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

/* Mapa Leaflet (usado por track-trace-map.js) ------------------------------ */
.tt-truck-icon { font-size: 22px; }
.tt-truck-icon span {
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
  transform: scaleX(-1);
}
.tt-pin-label {
  background: #fff;
  color: #1a1a1a;
  font: 700 11px 'Inter', sans-serif;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.tt-map-canvas .leaflet-control-attribution { font-size: 9px; }
