:root{
  --stroke:#1a2420;
  --stroke2:#24312b;

  --text:#ecf6f1;
  --muted:#94a8a0;

  --red:#ff4d4d;
  --yellow:#ffc83d;
  --green:#22ff88;

  --r16:16px;
  --r14:14px;
}

*{ box-sizing:border-box; }
html, body { height: 100%; }

body{
  margin:0;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:#11181A;
}

/*bg degra*/
  /*background: radial-gradient(circle at 50% 0%, #11181A 0%, #19191A 100%);

/* Grid detrás */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity:.12;
  pointer-events:none;
  z-index: 0;
}

/* contenido arriba */
.wrap{
  position:relative;
  z-index:1;
  max-width:1100px;
  margin:0 auto;
  padding:22px;
}

h1{ margin:0 0 6px; font-size:28px; letter-spacing:.2px; }
.sub{ color:var(--muted); font-size:13px; margin-bottom:18px; }

/* hero */
.hero{
  border:1px solid var(--stroke);
  border-radius:var(--r16);
  padding:16px;
  margin-bottom:14px;

  background:
    radial-gradient(circle at 50% 0%, rgba(17,24,26,.85) 0%, rgba(25,25,26,.92) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.kpi{
  background: rgba(12,17,15,.65);
  border:1px solid var(--stroke);
  border-radius:var(--r14);
  padding:14px;
  min-height:78px;
}
.kpi .num{ font-size:30px; font-weight:900; line-height:1; }
.kpi .lbl{ margin-top:8px; color:var(--muted); font-size:12px; letter-spacing:.3px; }
.kpi.red .num{ color:var(--red); }
.kpi.yellow .num{ color:var(--yellow); }
.kpi.green .num{ color:var(--green); }

.toolbar{ display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 10px; }
.pill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(12,17,15,.55);
  color:var(--text);
  font-size:13px;
  cursor:pointer;
  user-select:none;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.pill:hover{ transform: translateY(-1px); border-color: var(--stroke2); }
.pill.active{ background: rgba(34,255,136,.06); border-color: rgba(34,255,136,.22); }

.pill[data-filter="cancelado"]{ border-left:3px solid rgba(255,77,77,.9); }
.pill[data-filter="demora"]{ border-left:3px solid rgba(255,200,61,.9); }
.pill[data-filter="ok"]{ border-left:3px solid rgba(34,255,136,.9); }

.list{ display:flex; flex-direction:column; gap:10px; margin-top:8px; }

.row{
  /* Layout */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border-radius:var(--r14);
  cursor:pointer;
  position:relative;
  overflow:hidden; /* importante para que el borde/after no desborde */

  /* Animaciones (dejamos) */
  transition: transform .12s ease, box-shadow .12s ease;
}

/* Tu barra izquierda (la dejamos, queda arriba del recorte interno) */
.row::before{
  content:"";
  position:absolute;
  left:0; top:12px; bottom:12px;
  width:2px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  z-index: 3; /* arriba del cardFx::before */
}

.row[data-cls="cancelado"]::before{ background: rgba(255,77,77,.95); }
.row[data-cls="demora"]::before{ background: rgba(255,200,61,.95); }
.row[data-cls="ok"]::before{ background: rgba(34,255,136,.95); }

/* Hover: sólo movimiento (el borde/glow lo maneja cardFx) */
.row:hover{
  transform: translateY(-1px);
}

.left{ display:flex; flex-direction:column; gap:4px; min-width:0; padding-left:6px; }
.topline{ display:flex; gap:14px; align-items:center; }
.flight{ font-weight:900; letter-spacing:.2px; }
.route{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:560px;
}
.meta{ color:#fff; font-size:12px; }

.status{
  font-size:12px;
  font-weight:800;
  letter-spacing:.3px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  white-space:nowrap;
}
.status.cancelado{ color:rgba(255,77,77,1); border-color:rgba(255,77,77,.28); background:rgba(255,77,77,.07); }
.status.demora{ color:rgba(255,200,61,1); border-color:rgba(255,200,61,.28); background:rgba(255,200,61,.07); }
.status.ok{ color:rgba(34,255,136,1); border-color:rgba(34,255,136,.26); background:rgba(34,255,136,.06); }

.footerNote{ margin-top:14px; color:var(--muted); font-size:12px; }

/* ========= MODAL COMPLETO (esto te faltaba) ========= */
.modal{ display:none; position:fixed; inset:0; z-index:9999; }
.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}

.modal__panel{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:1;
}

.modal__card{
  width:min(920px, 100%);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(15,20,18,.96) 0%, rgba(11,15,13,.96) 100%);
  border-radius:18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  overflow:hidden;
}

.modal__header{
  padding:16px 16px 12px;
  border-bottom:1px solid var(--stroke);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.modal__head{
  display:flex;
  align-items:center;
  gap:18px;
}

.modal__title{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.modal__sub{ color:var(--muted); font-size:12px; margin-top:6px; }

.modal__close{
  border:1px solid var(--stroke);
  background: rgba(12,17,15,.70);
  color:var(--text);
  padding:9px 11px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
  line-height:1;
}
.modal__close:hover{ border-color: rgba(34,255,136,.18); }

.modal__body{ padding:14px 16px 16px; }

.modal__mainCard{
  border:1px solid var(--stroke);
  background: rgba(12,17,15,.68);
  border-radius:16px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.modal__route{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.modal__meta{ color:var(--muted); font-size:12px; margin-top:6px; }

.modal__status{
  font-size:12px;
  font-weight:950;
  letter-spacing:.3px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(12,17,15,.75);
  white-space:nowrap;
}

.modal__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.modal__cell{
  border:1px solid var(--stroke);
  background: rgba(12,17,15,.68);
  border-radius:14px;
  padding:12px;
}

.modal__label{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

.modal__value{
  font-weight:950;
  margin-top:6px;
}

.modal__note{ color:var(--muted); font-size:12px; margin-top:12px; }

@media (max-width:640px){
  .kpis{ grid-template-columns:1fr; }
  .route{ max-width:260px; }
  h1{ font-size:22px; }
  .modal__grid{ grid-template-columns:1fr; }
}

@keyframes gradShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

.cardFx{
  position:relative;
  border-radius:var(--r14);
  background: linear-gradient(180deg, rgba(15,20,18,.88) 0%, rgba(11,15,13,.88) 100%);
  border:1px solid var(--stroke);
  overflow:hidden;
}

.cardFx::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--fxA) 95%, transparent) 0%,
    color-mix(in srgb, var(--fxB) 95%, transparent) 55%,
    color-mix(in srgb, var(--fxA) 95%, transparent) 100%
  );
  background-size:200% 200%;
  animation: gradShift 6s ease-in-out infinite;
  opacity:.55;
  pointer-events:none;
  z-index:0;
}

.cardFx::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background: inherit;
  z-index:1;
}

.cardFx > *{ position:relative; z-index:2; }

.cardFxGlow{
  box-shadow:
    0 10px 30px rgba(0,0,0,.28),
    0 0 26px color-mix(in srgb, var(--fxA) 20%, transparent);
}

.cardFx:hover::after{ opacity:.85; }

.fx-ok   { --fxA:#22ff88; --fxB:#0a5c3a; }
.fx-warn { --fxA:#ffc83d; --fxB:#6b4f0f; }
.fx-bad  { --fxA:#ff4d4d; --fxB:#6b1313; }
/* azul operativo (embarque) */
.fx-boarding{
  --fxA:#3da8ff;   /* celeste vivo */
  --fxB:#0f2f4d;   /* azul profundo */
}
/* naranja consulta compañía */
.fx-consulta{
  background: linear-gradient(90deg,#3a2c0f,#5b4517);
  border-color: rgba(255,170,0,.5);
}
/*last call */
.fx-lastcall {
  background: linear-gradient(90deg,#b9552d,#5a1e12);
  border-color: #ff7641;
}
/* cerrado */

.fx-cerrado{
  --fxA:#3a3f46;
  --fxB:#1c1f23;
}


/* Destino grande + avión */
.dest{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0; /* para ellipsis */
}

.plane{
  display:inline-flex;
  align-items:center;
  font-size:14px;
  opacity:.85;
  transform: translateY(1px); /* micro ajuste */
}

.destTxt{
  font-weight:950;
  letter-spacing:.2px;
  font-size:16px;
  color: var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 520px;
}

/* Hacemos el vuelo un toque más “tag” */
.flight{
  font-weight:950;
  letter-spacing:.2px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

/* Meta más limpia */
.meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.metaDot{
  opacity:.55;
}

/* Mobile */
@media (max-width:640px){
  .destTxt{ max-width: 260px; }
}

.dest{display:flex; align-items:center; gap:10px}
.plane{display:inline-flex; color:var(--text); opacity:.9}
.destTxt{font-weight:800; letter-spacing:.2px}

.metaDot{
  opacity:.55;
}

.dest{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.plane{
  font-size:13px;
  opacity:.65;
  transform: translateY(-1px);
}

.destTxt{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
}

.flight{
  font-weight:950;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(4px);
}

.destTxt{
  font-size:19px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:capitalize;
}

.fx-bad{
  --fxA:#ff4d4d;
  --fxB:#3b0c0c;
}

.cardFxGlow{
  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    0 0 18px color-mix(in srgb, var(--fxA) 18%, transparent);
}

.row:hover{
  transform: translateY(-2px);
  scale: 1.002;
}

.row[data-cls="cancelado"] .destTxt{
  opacity:.9;
}

.flight{
  display:inline-flex;
  align-items:center;
  height:34px;
}

.airportWrap{
  margin-bottom:14px;
}

.airportBar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.pill-airport{
  background: rgba(0,0,0,.25);
  border:1px solid var(--stroke);
}

.pill-airport.active{
  background: rgba(34,255,136,.08);
  border-color: rgba(34,255,136,.35);
  color:#22ff88;
}

.airportSelectWrap{
  position:relative;
  margin-bottom:14px;
}

.airportBtn{
  font-size:18px;
  font-weight:800;
  letter-spacing:.3px;
  padding:14px 18px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(12,17,15,.7);
  color:var(--text);
  cursor:pointer;
  backdrop-filter: blur(8px);
  transition:.15s;
}

.airportBtn:hover{
  border-color: rgba(34,255,136,.25);
}

.airportDropdown{
  position:absolute;
  top:56px;
  left:0;
  background:#0c1110;
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:10px;
  display:none;
  flex-wrap:wrap;
  gap:8px;
  width:420px;
  z-index:50;
}

.airportDropdown.open{
  display:flex;
}

.airportDropdown button{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:transparent;
  color:var(--text);
  cursor:pointer;
}

.airportDropdown button:hover{
  border-color:var(--green);
}

/* ===== Airport dropdown UI ===== */
.airportSelect{
  position: relative;
  display: inline-block;
  margin: 10px 0 14px;
}

#airportBtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,17,15,.55);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .2px;
}

#airportBtn:hover{
  border-color: rgba(34,255,136,.18);
}

#airportDropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(560px, 92vw);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,12,.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  z-index: 999;

  display: none;

  /* Anim */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;

  /* Grid */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;

  /* No gigante */
  max-height: 340px;
  overflow: auto;
}

#airportDropdown.open{
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

#airportDropdown button{
  border-radius: 999px;
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,17,15,.45);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

#airportDropdown button:hover{
  border-color: rgba(34,255,136,.18);
}

#airportDropdown button.active{
  background: rgba(34,255,136,.08);
  border-color: rgba(34,255,136,.30);
}

@media (max-width: 640px){
  #airportDropdown{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 60vh;
  }
}

.airportSelect{ position:relative; margin:12px 0 14px; display:inline-block; }

.airportBtn{
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,17,15,.55);
  color: var(--text);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.airportBtn:hover{ border-color: rgba(34,255,136,.18); }
.airportBtn__top{ font-size:12px; color: var(--muted); letter-spacing:.3px; }
.airportBtn__bottom{ font-size:18px; font-weight:950; letter-spacing:.2px; }
.airportBtn__chev{ font-size:18px; opacity:.8; transform: translateY(-2px); }

.airportDropdown{
  position:absolute;
  top: calc(100% + 10px);
  left:0;
  width: min(520px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,12,.90);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  padding: 12px;
  z-index: 999;

  display:none;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
}
.airportDropdown.open{
  display:block;
  opacity:1;
  transform: translateY(0);
}

.airportSearch{
  width:100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,17,15,.55);
  color: var(--text);
  outline: none;
}
.airportSearch:focus{ border-color: rgba(34,255,136,.22); }

.airportSection{ margin-top:10px; }

.airportList{
  margin-top:10px;
  max-height: 320px;
  overflow:auto;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 8px;
}

.airItem{
  width:100%;
  text-align:left;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.airItem:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
.airItem__name{ font-weight:800; }
.airItem__code{ color: var(--muted); font-weight:900; letter-spacing:.3px; }

.airItem.active{
  background: rgba(34,255,136,.08);
  border-color: rgba(34,255,136,.22);
}

@media (max-width:640px){
  .airportBtn__bottom{ font-size:16px; }
  .airportList{ max-height: 55vh; }
}

/* ===============================
   Airport selector (dropdown)
   =============================== */

/* Contenedor del selector (la "barra" grande) */
.airportSelect{
  position: relative;
  width: min(860px, 100%);
  margin: 14px auto 18px; /* centrado */
}

/* Botón principal */
#airportBtn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34,255,136,.22);
  background: rgba(12,17,15,.55);
  color: var(--text);

  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  cursor: pointer;
}

/* Bloque texto adentro (izquierda) */
.airportBtn__left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

/* Etiqueta chiquita “Aeropuerto” */
.airportBtn__hint{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .3px;
}

/* Valor grande “Aeroparque, AEP” */
.airportBtn__value{
  font-weight: 950;
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flechita */
.airportBtn__chev{
  opacity: .75;
  transform: translateY(1px);
}

/* Panel dropdown */
#airportDropdown{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,14,12,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 90px rgba(0,0,0,.55);

  padding: 12px;
  display: none;
  z-index: 999; /* arriba de todo */
}

/* Estado abierto */
#airportDropdown.open{
  display:block;
}

/* Input de búsqueda */
#airportSearch{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  font-size: 14px;
}
#airportSearch::placeholder{
  color: rgba(148,168,160,.75);
}

/* Lista: grid */
#airportList{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;

  max-height: 360px; /* clave: controla el alto */
  overflow: auto;    /* scrollea solo acá */
  padding-right: 4px;
}

/* Botones opciones */
.airportOption{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,17,15,.45);
  color: var(--text);

  padding: 12px 12px;
  cursor: pointer;

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;

  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.airportOption:hover{
  transform: translateY(-1px);
  border-color: rgba(34,255,136,.22);
  background: rgba(12,17,15,.58);
}
.airportOption.active{
  border-color: rgba(34,255,136,.30);
  background: rgba(34,255,136,.07);
}

/* Nombre y código */
.airportOption__name{
  color: rgba(236,246,241,.90);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.airportOption__code{
  color: rgba(236,246,241,.65);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;
}

/* Scrollbar más prolijo (webkit) */
#airportList::-webkit-scrollbar{ width: 10px; }
#airportList::-webkit-scrollbar-track{ background: transparent; }
#airportList::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}
#airportList::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.22);
}

/* Mobile: 2 columnas */
@media (max-width: 640px){
  .airportSelect{ margin: 12px auto 14px; }
  .airportBtn__value{ font-size: 16px; }
  #airportList{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 320px; }
}

/* Forzar herencia real en elementos interactivos */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* Mejor render en macOS */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.top{
  display:grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap:18px;
  align-items:end;
  margin-bottom:14px;
}

.top__left h1{ margin:0; }
.top__left .sub{ margin:8px 0 0; }

@media (max-width: 900px){
  .top{ grid-template-columns: 1fr; align-items:start; }
  .top__right{ margin-top:10px; }
}

/* ===========================
   PATCH: Logos + Mis vuelos + Guardar
   Pegá esto AL FINAL del CSS
   =========================== */

/* --- Logos en filas (cards) --- */
/* Más grande, pero con límites para mobile */
.logoWrap{
  width:72px;
  height:72px;
}

.airlineLogo{
  width:72px;
  height:72px;
}

/* En mobile bajamos un toque */
@media (max-width:640px){
  .logoWrap{ width:56px; height:56px; }
  .airlineLogo{ width:56px; height:56px; }
}

/* --- Modal logo --- */
.modal__logo{
  width:64px;
  height:64px;
  object-fit:contain;
  flex:0 0 auto;
  opacity:.95;

  /* look más pro */
  background: rgba(255,255,255,.04);
  border-radius:12px;
  padding:6px;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 8px 20px rgba(0,0,0,.35);
}

@media (max-width:640px){
  .modal__logo{ width:56px; height:56px; }
}

/* ========== Save flight button (mejor jerarquía) ========== */
.saveFlight{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(236,246,241,.92);
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.2px;
  cursor:pointer;

  /* que no parezca “CTA verde” de una */
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}

.saveFlight:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(34,255,136,.20);
}

.saveFlight:active{
  transform: translateY(0);
}

/* Estado "Guardado" (cuando lo deshabilitás) */
.saveFlight.is-saved{
  background: rgba(34,255,136,.10);
  border-color: rgba(34,255,136,.28);
  color: rgba(34,255,136,1);
  opacity: .95;
  cursor: default;
}

/* --- Mis vuelos (saved bar) --- */
.savedBar{
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,17,15,.40);
  backdrop-filter: blur(10px);
}

.savedBar__title{
  font-weight: 950;
  letter-spacing: .2px;
  margin-bottom: 10px;
  color: rgba(236,246,241,.92);
}

.savedBar__list{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Pill guardada más “premium” */
.savedPill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.savedPill:hover{
  transform: translateY(-1px);
  border-color: rgba(34,255,136,.22);
  background: rgba(0,0,0,.24);
}

/* Logo en pill: MÁS GRANDE */
.savedPill__logo{
  width:26px;
  height:26px;
  object-fit:contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
  opacity: .95;
}

/* Texto pill */
.savedPill__txt{
  font-weight: 850;
  letter-spacing: .15px;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón X */
.savedPill__x{
  margin-left: 6px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(236,246,241,.9);
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  line-height: 1;
  transition: background .12s ease, transform .12s ease, border-color .12s ease;
}

.savedPill__x:hover{
  background: rgba(255,77,77,.12);
  border-color: rgba(255,77,77,.25);
  transform: translateY(-1px);
}

/* Highlight desde Mis vuelos */
.pulseOnce{
  outline: 2px solid rgba(34,255,136,.35);
  box-shadow: 0 0 0 7px rgba(34,255,136,.12);
  border-radius: 16px;
}

/* Toast mini (opcional, pero queda tremendo) */
.toast{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 99999;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,255,136,.22);
  background: rgba(12,17,15,.82);
  backdrop-filter: blur(10px);
  color: rgba(236,246,241,.96);
  font-weight: 900;
  letter-spacing: .2px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}

.modal__mainRight{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  min-width: 220px; /* evita saltos */
}

@media (max-width:640px){
  .modal__mainRight{
    align-items:stretch;
    width:100%;
  }
  .saveFlight{
    width:100%;
    text-align:center;
  }
}

.saveFlight.is-saved{
  border-color: rgba(34,255,136,.35);
  background: rgba(34,255,136,.10);
  color: rgba(236,246,241,.95);
  cursor: default;
  opacity: .95;
}
.saveFlight:disabled{
  opacity:.9;
}

/* ================= FOOTER ================= */

.siteFooter{
  margin-top:40px;
  padding:22px 0 10px;
  border-top:1px solid rgba(255,255,255,.06);
  color:rgba(236,246,241,.75);
  font-size:13px;
}

.footerInner{
  max-width:1100px;
  margin:0 auto;
  padding:0 22px;
}

.footerTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.footerAuthor{
  font-weight:700;
  opacity:.9;
}

.footerCoffee{
  font-size:12px;
  opacity:.6;
  margin-top:4px;
}

.footerCoffee a{
  color:rgba(236,246,241,.75);
  text-decoration:none;
  border-bottom:1px dashed rgba(236,246,241,.25);
}

.footerCoffee a:hover{
  opacity:1;
  border-bottom-color:rgba(236,246,241,.55);
}

.footerStatus{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  opacity:.8;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22ff88;
  box-shadow:0 0 8px rgba(34,255,136,.6);
}

.footerLinks{
  display:flex;
  gap:14px;
  font-size:12px;
}

.footerLinks a{
  color:rgba(236,246,241,.7);
  text-decoration:none;
}

.footerLinks a:hover{
  opacity:1;
  text-decoration:underline;
}

.footerBottom{
  margin-top:14px;
  font-size:11px;
  opacity:.5;
}

/* mobile */
@media (max-width:640px){
  .footerTop{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
}

/* ================= SCROLL TOP BUTTON ================= */

.scrollTopBtn{
  position:fixed;
  right:28px;
  bottom:28px;
  width:56px;
  height:56px;
  border-radius:50%;
  border:none;
  background:#2b63f6;
  color:white;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  transition:transform .2s ease, opacity .2s ease;
  opacity:0;
  pointer-events:none;
}

.scrollTopBtn.visible{
  opacity:1;
  pointer-events:auto;
}

.scrollTopBtn:hover{
  transform:translateY(-3px);
}

.footerLeft{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.footerSupport{
  font-size:14px;
  opacity:.9;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 6px;
}

.brand__logo{
  width:32px;
  height:32px;
  object-fit:contain;
  flex:0 0 auto;
}

.brand__title{
  font-size:28px;
  font-weight:900;
  letter-spacing:.2px;
}

/* ===== Header layout ===== */

.header{
  margin-bottom:18px;
}

/* Logo + nombre */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.brand__logo{
  width:280px;
  height:72px;
  object-fit:contain;
  flex:0 0 auto;
}

.brand__name{
  font-weight:900;
  letter-spacing:.2px;
  font-size:18px;
  opacity:.95;
}

/* Título principal */
.heroTitle h1{
  margin:0;
  font-size:42px;
  line-height:1.1;
  letter-spacing:-.3px;
}

.heroTitle .sub{
  margin-top:8px;
  font-size:14px;
  color:var(--muted);
}

/* Mobile */
@media (max-width:640px){
  .heroTitle h1{
    font-size:28px;
  }

  .brand__logo{
    width:220px;
    height:80px;
    align-items: center;
  }
}

.fromName{
  font-size:19px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:capitalize;
  color: var(--text);
  white-space:nowrap;
  margin: 0 6px 0 10px;
  opacity:.8;
}

.row:hover .plane{
  transform: translateX(3px);
  transition:.2s;
}

.modal__status{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  width: fit-content;
  margin-bottom: 10px;
}

/* ===== Route: origen y destino mismo peso, origen con opacidad ===== */
.fullRoute{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap; /* permite que en mobile baje prolijo */
}

.fullRoute .from,
.fullRoute .destTxt{
  font-weight:700;        /* mismo peso */
  letter-spacing:-0.01em; /* micro pro */
}

.fullRoute .from{
  opacity:.85;            /* lo que pediste */
}

/* ===== Pill de horarios dentro de la ruta ===== */
.timePill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.timeRow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:-0.01em;
  line-height:1;
}

.timeOld{
  opacity:.55;            /* SIN tachado (como veníamos) */
  text-decoration:none;
}

.timeArrow{
  opacity:.55;
}

.timeReal{
  color:rgba(34,255,136,1); /* tu verde */
}

/* ===== Mobile: que no se rompa todo ===== */
@media (max-width: 640px){
  .fullRoute{
    gap:10px;
  }
  .timePill{
    padding:7px 10px;
  }
}

.fullRoute{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.fullRoute .from,
.fullRoute .destTxt{
  font-weight:700;
}

.fullRoute .from{
  opacity:.85;
}

.timePill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.timeRow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  line-height:1;
}

.timeOld{
  opacity:.55;
  text-decoration:none;
}

.timeArrow{
  opacity:.55;
}

.timeReal{
  color:rgba(34,255,136,1);
}

/* Origen y destino: mismo tamaño/peso */
.fullRoute .from,
.fullRoute .destTxt{
  font-size: inherit;     /* o poné un valor fijo si querés */
  font-weight: 700;
  line-height: 1.1;
}

/* Origen un toque más suave */
.fullRoute .from{
  opacity: .85;
}

/* ===== Modal Status Pill ===== */

.statusPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  border-radius:999px;
  font-weight:600;
  font-size:14px;
  border:1px solid;
  backdrop-filter: blur(10px);
}

/* OK */
.statusPill.ok{
  color:rgba(34,255,136,1);
  background:rgba(34,255,136,.10);
  border-color:rgba(34,255,136,.35);
}

/* DEMORA */
.statusPill.demora{
  color:rgba(255,200,61,1);
  background:rgba(255,200,61,.10);
  border-color:rgba(255,200,61,.35);
}

/* CANCELADO */
.statusPill.cancelado{
  color:rgba(255,77,77,1);
  background:rgba(255,77,77,.10);
  border-color:rgba(255,77,77,.35);
}

/* CERRADO */
.status.cerrado{
  color:#cbd5e1;
  border-color:rgba(203,213,225,.3);
  background:rgba(203,213,225,.08);
}
/* CONSULTA */
.statusPill.consulta{
  color: #ff9f1c;
  background: rgba(255,159,28,.10);
  border-color: rgba(255,159,28,.35);
}

.status.consulta,
.statusPill.consulta{
  color:#ffbd60;
  border-color:#ffb34755;
  background:#ffb34718;
}

.status.boarding,
.statusPill.boarding{
  color:#8fd3ff;
  border-color:rgba(143,211,255,.4);
  background:rgba(143,211,255,.12);
}

/* =========================
   MOBILE layout (solo mobile)
   Desktop NO se toca
   ========================= */
@media (max-width: 640px){

  /* Card: que el status quede arriba a la derecha (línea 1) */
  .row{
    align-items: flex-start;
  }

  .status{
    align-self: flex-start;
    margin-top: 2px; /* micro ajuste */
  }

  /* TOPLINE: permitimos wrap */
  .topline{
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  /* LOGO + FLIGHT se quedan en línea 1 */
  .logoWrap{
    flex: 0 0 auto;
  }

  .flight{
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
  }

  /* FULL ROUTE baja a línea 2 sí o sí */
  .fullRoute{
    flex-basis: 100%;
    width: 100%;
    margin-top: 8px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  /* Origen/Destino: misma jerarquía (ya tenés opacity en .from) */
  .fullRoute .from,
  .fullRoute .destTxt{
    font-weight: 700;
  }

  /* Destino no se desborde feo */
  .fullRoute .destTxt{
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* HORARIO: baja a línea 3 y queda como pill */
  .timePill{
    flex-basis: 100%;
    width: fit-content;
    margin-top: 8px;
  }

  /* Aerolínea: línea 4 */
  .meta{
    margin-top: 10px;
  }
}

/* =========================
   MOBILE — ajustes finales
   ========================= */
@media (max-width: 640px){

  /* ORIGEN + DESTINO más grandes */
  .fullRoute .from,
  .fullRoute .destTxt{
    font-size: 20px;      /* podés subir a 21 si querés */
    line-height: 1.15;
  }

  /* avión alineado mejor */
  .plane{
    font-size: 14px;
    transform: translateY(1px);
  }

  /* PILL HORARIO: que abrace contenido */
  .timePill{
    flex: 0 0 auto;       /* clave: no ocupar ancho completo */
    width: auto;           /* que mida por contenido */
    display: inline-flex;
    margin-top: 10px;

    padding: 10px 14px;
    border-radius: 999px;

    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
  }

  .timeRow{
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
  }

  .timeOld{
    opacity:.55;
  }

  .timeReal{
    color: rgba(34,255,136,1);
  }

  /* meta (aerolínea) */
  .meta{
    margin-top: 10px;
    font-size: 14px;
  }
}

/* =========================
   MOBILE: horario SIEMPRE abajo
   ========================= */
@media (max-width: 640px){

  /* Permitimos wrap pero forzamos que la pill baje a su propia línea */
  .fullRoute{
    flex-wrap: wrap;
  }

  .fullRoute .timePill{
    flex-basis: 100%;     /* ocupa una línea completa */
    width: fit-content;   /* pero el ancho real es el contenido */
    margin-top: 10px;
  }
}

/* =========================
   MOBILE — horario debajo SIN estirarse
   ========================= */
@media (max-width:640px){

  .fullRoute{
    flex-wrap:wrap;
  }

  .fullRoute .timePill{
    flex: 0 0 auto;      /* no crecer */
    width: auto;         /* ancho por contenido */
    max-width: 100%;
    margin-top: 10px;

    /* esto fuerza salto de línea sin estirar */
    display: inline-flex;
  }

  /* truco: hacemos que siempre vaya a nueva línea */
  .fullRoute .timePill::before{
    content:"";
    flex-basis:100%;
    width:0;
  }
}

/* ===== Logo centrado solo en mobile ===== */
@media (max-width: 640px){

  .brand{
    justify-content: center;
  }

  .brand__logo{
    margin: 0 auto;
    display: block;
  }

}

/* ===== FIX MODAL MOBILE STATUS ===== */
@media (max-width:640px){

  .modal__mainCard{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .modal__mainRight{
    width:100%;
    align-items:flex-start;
  }

  .statusPill{
    align-self:flex-start;
    max-width:100%;
    white-space:nowrap;
  }

  .saveFlight{
    width:100%;
    text-align:center;
  }

}

/* ===== Modal: títulos largos NO se cortan (mobile) ===== */
@media (max-width:640px){

  /* Título del header: 2 líneas */
  .modal__title{
    white-space: normal;
    overflow: hidden;
    text-overflow: unset;

    display: -webkit-box;
    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;
    line-clamp: 2; /* ← esta línea elimina el warning */

    line-height: 1.15;
  }

  /* Subtítulo también puede wrapear */
  .modal__sub{
    white-space: normal;
  }

  /* En la card principal (meta aerolínea) que no se corte */
  .modal__meta{
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

.statusPill.consulta{
  background: rgba(255,170,0,.12);
  border-color: rgba(255,170,0,.35);
  color: #ffb347;
}

.statusPill.lastcall{
  color:#ffc83d;
  background:rgba(255,200,61,.12);
  border-color:rgba(255,200,61,.45);
}

.status.consulta{
  color:#ff9f1c;
  background:rgba(255,159,28,.12);
  border-color:rgba(255,159,28,.35);
}

.status.lastcall { 
  color: rgb(255, 141, 59);
  background: rgba(255,122,69,.10);
  border-color: rgba(255,122,69,.35);
}

/* ===========================
   MOBILE: Route + time pill fixed layout
   (Pegalo AL FINAL del CSS)
   =========================== */
@media (max-width: 640px){

  /* fullRoute pasa a grid: 1ra fila route, 2da fila horarios */
  .fullRoute{
    display: grid;
    grid-template-columns: auto auto 1fr; /* from | plane | dest */
    grid-auto-rows: auto;
    column-gap: 10px;
    row-gap: 10px;

    align-items: center;
    min-width: 0; /* clave para ellipsis */
    flex-wrap: unset; /* matamos el wrap en mobile */
  }

  .fullRoute .from{
    grid-column: 1;
    white-space: nowrap;
  }

  .fullRoute .plane{
    grid-column: 2;
    white-space: nowrap;
  }

  .fullRoute .destTxt{
    grid-column: 3;
    min-width: 0;              /* clave */
    white-space: nowrap;       /* NO wrap */
    overflow: hidden;
    text-overflow: ellipsis;   /* ... */
  }

  /* la pill SIEMPRE abajo */
  .fullRoute .timePill{
    grid-column: 1 / -1;
    justify-self: start;
    width: fit-content;        /* que no se estire */
    max-width: 100%;
  }

  /* por si algún estilo la estira */
  .timePill{
    display: inline-flex;
  }
}

.liveDot{
  margin-left:10px;
  font-size:11px;
  color:#00ff9c;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.liveDot::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#00ff9c;
  box-shadow:0 0 6px #00ff9c;
  animation:pulse 1.4s infinite;
}

@keyframes pulse{
  0%{opacity:.4}
  50%{opacity:1}
  100%{opacity:.4}
}

/* Subline alineado */
#subline{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* por si en mobile no entra todo */
}

/* opcional: que el puntito LIVE no “salte” */
#liveDot{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

/* ===============================
SEPARADORES (PILLS): ALERTAS / AHORA / MÁS TARDE
=============================== */

.listDivider{
  margin:26px 8px 12px;
  display:inline-flex;   /* 👈 clave */
  align-items:center;
  gap:10px;

  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:700;

  padding:7px 14px;
  border-radius:999px;

  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);

  color:rgba(255,255,255,.65);
  backdrop-filter: blur(6px);

  width:auto;            /* 👈 importante */
}

/* puntito */
.listDivider::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
}

/* ALERTAS */
.listDivider[data-kind="alertas"]::before{
  background:#FFC857;
  box-shadow:0 0 8px rgba(255,200,80,.6);
}

/* AHORA */
.listDivider[data-kind="ahora"]::before{
  background:#32FF9C;
  box-shadow:0 0 8px rgba(80,255,180,.7);
}

/* MÁS TARDE */
.listDivider[data-kind="mas-tarde"]::before{
  background:#7AD1FF;
  box-shadow:0 0 8px rgba(120,200,255,.6);
}

/* Cards siempre full width */
#list .row{
  width: 100%;
}

/* Dividers (ALERTAS / AHORA / MÁS TARDE) en pill chiquita */
#list .listDivider{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;

  padding: 10px 14px;
  border-radius: 999px;
}

/* ===== micro highlight ===== */

.fadeInNew{
  animation: fadeInNew .85s ease both;
}
@keyframes fadeInNew{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

.pulseChange{
  animation: pulseChange .9s ease both;
}
@keyframes pulseChange{
  0%   { transform: scale(1); }
  35%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* “más fuerte” cuando cambia de bloque */
.pulseStrong{
  animation: pulseStrong 1.1s ease both;
}
@keyframes pulseStrong{
  0%   { transform: scale(1); }
  30%  { transform: scale(1.03); }
  70%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* ================= KPI ANIMATIONS ================= */

.kpiPulse{
  animation: kpiPulse 500ms ease-out;
}
@keyframes kpiPulse{
  0%   { transform: scale(1);   filter: brightness(1); }
  50%  { transform: scale(1.05); filter: brightness(1.15); }
  100% { transform: scale(1);   filter: brightness(1); }
}

/* flash suave (para cancelados subiendo) */
.kpiFlash{
  animation: kpiFlash 900ms ease-in-out;
}
@keyframes kpiFlash{
  0%,100% { box-shadow: none; }
  50%     { box-shadow: 0 0 0 2px rgba(255,80,80,.35), 0 0 28px rgba(255,80,80,.18); }
}

/* badge +N nuevo */
.kpiDelta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(140,255,170,.22);
  background: rgba(20,40,28,.35);
  color: rgba(210,255,230,.92);
}

.kpiDelta[hidden]{ display:none; }

.savedBadge{
  margin-left:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(34,255,136,.25);
  background: rgba(34,255,136,.10);
  color: rgba(236,246,241,.95);
}

/* ================= SAVED PILLS (Mis vuelos) ================= */

#savedList{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.savedPill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,12,.55);
  color: rgba(240,255,245,.92);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}

.savedPill:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  border-color: rgba(140,255,170,.18);
}

.savedPill__logo{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,.92);
  padding: 6px;
}

.savedPill__txt{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.savedPill__x{
  margin-left: 6px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(240,255,245,.78);
  font-size: 22px;
  line-height: 1;
}

.savedPill__x:hover{
  filter: brightness(1.10);
}

/* Dot estado */
.savedDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.08);
}

/* Colores (alineados a tu sistema visualStatusClass) */
.savedDot.cancelado { background: rgba(255, 80, 80, .95); }
.savedDot.demora    { background: rgba(255, 200, 80, .95); }
.savedDot.consulta  { background: rgba(255, 170, 70, .95); }
.savedDot.lastcall  { background: rgba(255, 120, 90, .95); }
.savedDot.boarding  { background: rgba(110, 185, 255, .95); }
.savedDot.cerrado   { background: rgba(190, 200, 210, .85); }
.savedDot.ok        { background: rgba(120, 255, 170, .95); }

/* ================= RADAR TICKER ================= */

.radarTicker{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  z-index: 9999;

  /* 👇 variables de color (se pisan por clase de estado) */
  --radar-bg-1: #0b2b1c;
  --radar-bg-2: #0f3d27;
  --radar-border: rgba(120,255,170,.15);
  --radar-text: rgba(210,255,230,.9);

  background: linear-gradient(90deg, var(--radar-bg-1), var(--radar-bg-2));
  border-bottom: 1px solid var(--radar-border);

  display: flex;
  align-items: center;
}

/* estados */
.radarTicker.radar--ok{
  --radar-bg-1:#0b2b1c;
  --radar-bg-2:#0f3d27;
  --radar-border: rgba(120,255,170,.15);
  --radar-text: rgba(210,255,230,.9);
}

.radarTicker.radar--warn{
  --radar-bg-1:#3a2d05;
  --radar-bg-2:#5a4307;
  --radar-border: rgba(255,210,120,.18);
  --radar-text: rgba(255,240,210,.92);
}

.radarTicker.radar--bad{
  --radar-bg-1:#3a0d0d;
  --radar-bg-2:#5a1414;
  --radar-border: rgba(255,120,120,.18);
  --radar-text: rgba(255,230,230,.92);
}

/* contenedor "máscara" centrado */
.radarTicker__mask{
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* fade suave en bordes (mask) -> ahora usa el mismo color del ticker */
.radarTicker__mask:before,
.radarTicker__mask:after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width: 56px;
  z-index: 2;
  pointer-events:none;
}

.radarTicker__mask:before{
  left:0;
  background: linear-gradient(90deg, var(--radar-bg-1), rgba(0,0,0,0));
}

.radarTicker__mask:after{
  right:0;
  background: linear-gradient(270deg, var(--radar-bg-2), rgba(0,0,0,0));
}

/* el texto scrolleando */
.radarTicker__inner{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: tickerMove 28s linear infinite;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--radar-text);
}

@keyframes tickerMove{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.tickerSep{
  margin: 0 14px;
  opacity: .55;
}

body{
  padding-top: 36px;
}

/*up rendimiento*/

@media (max-width: 640px){
  .cardFxGlow{
    box-shadow: 0 0 12px rgba(0,0,0,.25); /* glow liviano */
  }
}

.row{
  transform: translateZ(0);
  will-change: transform;
}

body{
  background:#11181A;
}

html{
  scroll-behavior:smooth;
}

/* Header de "Mis vuelos" (título + badge) */
.savedBar_title{
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin-bottom: 14px; /* 👈 aire para que no choque con las pills */
}

/* (Opcional) por si el contenedor del listado está muy pegado */
.savedBar__list,
#savedList{
  margin-top: 0; /* lo dejamos controlado por el margin del título */
}

/* El badge */
.savedBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  line-height: 1;
  transform: translateY(1px); /* micro-ajuste visual (opcional) */
}

/* ===== FLIGHT TOAST ===== */

.toastContainer{
  margin: 16px 0 8px;
}

.flightToast{
  position: relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-radius:14px;
  background: rgba(18,30,26,0.85);
  backdrop-filter: blur(10px);
  border:1px solid rgba(120,255,170,.15);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  animation: toastIn .25s ease;
}

.flightToast__content{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.flightToast__dot{
  width:10px;
  height:10px;
  border-radius:50%;
  margin-top:6px;
  background:#22ff88;
}

.flightToast__title{
  font-weight:600;
  font-size:14px;
}

.flightToast__sub{
  font-size:12px;
  opacity:.7;
}

.flightToast__close{
  background:none;
  border:none;
  color:rgba(255,255,255,.6);
  font-size:18px;
  cursor:pointer;
}

.flightToast__close:hover{
  color:white;
}

/* severidades */

.flightToast.warn{
  border-left:4px solid #ffc83d;
}

.flightToast.warn .flightToast__dot{
  background:#ffc83d;
}

.flightToast.bad{
  border-left:4px solid #ff4d4d;
}

.flightToast.bad .flightToast__dot{
  background:#ff4d4d;
}

.flightToast.ok{
  border-left:4px solid #22ff88;
}

@keyframes toastIn{
  from{
    opacity:0;
    transform: translateY(-6px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

.btn.btn--ghost{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn.btn--ghost:hover{
  background: rgba(255,255,255,.10);
}
.btnIcon{ opacity:.8; }

/* ===== BOTÓN SHARE ===== */

#shareFlightBtn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* DESKTOP (ya lo tenés casi bien) */
.modal__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== MOBILE ===== */
@media (max-width: 720px){

  /* el contenedor derecho del modal */
  .modal__mainRight{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* cuando el botón se mueve abajo */
  .share--mobile{
    width: 100%;
    justify-content: center;
    order: 2;
  }

  #saveFlightBtn{
    order: 1;
  }

  #shareFlightBtn.share--mobile{
    margin-top: 4px;
  }

}