/* Estilos de la plataforma de rastreo (complementan a Tailwind) */

/* ---- barra de progreso de estados: se adapta a cualquier cantidad de pasos ---- */
.tracker { --c: 4.5rem; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.paso { position: relative; display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1.5rem; }
.paso:last-child { padding-bottom: 0; }

.paso-circulo {
  position: relative; z-index: 1; flex: none;
  width: var(--c); height: var(--c); border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 3px solid #cbd5e1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.paso-circulo img { width: calc(var(--c) * .62); height: calc(var(--c) * .62); object-fit: contain; }
.paso-numero { display: none; font-size: 1.25rem; font-weight: 700; color: #64748b; }
.paso-texto { display: flex; flex-direction: column; justify-content: center; min-height: var(--c); }
.paso-nombre { font-weight: 600; line-height: 1.2; color: #64748b; }
.paso-etiqueta {
  margin-top: .25rem; width: fit-content; border-radius: 9999px;
  background: #cc1f2b; color: #fff; padding: .1rem .55rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* conector vertical (movil) */
.paso:not(:last-child)::after {
  content: ""; position: absolute; left: calc(var(--c) / 2 - 2px); top: var(--c); bottom: 0;
  width: 4px; border-radius: 4px; background: #e2e8f0;
}
.paso-hecho:not(:last-child)::after { background: #1f55c2; }

/* estados */
.paso-hecho .paso-circulo { border-color: #1f55c2; background: #eef4ff; }
.paso-hecho .paso-nombre { color: #0f2f73; }
.paso-actual .paso-circulo {
  border-color: #cc1f2b; background: #fff;
  box-shadow: 0 0 0 6px rgba(204, 31, 43, .15);
  animation: pulso-actual 2s ease-in-out infinite;
}
.paso-actual .paso-nombre { color: #a8161f; }
.paso-pendiente .paso-circulo img { opacity: .55; }

@keyframes pulso-actual {
  0%, 100% { box-shadow: 0 0 0 4px rgba(204, 31, 43, .18); }
  50% { box-shadow: 0 0 0 9px rgba(204, 31, 43, .06); }
}
@media (prefers-reduced-motion: reduce) { .paso-actual .paso-circulo { animation: none; } }

/* horizontal (pantallas medianas y grandes) */
@media (min-width: 768px) {
  .tracker { flex-direction: row; }
  .paso { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: .6rem; padding-bottom: 0; text-align: center; }
  .paso-texto { align-items: center; min-height: 0; padding: 0 .15rem; }
  .paso-nombre { font-size: .85rem; }
  .paso:not(:last-child)::after {
    left: calc(50% + var(--c) / 2); right: calc(-50% + var(--c) / 2); top: calc(var(--c) / 2 - 2px);
    bottom: auto; width: auto; height: 4px;
  }
}

/* ---- linea de tiempo del envio ---- */
.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.evento { position: relative; padding-left: 3.75rem; padding-bottom: 1.25rem; }
.evento:last-child { padding-bottom: 0; }
.evento::before {
  content: ""; position: absolute; left: 1.35rem; top: 3rem; bottom: -.25rem;
  width: 3px; border-radius: 3px; background: #dce8ff;
}
.evento:last-child::before { display: none; }
.evento-punto {
  position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #8bb2fb;
}
.evento-punto img { width: 1.85rem; height: 1.85rem; object-fit: contain; }
.evento:first-child .evento-punto { border-color: #cc1f2b; box-shadow: 0 0 0 4px rgba(204, 31, 43, .12); }

/* ---- hero de la portada ---- */
.hero-fondo {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 107, 220, .55), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(204, 31, 43, .45), transparent 40%),
    linear-gradient(135deg, #0a2150 0%, #0f2f73 55%, #17429c 100%);
}
.hero-fondo::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom right, transparent 10%, #000 90%);
  mask-image: linear-gradient(to bottom right, transparent 10%, #000 90%);
}
/* estrellas de la encuesta */
.rating .star { cursor: pointer; font-size: 2rem; color: #b9d0ff; transition: color .15s ease, transform .15s ease; }
.rating .star.bi-star-fill { color: #f5a524; }
.rating .star:hover { transform: scale(1.12); }
