.historial-index-toggle-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 10px auto 5px;
  padding: 0 1.25rem;
}

.historial-index-toggle-inner {
  width: fit-content;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgb(225 225 225 / 85%);
  box-shadow: inset 0 0px 15px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.historial-index-toggle-btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.18s ease-out;
  outline: none;
}

.historial-index-toggle-btn i {
  font-size: 1rem;
}

.historial-index-toggle-btn:hover {
  background: rgba(148, 163, 184, 0.12);
}

.historial-index-toggle-btn.active {
  background: #f5f5f7;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

/* Wrapper principal formulario (andesmarForm) */
#andesmarForm-wrapper-index {
  width: 100%;
  max-width: 1200px;
  min-width: 100px;
  margin: 1.25rem auto 2.5rem;
}

/* Wrapper principal historial */
.historial-index-wrapper {
  width: 100%;
  max-width: 1200px;
  min-width: 100px;
  box-sizing: border-box;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1.25rem;
}

/* Texto principal */

.historial-index-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.historial-index-badge {
  align-self: flex-start;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: linear-gradient(135deg, #e0f2fe, #f5f3ff);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.historial-index-badge i {
  font-size: 0.9rem;
}

.historial-index-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.historial-index-title span.emoji {
  font-size: 1.5rem;
}

.historial-index-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ===== Toolbar filtros + búsqueda ===== */

.historial-index-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

/* Filtros de transporte con logos */

.historial-index-filter-transportes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.35rem 0.3rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    max-width: fit-content;
    margin-bottom: 10px;
}

.historial-index-filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 600;
}

.historial-index-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.20rem;
  padding: 0.05rem 0.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease-out;
  margin-bottom: 0 !important;
}

.historial-index-filter-pill input {
  margin: 0;
  accent-color: #0f172a;
}

/* El div con el logo no debe captar el click (lo recibe el label) */
.historial-index-filter-logo {
  pointer-events: none;
}

/* Efecto cuando está seleccionado */
.historial-index-filter-pill input:checked + .historial-index-filter-logo {
  border: solid 1px rgba(0, 128, 0, 0.39);
}

/* Búsqueda */

.historial-index-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.4);
  max-width: 400px;
}

.historial-index-search-icon {
  font-size: 0.95rem;
  color: #6b7280;
}

.historial-index-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
  color: #111827;
}

.historial-index-search-input::placeholder {
  color: #9ca3af;
}

/* Loading + error */

.historial-index-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;         
  min-height: 180px;
  padding: 2.5rem 0;
}

.historial-index-loading img {
  width: 100px;
  object-fit: contain;
  opacity: 0.9;
}

.historial-index-error {
  margin-bottom: 0.75rem;
  color: #b91c1c;
  font-size: 0.85rem;
}

/* ===== Grid de cards (4 en desktop) ===== */

.historial-index-cards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  min-height: 120px;
}

.historial-index-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: #6b7280;
}

/* 2 columnas en tablet */
@media (min-width: 768px) {
  .historial-index-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 4 columnas en desktop */
@media (min-width: 992px) {
  .historial-index-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Card individual ===== */
.historial-index-card {
    position: relative;
    border-radius: 20px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 170px;
    overflow: hidden;
    transition:
        transform 0.18s cubic-bezier(.22,.61,.36,1),
        box-shadow 0.18s cubic-bezier(.22,.61,.36,1),
        border-color 0.18s ease,
        background 0.18s ease;
    backface-visibility: hidden;
}

/* Brillito diagonal muy sutil al hacer hover */
.historial-index-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
    transform: translate3d(-10px, -10px, 0);
}

/* Efecto hover “card flotando” estilo iOS */
.historial-index-card:hover {
    transform: translateY(-2px) scale(1.01);
    cursor: pointer;
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    border-color: rgba(94, 234, 212, 0.7); 
}

.historial-index-card:hover::before {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Que el foco por teclado tenga el mismo mimo que el hover */
.historial-index-card:focus-within {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(34, 197, 182, 0.9);
    outline: none;
}

.historial-index-card-header,
.historial-index-card-body {
  position: relative;
  z-index: 1;
}

/* Header de la card */

.historial-index-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.historial-index-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Logo del transporte dentro de la card de historial */
.historial-index-card .cotizacion-logo-pill {
  border-radius: 999px;
  font-size: 0.75rem;
}

.historial-index-envio {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.historial-index-envio-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.historial-index-envio-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.historial-index-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.historial-index-card-date {
  font-size: 0.6rem;
  color: #6b7280;
  text-transform: uppercase;
}

/* Body de la card */

.historial-index-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #111827;
}

.historial-index-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.historial-index-row i {
  font-size: 0.9rem;
  margin-top: 0.05rem;
  color: #6b7280;
}

.historial-index-row span {
  flex: 1;
}

/* Nombre y dirección en UPPERCASE + ellipsis */

.historial-index-nombre {
  font-weight: 400;
  text-transform: uppercase;
  font-family: "Chakra Petch", sans-serif !important;
  font-size: 0.8rem;
}

.historial-index-direccion {
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bultos */

.historial-index-bultos {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.historial-index-bultos-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.historial-index-bultos-title i {
  font-size: 0.9rem;
}

.historial-index-bulto-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  color: #111827;
}

.historial-index-bulto-pill-hidden {
  display: none;
}

.historial-index-bultos-toggle {
  border: none;
  background: none;
  padding: 0;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.historial-index-bultos-toggle i {
  font-size: 0.9rem;
}

/* Colores por transporte (para otras parts si las usás) */

.historial-index-card-andreani .historial-index-transport-pill {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

.historial-index-card-andesmar .historial-index-transport-pill {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.historial-index-card-cds .historial-index-transport-pill {
  background: rgba(14, 165, 233, 0.14);
  color: #075985;
}

/* ===== Paginación ===== */

.historial-index-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  gap: 0.75rem;
}

.historial-index-page-info {
  font-size: 0.8rem;
  color: #6b7280;
}

.historial-index-page-buttons {
  display: flex;
  gap: 0.4rem;
}

.historial-index-page-buttons .btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}

/* ===== Logo pill global (tu snippet) ===== */

/* Base del logo: pill neutro */
.cotizacion-logo-pill img {
  padding: 5px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
}

/* Fondo según la logística (círculo de color atrás del logo) */
.cotizacion-card-andreani .cotizacion-logo-pill img {
  background: radial-gradient(circle at 30% 20%, #f97373, #b91c1c); /* rojo Andreani fuerte */
}

.cotizacion-card-andesmar .cotizacion-logo-pill img {
  background: radial-gradient(circle at 30% 20%, #60a5fa, #1d4ed8); /* azul Andesmar fuerte */
}

.cotizacion-card-oca .cotizacion-logo-pill img {
  background: radial-gradient(circle at 30% 20%, #a855f7, #4c1d95); /* violeta OCA fuerte */
}

.cotizacion-card-cruz .cotizacion-logo-pill img {
  background: radial-gradient(circle at 30% 20%, #fb923c, #c05621); /* naranja Cruz del Sur fuerte */
}

/* Mismo fondo para las cards de HISTORIAL según transporte */
.historial-index-card-andreani .cotizacion-logo-pill img {
  background: radial-gradient(circle at 30% 20%, #f97373, #b91c1c);
}

.historial-index-card-andesmar .cotizacion-logo-pill img {
  background: radial-gradient(circle at 30% 20%, #60a5fa, #1d4ed8);
}

.historial-index-card-cds .cotizacion-logo-pill img {
  background: radial-gradient(circle at 30% 20%, #fb923c, #c05621);
}

/* ===== Responsive extra ===== */

@media (max-width: 768px) {
  .historial-index-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .historial-index-search {
    margin-left: 0;
    max-width: none;
  }
}

/* Colores de fondo para los circulitos de los FILTROS de transporte */
.historial-index-filter-pill input[value="andreani"] + .historial-index-filter-logo img {
  background: radial-gradient(circle at 30% 20%, #f97373, #b91c1c); /* rojo Andreani fuerte */
}

.historial-index-filter-pill input[value="andesmar"] + .historial-index-filter-logo img {
  background: radial-gradient(circle at 30% 20%, #60a5fa, #1d4ed8); /* azul Andesmar fuerte */
}

.historial-index-filter-pill input[value="cds"] + .historial-index-filter-logo img {
  background: radial-gradient(circle at 30% 20%, #fb923c, #c05621); /* naranja Cruz del Sur fuerte */
}

/* Nombre / localidad / dirección: una sola fila + ellipsis */

.historial-index-nombre,
.historial-index-localidad,
.historial-index-direccion {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nombre más grande y con otro estilo */
.historial-index-nombre {
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #020617;
    border-bottom: dashed 1px #cdcdcd;
}

/* Localidad en una línea con ellipsis (puede ser un pelín más suave) */
.historial-index-localidad {
  font-size: 0.84rem;
  color: #334155;
  text-transform: uppercase;
}

/* Dirección ya estaba en mayúsculas desde el JS, acá solo reforzamos el look */
.historial-index-direccion {
  font-size: 0.84rem;
  text-transform: uppercase;
  color: #111827;
}

/* Por si no tenés definida .hidden en tu CSS global */
.hidden {
  display: none !important;
}
 */
.historial-index-card {
  display: flex;
  flex-direction: column;
}

.historial-index-card-body {
  flex: 1 1 auto;
}

.historial-index-card-footer {
  margin-top: auto;       
  padding-top: 0.4rem;
  display: flex;
  justify-content: flex-start;
}

.historial-index-envio {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.historial-index-envio-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.historial-index-envio-link {
  text-decoration: none;
}

.historial-index-envio-link .historial-index-envio-value {
  text-decoration: underline;
  text-decoration-style: dashed;
  cursor: pointer;
}

.historial-index-copy-btn {
  border: none;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 5px;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
}

.historial-index-copy-btn i {
  font-size: 0.85rem;
}

.historial-index-filter-pill {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.historial-index-filter-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.historial-index-filter-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #f2f2f7;              
  border: 1px solid #e5e5ea;
  color: #1c1c1e;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.historial-index-filter-logo img {
  width: 30px;
  height: 30px;
  border-radius: 999px;  
  object-fit: cover;
}

.historial-index-filter-logo::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d1d1d6;
  box-shadow: 0 0 0 1px rgba(242, 242, 247, 1);
  margin-right: 0.05rem;
}

/* Hover sutil */
.historial-index-filter-pill:hover .historial-index-filter-logo {
  background: #e5e5ea;
}

.historial-index-filter-check:checked + .historial-index-filter-logo {
  background: #e5fbef;                 
  border-color: #30d158;              
  color: #064d2a;
  box-shadow: 0 4px 9px rgba(48, 209, 88, 0.35);
  transform: translateY(-0.5px);
}

.historial-index-filter-check:checked + .historial-index-filter-logo::before {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.55);
}

.historial-index-filter-check:focus-visible + .historial-index-filter-logo,
.historial-index-filter-check:focus + .historial-index-filter-logo {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 5px rgba(48, 209, 88, 0.75);
}

/* MODAL TRACKING */
.andreani-modal-overlay-ios {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; 
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.andreani-modal-open-ios {
  overflow: hidden;
}

.andreani-modal-ios {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 80vh;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
}

.andreani-modal-header-ios {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem 1.2rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.98));
}

.andreani-modal-title-group-ios {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.andreani-modal-title-ios {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.andreani-modal-logo-ios {
  padding: 2px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background-color: red;
}

.andreani-modal-subtitle-ios {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
}

.andreani-modal-subtitle-ios .andreani-modal-tracking-ios {
  font-weight: 600;
  color: #111827;
}

.andreani-modal-close-ios {
  border: none;
  background: transparent;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #6b7280;
  transition: background 0.16s ease, color 0.16s ease;
}

.andreani-modal-close-ios:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #111827;
}

.andreani-modal-body-ios {
  padding: 0.85rem 1.2rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.andreani-modal-panel-ios {
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Panel de datos del envío (primer módulo) */
.andreani-info-main-ios {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.andreani-info-status-ios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.andreani-status-pill-ios {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.09);
  color: #166534;
  border: 1px solid rgba(74, 222, 128, 0.8);
}

.andreani-status-date-ios {
  font-size: 0.75rem;
  color: #6b7280;
}

.andreani-info-destinatario-ios {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.andreani-info-line-ios {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.andreani-info-label-ios {
  min-width: 90px;
  font-weight: 600;
  color: #4b5563;
}

/* TODOS LOS DATOS DEL PRIMER MÓDULO EN UPPERCASE */
.andreani-info-value-ios,
.andreani-status-pill-ios,
.andreani-status-date-ios {
  color: #111827;
  font-weight: 600;
  text-transform: uppercase;
}

.andreani-info-extra-ios {
  margin-top: 0.25rem;
}

.andreani-info-grid-ios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.andreani-info-chip-ios {
  border-radius: 5px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.andreani-info-chip-label-ios {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  font-size: 0.65rem;
  color: #6b7280;
}

.andreani-info-chip-value-ios {
  font-weight: 500;
  color: #111827;
}

/* Título timeline */
.andreani-tl-title-ios {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

/* CONTENEDOR TIMELINE */
.andreani-tl-ios {
  position: relative;
  padding-left: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Cada item: marcador + contenido */
.andreani-tl-item-ios {
  display: flex;
  align-items: stretch;  /* estira el marcador al alto del contenido */
  gap: 0.55rem;
}

/* Columna del marcador (dot + línea) */
.andreani-tl-marker-ios {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.15rem;
  width: 18px;
}

/* Punto (dot) */
.andreani-tl-dot-ios {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 2px solid #cbd5f5;
}

/* Dot ACTIVO (último movimiento) – verde + LATIDO */
.andreani-tl-marker-active-ios .andreani-tl-dot-ios {
  background: #22c55e;
  border-color: #16a34a;
  animation: andreani-dot-pulse-ios 1.4s ease-out infinite;
}

/* Línea vertical que une los puntos */
.andreani-tl-line-ios {
  flex: 1;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.9),
    rgba(148, 163, 184, 0.25)
  );
  margin-top: 2px;
}

/* Contenido de cada evento */
.andreani-tl-content-ios {
  width: 100%;
  padding-bottom: 0.4rem;
  border-radius: 12px;
  padding: 0.4rem 0.6rem 0.35rem;
  background: rgba(248, 250, 252, 0.9);
}

/* Header del evento (más compacto) */
.andreani-tl-header-row-ios {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.andreani-tl-estado-ios {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
}

.andreani-tl-fecha-ios {
  font-size: 0.72rem;
  color: #6b7280;
}

.andreani-tl-traduccion-ios {
  margin: 0;
  font-size: 0.78rem;
  color: #374151;
}

.andreani-tl-meta-row-ios {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.andreani-tl-chip-ios {
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  font-size: 0.7rem;
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
}

.andreani-tl-empty-ios {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Footer y estados de carga / error */

.andreani-modal-footer-ios {
  padding: 0.5rem 1.2rem 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(248, 250, 252, 0.96);
}

.andreani-modal-error-ios {
  font-size: 0.78rem;
  color: #b91c1c;
}

.andreani-modal-loading-layer-ios {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  background:
    radial-gradient(circle at 10% 0, rgba(129, 140, 248, 0.1), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(45, 212, 191, 0.1), transparent 55%),
    rgba(248, 250, 252, 0.92);
}

.andreani-modal-loading-spinner-ios {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.45);
  border-top-color: #2563eb;
  animation: andreani-spin-ios 0.7s linear infinite;
}

.andreani-modal-loading-layer-ios span {
  font-size: 0.8rem;
  color: #4b5563;
}

@keyframes andreani-spin-ios {
  to {
    transform: rotate(360deg);
  }
}

/* LATIDO DEL PUNTO ACTIVO */
@keyframes andreani-dot-pulse-ios {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.historial-index-card-footer {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.4rem;
}

.historial-index-track-btn i {
  margin-right: 0.15rem;
}

/* Responsive modal */

@media (max-width: 768px) {
  .andreani-modal-ios {
    max-width: 100%;
    margin: 0 0.75rem;
  }
}

/* Selector de localidad / CP dentro de Acciones */
.andreani-actions-localidad-wrapper-ios {
  position: relative;
}

.andreani-actions-localidad-list-ios {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 4px;
}

.andreani-localidad-item-ios {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.andreani-localidad-item-ios:hover {
  background: rgba(239, 246, 255, 0.9);
}

.andreani-localidad-main-ios {
  display: flex;
  flex-direction: column;
}

.andreani-localidad-name-ios {
  font-weight: 600;
  color: #0f172a;
}

.andreani-localidad-cp-ios {
  font-size: 0.72rem;
  color: #4b5563;
}

.andreani-localidad-prov-ios {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(191, 219, 254, 0.9);
  color: #1d4ed8;
}

.andreani-actions-buttons-bar-ios {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 10px;
}

.andreani-actions-buttons-bar-ios .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.andreani-accion-loading-layer-ios {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.andreani-accion-loading-layer-ios img {
  width: 150px;  
  height: auto;
}

/* Estado de mensajes en el formulario de cambio de domicilio */
.andreani-actions-status-ios {
  font-size: 0.8rem;
  min-height: 1.2rem;
  margin-right: auto;
}

.andreani-accion-status-error {
  color: #b91c1c;
}

.andreani-accion-status-ok {
  color: #166534;
}

/* Overlay de acciones (cambio domicilio / baja etiqueta) */
.andreani-modal-ios.andreani-modal-blur-accion .andreani-modal-header-ios,
.andreani-modal-ios.andreani-modal-blur-accion .andreani-modal-body-ios,
.andreani-modal-ios.andreani-modal-blur-accion .andreani-modal-footer-ios {
  filter: blur(3px);
  pointer-events: none;
}

.andreani-accion-overlay-ios {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(248, 250, 252, 0.6);
  z-index: 20;
}

.andreani-accion-overlay-img-ios {
  width: 120px;          
  height: auto;
  margin-bottom: 0.4rem;
}

.andreani-accion-overlay-text-ios {
  font-size: 0.85rem;
  color: #374151;
}

/* Estado de mensajes en la sección de acciones */
.andreani-actions-status-ios {
  font-size: 0.8rem;
  min-height: 1.2rem;
}

.andreani-localidad-item-ios {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.35rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.andreani-localidad-item-ios:hover {
  background: rgba(239, 246, 255, 0.9);
}

.andreani-localidad-name-ios {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.andreani-localidad-cp-ios {
  font-size: 0.75rem;
  color: #4b5563;
  margin-left: 0.4rem;
}

.andreani-localidad-prov-ios {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  color: #475569;
}
/* FIN MODAL TRACKING */
