/* ==========================================================================
   Tailandia: "postal del Andamán"
   Agua de laguna, selva, guirnaldas de caléndula (marigold) y la tipografía
   Kanit, diseñada por la fundición tailandesa Cadson Demak (licencia OFL,
   autoalojada en /fonts: nada se descarga de terceros).
   ========================================================================== */

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/kanit-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/kanit-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/kanit-thai-500-normal.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/kanit-thai-600-normal.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  /* Paleta */
  --shallows: #eef6f4;     /* agua poco profunda sobre arena blanca: fondo */
  --shell: #ffffff;        /* superficies */
  --abyss: #0e2a33;        /* texto */
  --abyss-dim: #4b6a70;
  --reef: #d3e5e2;         /* bordes */
  --lagoon: #087c81;       /* acción principal (AA sobre blanco) */
  --lagoon-soft: #dcefed;
  --marigold: #f2a93b;     /* guirnaldas, sol, el detalle cálido */
  --marigold-soft: #fcecd0;
  --marigold-ink: #8c5300;
  --jungle: #2f6b3f;
  --jungle-soft: #e0eee2;
  --hibiscus: #b8325f;

  /* Escena */
  --sky-top: #7fcbdc;
  --sky-mid: #c4ebe8;
  --sky-horizon: #fde3b4;
  --sun-core: #ffd982;
  --sun-edge: #f2a93b;
  --sea-back: #6ccac6;
  --sea-mid: #26a4a6;
  --sea-front: #0b8a8f;
  --palm: #1f4f33;
  --boat: #3b2a1e;
  --stars: transparent;

  /* Roles */
  --bg: var(--shallows);
  --bg-elevated: var(--shell);
  --text: var(--abyss);
  --text-dim: var(--abyss-dim);
  --border: var(--reef);
  --accent: var(--lagoon);
  --accent-text: #ffffff;
  --danger: #b42318;
  --warn: var(--marigold-ink);
  --warn-bg: var(--marigold-soft);

  --font-display: "Kanit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 18px;
  --radius-field: 12px;
  --gap: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* La misma postal, de noche: luna sobre la laguna */
    --shallows: #071a21;
    --shell: #0d2730;
    --abyss: #e4f2ef;
    --abyss-dim: #93b3b3;
    --reef: #1b3c45;
    --lagoon: #3ccfc8;
    --lagoon-soft: #10363b;
    --marigold: #f5b651;
    --marigold-soft: #33260c;
    --marigold-ink: #f5c36f;
    --jungle: #74d08f;
    --jungle-soft: #12301d;
    --hibiscus: #f07aa0;

    --sky-top: #0a1830;
    --sky-mid: #14365a;
    --sky-horizon: #2c5670;
    --sun-core: #fbf3dc;
    --sun-edge: #e9dcb5;
    --sea-back: #1d5a63;
    --sea-mid: #134651;
    --sea-front: #0c3640;
    --palm: #04131a;
    --boat: #02090d;
    --stars: rgba(255, 255, 255, 0.85);

    --accent-text: #03201f;
    --danger: #f97066;
  }
}

/* Elección manual desde el interruptor día/noche */
:root[data-theme="dark"] {
    /* La misma postal, de noche: luna sobre la laguna */
    --shallows: #071a21;
    --shell: #0d2730;
    --abyss: #e4f2ef;
    --abyss-dim: #93b3b3;
    --reef: #1b3c45;
    --lagoon: #3ccfc8;
    --lagoon-soft: #10363b;
    --marigold: #f5b651;
    --marigold-soft: #33260c;
    --marigold-ink: #f5c36f;
    --jungle: #74d08f;
    --jungle-soft: #12301d;
    --hibiscus: #f07aa0;

    --sky-top: #0a1830;
    --sky-mid: #14365a;
    --sky-horizon: #2c5670;
    --sun-core: #fbf3dc;
    --sun-edge: #e9dcb5;
    --sea-back: #1d5a63;
    --sea-mid: #134651;
    --sea-front: #0c3640;
    --palm: #04131a;
    --boat: #02090d;
    --stars: rgba(255, 255, 255, 0.85);

    --accent-text: #03201f;
    --danger: #f97066;
  }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* --- Base ---------------------------------------------------------------- */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
}

#app { display: flex; flex-direction: column; min-height: 100vh; }
#app[hidden], #lock-screen[hidden], #hidden-cover[hidden] { display: none; }

.view {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.view:focus { outline: none; }
.narrow { max-width: 560px; margin: 0 auto; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

h1, h2, .card-title, .scene-greeting, .clock-time, .day-num, .tab-label, .btn-primary, .more-tile {
  font-family: var(--font-display);
}
h1 { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 8px 0 18px; }
h2 { font-size: 19px; font-weight: 500; line-height: 1.25; margin: 26px 0 10px; }
h3 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; color: var(--text-dim); }
p { margin: 0 0 8px; }
a { color: var(--accent); }

button, input, select, textarea { font-family: inherit; font-size: 16px; color: var(--text); }

/* Ocultación inmediata al pasar a segundo plano (S10) */
#hidden-cover { position: fixed; inset: 0; background: var(--bg); z-index: 9999; }
#hidden-cover:not([hidden]) ~ * { display: none !important; }

/* --- Escena: la postal -------------------------------------------------- */

.scene {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-horizon) 78%);
  isolation: isolate;
}
.scene-hero { min-height: 300px; margin: 0 -4px 14px; }
.scene-compact { height: 190px; border-radius: 0 0 28px 28px; }

.scene-art { position: absolute; inset: 0; z-index: -1; }

.scene-stars {
  position: absolute; inset: 0 0 45% 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, var(--stars) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 12%, var(--stars) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 30%, var(--stars) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 9%, var(--stars) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 26%, var(--stars) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 44%, var(--stars) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 6%, var(--stars) 50%, transparent 51%);
}

.scene-sun {
  position: absolute;
  right: 30%;
  bottom: 62px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--sun-core) 0 45%, var(--sun-edge) 100%);
  box-shadow: 0 0 60px 18px color-mix(in srgb, var(--sun-edge) 45%, transparent);
}
.scene-compact .scene-sun { width: 70px; height: 70px; bottom: 40px; right: 30%; }

.scene-palm {
  position: absolute;
  right: -16px;
  bottom: 30px;
  width: 112px;
  height: 140px;
  background-color: var(--palm);
  -webkit-mask: url("../icons/palm.svg") no-repeat center / contain;
  mask: url("../icons/palm.svg") no-repeat center / contain;
  transform: scaleX(-1) rotate(-4deg);
  opacity: 0.9;
}
.scene-compact .scene-palm { width: 84px; height: 106px; bottom: 20px; }
.scene-compact .wave-back  { height: 52px; }
.scene-compact .wave-mid   { height: 36px; }
.scene-compact .wave-front { height: 20px; }

.scene-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; }
.scene-compact .scene-sea { height: 64px; }

/* Cada ola: una cresta (la forma de wave.svg) y debajo relleno sólido */
.wave { position: absolute; left: 0; right: 0; bottom: 0; }
.wave::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: var(--wave-color);
  -webkit-mask: url("../icons/wave.svg") repeat-x 0 0 / 64px 14px;
  mask: url("../icons/wave.svg") repeat-x 0 0 / 64px 14px;
  -webkit-mask-position: var(--wave-shift, 0) 0;
  mask-position: var(--wave-shift, 0) 0;
}
.wave::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; bottom: 0; background: var(--wave-color); }
.wave-back  { height: 70px; }
.wave-mid   { height: 50px; }
.wave-front { height: 30px; }
.wave-back  { --wave-color: var(--sea-back); }
.wave-mid   { --wave-color: var(--sea-mid);   --wave-shift: 22px; }
.wave-front { --wave-color: var(--sea-front); --wave-shift: 44px; }

.scene-boat {
  position: absolute;
  left: 12%;
  bottom: 38px;
  width: 104px;
  height: 35px;
  background-color: var(--boat);
  -webkit-mask: url("../icons/boat.svg") no-repeat center / contain;
  mask: url("../icons/boat.svg") no-repeat center / contain;
  transform-origin: 50% 90%;
  animation: bob 5.5s ease-in-out infinite;
}
.scene-compact .scene-boat { width: 82px; height: 28px; bottom: 30px; left: 16%; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-3px) rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-boat { animation: none; }
}

.scene-text { position: relative; padding: 22px 22px 110px; }
.scene-greeting {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 2px;
  color: color-mix(in srgb, var(--abyss) 70%, transparent);
}
.scene .scene-title {
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.scene-headline { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin: 0 0 2px; }
.scene-subline { font-size: 14px; color: color-mix(in srgb, var(--abyss) 72%, transparent); margin: 0; }

/* Interruptor día/noche, sobre el cielo de la postal */
.theme-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 64px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ffffff 55%, transparent);
  background: color-mix(in srgb, #ffffff 35%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
:root[data-theme="dark"] .theme-switch { background: color-mix(in srgb, #ffffff 12%, transparent); border-color: color-mix(in srgb, #ffffff 25%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switch { background: color-mix(in srgb, #ffffff 12%, transparent); border-color: color-mix(in srgb, #ffffff 25%, transparent); }
}
.theme-switch-icon {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  background-color: var(--abyss);
  opacity: 0.55;
}
.theme-switch-sun  { left: 8px;  -webkit-mask: url("../icons/sun.svg") no-repeat center / contain;  mask: url("../icons/sun.svg") no-repeat center / contain; }
.theme-switch-moon { right: 8px; -webkit-mask: url("../icons/moon.svg") no-repeat center / contain; mask: url("../icons/moon.svg") no-repeat center / contain; }
.theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe3a0, var(--marigold));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}
.theme-switch[aria-checked="true"] .theme-knob {
  transform: translateX(30px);
  background: radial-gradient(circle at 40% 40%, #ffffff, #e9dcb5);
}
@media (prefers-reduced-motion: reduce) {
  .theme-knob { transition: none; }
}

.segmented { display: flex; gap: 6px; margin-bottom: 18px; }
.segmented button {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }

/* --- Hoy: relojes ------------------------------------------------------- */

.clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: var(--gap);
}
.clock { display: flex; flex-direction: column; padding: 12px 16px; }
.clock + .clock { border-left: 1px solid var(--border); }
.clock-city { font-size: 13px; color: var(--text-dim); }
.clock-time { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.15; }
.clock-dest .clock-time { color: var(--accent); }


/* --- Tarjetas, botones, campos ------------------------------------------ */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: var(--gap);
}
.card[role="button"] { cursor: pointer; }
.card-night { border-left: 5px solid var(--marigold); }
.card-next { cursor: pointer; }
.card-title { font-size: 17px; font-weight: 500; line-height: 1.3; margin-bottom: 2px; }
.card-sub { color: var(--text-dim); font-size: 14px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.btn-small { width: auto; min-height: 38px; padding: 6px 14px; font-size: 14px; }

.btn-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  margin: 0 0 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 5px; }
.field input, .field textarea, .field select,
input[type="password"], input[type="text"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: var(--radius-field);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}
.field textarea, textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, input:focus, textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 0;
}
input[type="file"] { min-height: 0; padding: 8px 0; border: 0; background: none; }

/* --- Pantalla de bloqueo ------------------------------------------------ */

#lock-screen { min-height: 100vh; background: var(--bg); }
.screen-inner { max-width: 480px; margin: 0 auto; padding: 22px 20px calc(32px + env(safe-area-inset-bottom)); }
.screen-inner h1 { margin-top: 0; }
.screen-inner > .btn { margin-top: 6px; background: transparent; }

/* --- Barra de pestañas -------------------------------------------------- */

.tabbar {
  position: sticky;
  bottom: 0;
  display: flex;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4px 4px env(safe-area-inset-bottom);
  z-index: 10;
}
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 7px 2px 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
}
.tab-icon {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.tab-label { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }
.tabbar [data-tab="hoy"]        { --icon: url("../icons/tab-hoy.svg"); }
.tabbar [data-tab="itinerario"] { --icon: url("../icons/tab-itinerario.svg"); }
.tabbar [data-tab="reservas"]   { --icon: url("../icons/tab-reservas.svg"); }
.tabbar [data-tab="listas"]     { --icon: url("../icons/tab-listas.svg"); }
.tabbar [data-tab="mas"]        { --icon: url("../icons/tab-mas.svg"); }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar button[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 0 0 3px 3px;
  background: var(--marigold);
}

/* --- Itinerario ---------------------------------------------------------- */

.day-card {
  --kind: var(--text-dim);
  --kind-soft: color-mix(in srgb, var(--text-dim) 12%, var(--bg-elevated));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
}
.day-card[data-kind="mar"]    { --kind: var(--lagoon);       --kind-soft: var(--lagoon-soft); }
.day-card[data-kind="selva"]  { --kind: var(--jungle);       --kind-soft: var(--jungle-soft); }
.day-card[data-kind="ciudad"] { --kind: var(--marigold-ink); --kind-soft: var(--marigold-soft); }

.day-date {
  flex: none;
  width: 58px;
  padding: 6px 0 7px;
  border-radius: 14px;
  background: var(--kind-soft);
  color: var(--kind);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.day-wd, .day-mon { font-size: 12px; font-weight: 600; }
.day-num { font-size: 26px; font-weight: 600; }
.day-place { font-size: 14px; color: var(--kind); font-weight: 600; margin-bottom: 1px; }
.day-count {
  flex: none;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.region-tag {
  display: inline-block;
  margin: -8px 0 16px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--lagoon-soft);
  color: var(--lagoon);
}
.region-tag[data-kind="selva"]  { background: var(--jungle-soft); color: var(--jungle); }
.region-tag[data-kind="ciudad"] { background: var(--marigold-soft); color: var(--marigold-ink); }
.region-tag[data-kind="ruta"]   { background: var(--bg-elevated); color: var(--text-dim); border: 1px solid var(--border); }

/* Línea de tiempo de un día: una ruta punteada con paradas */
.timeline-item {
  position: relative;
  padding: 0 0 18px 26px;
  cursor: pointer;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: -6px;
  border-left: 2px dotted color-mix(in srgb, var(--accent) 55%, transparent);
}
.timeline { margin-bottom: 10px; }
.timeline-item:last-child::before { display: none; }
.timeline-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--accent);
}
.timeline-item[data-type="hotel"]::after { border-color: var(--marigold); }
.timeline-item[data-type="activity"]::after,
.timeline-item[data-type="place"]::after { border-color: var(--jungle); }
.timeline-time { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }

/* --- Más --------------------------------------------------------------- */

.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-tile {
  width: 100%;
  min-height: 84px;
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.more-label { font-size: 18px; font-weight: 500; }
.more-hint { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--text-dim); line-height: 1.3; }

/* --- Piezas pequeñas ---------------------------------------------------- */

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.pill-done { color: var(--jungle); border-color: transparent; background: var(--jungle-soft); font-weight: 600; }
.pill-pending { color: var(--warn); border-color: transparent; background: var(--warn-bg); font-weight: 700; }

.pending-list li { display: flex; align-items: baseline; gap: 6px; }

.warn-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius-field);
  padding: 10px 14px;
  margin-bottom: var(--gap);
  font-size: 14px;
}

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { margin-bottom: 10px; }

.tabs-strip { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; }
.tabs-strip button {
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 38px;
  color: var(--text-dim);
  cursor: pointer;
}
.tabs-strip button[aria-current="true"] { color: var(--accent-text); background: var(--accent); border-color: var(--accent); font-weight: 600; }

.empty-state { text-align: center; color: var(--text-dim); padding: 40px 16px; }

/* --- Superposiciones ---------------------------------------------------- */

.taxi-view {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg-elevated);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.taxi-view .name { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-bottom: 16px; }
.taxi-view .address { font-size: 24px; line-height: 1.5; }

.viewer-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(2, 12, 16, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.viewer-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close {
  position: absolute; top: env(safe-area-inset-top, 12px); right: 12px;
  background: rgba(255, 255, 255, 0.15); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
}
