/* ═══════════════════════════════════════════════════════════════════════
   El sistema visual de la app: sobrio, a la manera de Apple.

   Una pasada de diseño sobre TODA la app del conductor (octubre de 2026). No
   cambia qué hay en cada pantalla ni qué hace: cambia cómo se lee. Va después
   de `ios.css` —es una capa encima— y antes de `movimiento.css`.

   Sebastián pidió «como Apple, sobrio, minimal: misma tipografía, bordes,
   redondeado y demás». Los criterios salen de los principios de diseño de
   Apple (los de sus charlas de la WWDC):

   1. LA LETRA DEL SISTEMA. En un iPhone es San Francisco, con su ajuste
      óptico y su interletrado ya hechos. No se descarga ninguna fuente.

   2. EL INTERLETRADO DEPENDE DEL TAMAÑO. Lo grande va apretado; el texto, en
      cero. Un solo valor para todo queda mal en alguna parte.

   3. LA JERARQUÍA SALE DE PESO + TAMAÑO + INTERLÍNEA, no de adornos: una
      cifra grande, un título, el texto y una nota.

   4. SUPERFICIES SIN SOMBRA NI BORDE. Fichas blancas sobre el gris agrupado
      del sistema; las separa el tono. Dentro de una lista, una raya finísima
      que arranca donde arranca el texto.

   5. LO QUE FLOTA ES MATERIAL. La barra de pestañas y los controles del mapa
      son translúcidos, con el contenido pasando por debajo. Un material no
      se apila sobre otro.

   6. SIMPLE, QUE NO ES LO MISMO QUE VACÍO. Sale lo que no aporta —rótulos en
      mayúsculas diminutas, cajas dentro de cajas, pastillas— para que lo
      importante sea lo más evidente.

   7. TODO A LA IZQUIERDA, como los títulos grandes del sistema. Centrada
      queda una sola cosa: la moneda de los puntos.

   El color de acento es el azul de la marca, y es el único.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Los grises agrupados del sistema. */
  --papel: #f2f2f7;
  --blanco: #ffffff;
  --gris-suave: #f2f2f7;
  --relleno: #e9e9ee; /* controles y botones secundarios */

  --tinta: #1d1d1f;
  --tinta-media: #424245;
  --tinta-suave: #6e6e73;
  --tinta-tenue: #6e6e73;

  --borde: #e5e5ea;
  --borde-fuerte: #d1d1d6;
  /* La raya de las listas: casi nada. */
  --separador: rgba(60, 60, 67, 0.2);

  --azul-tenue: #eceafe;
  --azul-borde: #eceafe;

  --verde: #1d7a39;
  --verde-vivo: #30b455;
  --verde-tenue: #e4f6e9;
  --verde-borde: #e4f6e9;

  --noche: #1c1c1e; /* lo oscuro del sistema, para todo lo que es puntos */
  --noche-2: #3a3a3c;

  --texto: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --titular: var(--texto);
  --mono: var(--texto);

  --radio: 22px;
  --radio-sm: 14px;

  /* En reposo, nada flota. */
  --sombra: none;
  /* Lo que va encima del mapa sí, y suave. */
  --sombra-media: 0 4px 22px rgba(0, 0, 0, 0.12);

  /* El material de lo que flota: translúcido, con el fondo desenfocado. */
  --material: rgba(255, 255, 255, 0.76);
  --desenfoque: saturate(180%) blur(20px);

  /* Para lo que ENTRA: la curva de las hojas del sistema. Frena sin rebote,
     como un resorte con amortiguación crítica. */
  --salida: cubic-bezier(0.32, 0.72, 0, 1);
}

body {
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.3;
  font-optical-sizing: auto;
  color: var(--tinta);
}

/* El foco se ve: quien navega con teclado tiene que saber dónde está. */
:where(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 2px;
}

/* ── Títulos ────────────────────────────────────────────────────────── */

.cabecera .marca .nombre {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* El título grande del sistema: 34 sobre 41, apretado. */
.titulo-grande,
.cta-titulo {
  font-size: 34px;
  line-height: 41px;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 10px 0 4px;
}

/* Los títulos de sección, como se escriben y a un tamaño que se lee. */
.titulo-seccion {
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.018em;
  text-transform: none;
  color: var(--tinta);
  margin: 30px 0 10px;
}
#p-cuenta .titulo-seccion {
  margin-top: 30px;
}

.etiqueta {
  font-family: var(--texto);
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tinta-suave);
  margin-bottom: 2px;
}
.sitio-nombre {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sitio-detalle {
  font-size: 15px;
  line-height: 20px;
  color: var(--tinta-suave);
}

/* Las notas van a la izquierda, con el resto. */
.nota {
  text-align: left;
  font-size: 13px;
  line-height: 18px;
}
.cta-quien {
  color: var(--tinta-suave);
}

/* ── Botones ─────────────────────────────────────────────────────────
   Cápsula de 50, texto de 17 en seminegrita. El principal va relleno del
   acento; el secundario, gris de relleno con el texto en tinta. */

.boton {
  min-height: 50px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* Dos botones apilados no se tocan. (Solo los apilados: los que van lado a
   lado, en la hoja de la estación, tienen su propio hueco.) */
.pantalla > .boton + .boton {
  margin-top: 10px;
}
.boton-fantasma {
  background: var(--blanco);
  color: var(--azul);
}
.boton-fantasma:hover:not(:disabled) {
  color: var(--azul);
}
.boton-oscuro {
  background: var(--relleno);
  color: var(--tinta);
}
.boton-mantener {
  min-height: 56px;
  border-radius: 999px;
  background: var(--tinta);
}
.boton-mantener .texto b {
  font-size: 17px;
  font-weight: 600;
}
.boton-mantener .texto small {
  font-size: 12px;
  color: #d1d1d6;
}
.boton-oro {
  min-height: 50px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
}
.campo input,
.ech-fila input {
  border-radius: 12px;
  background: var(--blanco);
  font-size: 17px;
}

/* ── Lo que flota es material ────────────────────────────────────────
   Translúcido y con el fondo desenfocado: el contenido pasa por debajo en
   vez de chocar contra una franja opaca. */

/* ── La barra de pestañas, flotando ──
   Una cápsula de material suelta del borde, como en las referencias que
   mandó Sebastián: la pestaña en la que estás se abre en una píldora con su
   nombre; las demás son solo su icono. El nombre de las otras no se borra
   —sigue ahí para los lectores de pantalla—, solo se encoge a cero. */
.barra-nav {
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: none;
  width: auto;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--material);
  backdrop-filter: var(--desenfoque);
  -webkit-backdrop-filter: var(--desenfoque);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.nav-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  flex-direction: row;
  justify-content: center;
  gap: 0;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--tinta-suave);
  transition:
    flex-grow 0.42s var(--salida),
    background-color 0.25s ease,
    color 0.25s ease;
}
.nav-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.nav-item span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    max-width 0.42s var(--salida),
    margin 0.42s var(--salida),
    opacity 0.2s ease;
}
.nav-item.activo {
  flex-grow: 2.2;
  background: var(--azul-tenue);
  color: var(--azul);
}
.nav-item.activo span {
  max-width: 120px;
  margin-left: 8px;
  opacity: 1;
}
/* Lo de abajo de cada pantalla no queda debajo de la cápsula. */
body.con-nav .envoltura {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}
#p-mapa .leaflet-control-attribution {
  margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* ── Arriba no va el logo ──
   Quien abrió la app ya sabe de quién es. La franja de arriba solo aparece
   cuando tiene algo que decir —sin conexión, o que esto es el banco de
   pruebas— y entonces dice solo eso. */
.cabecera .marca {
  display: none;
}
.cabecera {
  justify-content: flex-end;
  margin-bottom: 4px;
  padding-bottom: 0;
}
.cabecera.tranquila {
  display: none;
}
.estado-red {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--relleno);
  font-size: 13px;
  font-weight: 500;
  color: var(--tinta-media);
}

.mapa-buscar,
.mapa-redondo,
.mapa-resultados,
#p-mapa .vistas,
#p-mapa #aviso-mapa .aviso {
  background: var(--material);
  backdrop-filter: var(--desenfoque);
  -webkit-backdrop-filter: var(--desenfoque);
  box-shadow: var(--sombra-media);
}
.mapa-buscar {
  height: 48px;
}
.mapa-redondo {
  width: 48px;
  height: 48px;
}
.mapa-buscar input {
  font-size: 17px;
}
#p-mapa .vista {
  min-height: 38px;
  font-size: 15px;
}
.mapa-resultado {
  border-top: 0.5px solid var(--separador);
}

/* El mapa ya viene sobrio (Positron, con los grises de la app: `app.js`).
   El filtro de antes se queda SOLO para el respaldo de las calles de siempre
   —las imágenes `.leaflet-tile`—: sobre el mapa sobrio le quitaría el color
   que se le puso a propósito. */
#lienzo-mapa .leaflet-tile-pane,
#p-mapa .leaflet-tile-pane {
  filter: none;
}
#lienzo-mapa .leaflet-tile {
  filter: grayscale(0.7) brightness(1.05) contrast(0.92);
}
#p-mapa .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.7);
  color: var(--tinta-suave);
  font-size: 10px;
}
#p-mapa .leaflet-control-attribution a {
  color: var(--tinta-suave);
}
.pin {
  font-weight: 700;
}
.pin .pin-cifra {
  font-weight: 700;
}

/* La lista de estaciones. */
.estacion-nombre {
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.estacion-detalle,
.estacion-km {
  font-size: 15px;
  line-height: 20px;
}
.estacion-libres {
  font-size: 15px;
  font-weight: 600;
  color: var(--verde);
}
.estacion.llena .estacion-libres {
  color: var(--ambar);
}
.estacion-libres.sin-saber {
  color: var(--tinta-suave);
}

/* ── La hoja de la estación ─────────────────────────────────────────
   Tres datos en fila, sin caja cada uno; y los cargadores sin la caja que
   envolvía a sus mangueras: una caja dentro de otra no ordena, amontona. */

.hoja-titulo .sitio-nombre {
  font-size: 22px;
  line-height: 28px;
}
.disponibilidad-resumen {
  font-size: 15px;
}
.hoja-datos {
  gap: 16px;
  margin: 4px 2px 2px;
}
.hoja-dato {
  align-items: flex-start;
  padding: 0;
  border-radius: 0;
  background: none;
  text-align: left;
}
.hoja-dato b {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hoja-dato span {
  font-size: 13px;
  line-height: 18px;
}
#p-ficha .equipo {
  padding: 0;
  margin-bottom: 18px;
  border-radius: 0;
  background: none;
}
.equipo-nombre {
  font-size: 17px;
  font-weight: 600;
}
.equipo-libres {
  font-size: 15px;
}
.bocas-fila {
  gap: 10px;
}
.boca-chip {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--gris-suave);
  text-align: left;
}
.boca-chip .boca-rotulo {
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.boca-chip .boca-tipo,
.boca-chip .boca-estado {
  font-size: 13px;
  line-height: 18px;
}
.boca-chip .boca-estado {
  font-weight: 600;
}

/* La manguera que le entra a su carro: se ven todas, y se nota cuál es suya. */
.boca-chip {
  position: relative;
}
.boca-chip.es-suya {
  box-shadow: inset 0 0 0 1.5px var(--azul);
}
.boca-suya {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--azul);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}
#p-ficha #aviso-ficha .aviso {
  margin: 0 0 12px;
}
.hoja-acciones .boton:disabled {
  opacity: 0.4;
}

/* ── «Navegar»: la hoja de acciones del sistema ──
   Sube desde abajo sobre todo lo demás, con el fondo atenuado; las opciones en
   un bloque y «Cancelar» aparte, como en el iPhone. Sale por donde entró. */
.navegar-hoja {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
}
.navegar-fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.navegar-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  transform: translateY(110%);
  transition: transform 0.35s var(--salida);
}
.navegar-hoja.abierta .navegar-fondo {
  opacity: 1;
}
.navegar-hoja.abierta .navegar-panel {
  transform: none;
}
.navegar-grupo {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--desenfoque);
  -webkit-backdrop-filter: var(--desenfoque);
}
.navegar-titulo {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  color: var(--tinta-suave);
}
.navegar-opcion,
.navegar-cancelar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  font-size: 20px;
  color: var(--azul);
  text-decoration: none;
}
.navegar-opcion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: var(--separador);
}
.navegar-opcion:active {
  background: rgba(0, 0, 0, 0.06);
}
.navegar-cancelar {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--azul);
  cursor: pointer;
}

/* ── Listas agrupadas ────────────────────────────────────────────────
   Como las del sistema: renglones seguidos en una sola ficha, y entre ellos
   una raya finísima que arranca donde arranca el texto. */

.lista-app {
  padding: 0;
}
.lista-app > * {
  position: relative;
  border-top: none;
  padding: 13px 18px;
}
.lista-app > * + *::before,
.cta-carga + .cta-carga::before,
.cta-tarjeta + .cta-tarjeta::before,
.recibo .renglon + .renglon::before,
.monto.referencia + .monto.referencia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 0.5px;
  background: var(--separador);
}
.recibo {
  padding: 4px 0;
}
.recibo .renglon {
  position: relative;
  border: none;
  padding: 12px 18px;
  font-size: 17px;
}
.recibo .renglon .rotulo {
  color: var(--tinta);
}
.recibo .renglon .cifra {
  font-family: var(--texto);
  font-weight: 400;
  color: var(--tinta-suave);
}
.res-saldo,
.ech-saldo {
  border-top: none;
}

/* Las cargas y las tarjetas eran una ficha suelta por renglón: diez cargas,
   diez fichas iguales. Ahora son una sola lista. */
.cta-carga,
.cta-tarjeta {
  position: relative;
  margin-bottom: 0;
  padding: 12px 18px;
  border-radius: 0;
}
.cta-carga:not(.cta-carga + .cta-carga),
.cta-tarjeta:not(.cta-tarjeta + .cta-tarjeta) {
  border-top-left-radius: var(--radio);
  border-top-right-radius: var(--radio);
}
.cta-carga:not(:has(+ .cta-carga)),
.cta-tarjeta:not(:has(+ .cta-tarjeta)) {
  margin-bottom: 12px;
  border-bottom-left-radius: var(--radio);
  border-bottom-right-radius: var(--radio);
}
.cta-carga b,
.cta-tarjeta-texto b {
  font-size: 17px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.cta-carga span {
  font-size: 13px;
  line-height: 18px;
}
.cta-carga .der b {
  font-weight: 400;
  color: var(--tinta);
}
/* La tarjeta bancaria: un trazo neutro. El azul queda para la nuestra. */
.cta-chip {
  background: var(--tinta);
  border-radius: 6px;
}

/* ── La ficha del punto: sin caja dentro de la caja ─────────────────── */

.ficha .datos {
  /* En fila y cada dato de su ancho: con tres columnas iguales, el conector
     («CCS1 · 1A») no cabía en la suya y se pegaba al de al lado. */
  display: flex;
  gap: 24px;
  margin-top: 14px;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.ficha .dato {
  background: none;
  padding: 0;
}
.dato .valor {
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: -0.018em;
  /* «CCS2 · 1B» partido en dos renglones dejaba la fila coja. */
  white-space: nowrap;
}
.dato .clave {
  font-size: 13px;
  line-height: 18px;
  margin-top: 0;
}

/* Lo que rinde cada monto, como una tabla y no como seis fichas iguales. */
.montos:has(.monto.referencia) {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border-radius: var(--radio);
  background: var(--blanco);
  overflow: hidden;
}
.monto.referencia {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 14px;
  align-items: baseline;
  padding: 11px 18px;
  border: none;
  border-radius: 0;
  background: none;
}
.monto.referencia .cifra {
  grid-row: 1 / span 2;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.monto.referencia .equivale {
  text-align: right;
  font-size: 17px;
  line-height: 22px;
  color: var(--tinta);
}
.monto.referencia .equivale.km {
  font-size: 13px;
  line-height: 18px;
  color: var(--tinta-suave);
}

.aviso {
  font-size: 15px;
  line-height: 20px;
}
.con-tarjeta .ct-titulo {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.con-tarjeta p {
  font-size: 15px;
  line-height: 20px;
}

/* ── «Diríjase a la manguera»: el rótulo es la pantalla ─────────────
   Es lo único que el conductor tiene que llevarse de acá: se lee de un
   vistazo, caminando hacia el surtidor. */

#p-asignada .ficha {
  padding: 4px 0 0;
  background: none;
  border-radius: 0;
}
#p-asignada .etiqueta {
  font-size: 17px;
  line-height: 22px;
  color: var(--tinta-suave);
}
#p-asignada .rotulo-grande {
  margin: 2px 0 10px -0.04em;
  font-size: clamp(120px, 38vw, 148px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--tinta);
}
#p-asignada .sitio-detalle {
  font-size: 17px;
  line-height: 22px;
  color: var(--tinta-suave);
}
.pasos {
  gap: 0;
  margin-top: 22px;
  border-radius: var(--radio);
  background: var(--blanco);
  overflow: hidden;
}
.paso {
  position: relative;
  padding: 13px 18px;
  font-size: 17px;
  line-height: 22px;
  color: var(--tinta);
}
.paso + .paso::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 0.5px;
  background: var(--separador);
}
/* Tres frases en orden no necesitan un numerito en un círculo cada una. */
.paso-num {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   LA CARGA EN VIVO
   Con el dibujo: la batería arriba a la izquierda, grande, y el carro debajo
   de borde a borde, sin marco. Sin dibujo (fuera de temporada) queda el aro,
   que es simétrico y por eso va centrado.
   ═══════════════════════════════════════════════════════════════════════ */

/* «Sesión de carga» no dice nada que la pantalla no esté diciendo. */
#p-sesion .ses-sub {
  display: none;
}
#p-sesion .ses-sitio {
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tinta-suave);
}
.ses-grande {
  gap: 4px;
  color: var(--tinta);
}
.ses-numero {
  font-size: 88px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.ses-unidad {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tinta-suave);
}
.ses-pie {
  font-size: 15px;
  line-height: 20px;
  color: var(--tinta-suave);
}
/* El estado, dicho y ya: sin pastilla ni mayúsculas. */
.ses-estado {
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--tinta);
}
.ses-estimado-1 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
}
.ses-estimado-1 b {
  font-weight: 600;
}
.ses-estimado-2 {
  font-size: 13px;
  line-height: 18px;
}

#p-sesion:has(#s-ilustracion:not([hidden])) .ses-cab {
  margin: 10px 0 4px;
  text-align: left;
}
#p-sesion:has(#s-ilustracion:not([hidden])) .ses-centro {
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 0;
}
#p-sesion:has(#s-ilustracion:not([hidden])) .ses-pie,
#p-sesion:has(#s-ilustracion:not([hidden])) .ses-estimado {
  text-align: left;
}
#p-sesion:has(#s-ilustracion:not([hidden])) .ses-estado {
  margin-top: 10px;
}
#p-sesion:has(#s-ilustracion:not([hidden])) .ses-estimado {
  margin-top: 2px;
}

/* El dibujo, sin ficha: de borde a borde, y arriba y abajo se funde con el
   fondo. */
.ses-ilustracion {
  margin: 0 -20px 10px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.ses-ilustracion img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
}

/* Las cuatro cifras, en una sola ficha. */
.ses-rejilla {
  gap: 0;
  padding: 4px 2px;
  background: var(--blanco);
}
.ses-dato {
  background: none;
  padding: 12px 16px;
}
.ses-dato span,
.ses-fila span {
  font-size: 13px;
  line-height: 18px;
}
.ses-dato b {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ses-fila b {
  font-size: 15px;
  font-weight: 600;
}
.ses-anillo .ses-numero {
  font-size: 68px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   EL RECIBO
   ═══════════════════════════════════════════════════════════════════════ */

.res-titulo {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  margin: 12px 0 18px;
  text-align: left;
}
.res-titulo .marca-ok {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 21px;
}
.res-titulo h2 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.res-titulo p {
  grid-column: 2;
  font-size: 15px;
  line-height: 20px;
  color: var(--tinta-suave);
}
.res-cab b {
  font-size: 15px;
  font-weight: 600;
}
/* Lo que se pagó es la cifra de esta pantalla. */
.res-total {
  margin-top: 12px;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.res-sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
}
.res-pago p {
  font-size: 15px;
  line-height: 20px;
}
.res-tarjeta {
  font-size: 15px;
  font-weight: 600;
}
.res-ref {
  font-size: 12px;
  line-height: 16px;
}
.res-ahorro {
  text-align: left;
  font-size: 15px;
  line-height: 20px;
  margin: 4px 2px 12px;
}

/* ═══════════════════════════════════════════════════════════════════════
   LA CUENTA: quién eres y qué carro tienes
   ═══════════════════════════════════════════════════════════════════════ */

.perfil-cab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 14px;
  margin: 10px 0 4px;
}
.perfil-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #aeaeb2;
  color: #fff;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.perfil-avatar svg {
  width: 34px;
  height: 34px;
}
.perfil-texto {
  min-width: 0;
}
/* El nombre entero: hasta dos renglones, y solo ahí se corta. */
.perfil-texto .cta-titulo {
  margin: 0;
  font-size: 26px;
  line-height: 31px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.perfil-texto .cta-quien {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.perfil-editar {
  align-self: start;
  min-height: 44px;
  padding: 0 2px;
  border: none;
  background: none;
  font: inherit;
  font-size: 17px;
  color: var(--azul);
  cursor: pointer;
}

/* El carro: una ficha de dos renglones, como un ajuste del teléfono. */
.carro,
.carro-vacio {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radio);
  background: var(--blanco);
  font: inherit;
  color: var(--tinta);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.carro-fila {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 18px;
}
.carro-fila + .carro-fila::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 0.5px;
  background: var(--separador);
}
.carro-fila b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.carro-fila span {
  font-size: 17px;
  color: var(--tinta);
}
.carro-fila + .carro-fila b {
  font-weight: 400;
  color: var(--tinta-suave);
}
/* La placa, pintada como va en el carro: amarilla y con su borde. */
.placa {
  flex: none;
  padding: 3px 9px;
  border: 1.5px solid #1d1d1f;
  border-radius: 6px;
  background: #ffd320;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1d1d1f !important;
  font-variant-numeric: tabular-nums;
}
.carro-vacio {
  padding: 16px 18px;
}
.carro-vacio b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--azul);
}
.carro-vacio span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--tinta-suave);
}
#cta-carro .nota {
  margin: 8px 4px 0;
}

/* ── Editar el perfil: un formulario como el de los ajustes ── */
.formulario {
  border-radius: var(--radio);
  background: var(--blanco);
  overflow: hidden;
}
.fila-campo,
.fila-opcion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 18px;
}
.fila-campo + .fila-campo::before,
.fila-opcion + .fila-opcion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 0.5px;
  background: var(--separador);
}
.fila-campo > span {
  flex: none;
  width: 84px;
  font-size: 17px;
  color: var(--tinta);
}
.fila-campo input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: none;
  background: none;
  outline: none;
  font: inherit;
  font-size: 17px;
  color: var(--tinta);
}
.fila-campo input::placeholder {
  color: #c7c7cc;
}
.fila-campo b {
  font-weight: 400;
  color: var(--tinta-suave);
}
.fila-opcion {
  width: 100%;
  min-height: 58px;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fila-opcion span {
  flex: 1;
  min-width: 0;
}
.fila-opcion b {
  display: block;
  font-size: 17px;
  font-weight: 400;
  color: var(--tinta);
}
.fila-opcion small {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--tinta-suave);
}
/* El visto del sistema, solo en la que está elegida. */
.fila-opcion .visto {
  flex: none;
  width: 14px;
  height: 8px;
  margin: 0 4px 4px 0;
  border-left: 2.5px solid var(--azul);
  border-bottom: 2.5px solid var(--azul);
  transform: rotate(-45deg);
  opacity: 0;
}
.fila-opcion[aria-checked="true"] .visto {
  opacity: 1;
}
#btn-guardar-perfil {
  margin-top: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════
   LA TARJETA E-CHARGE, como lo que es: una tarjeta
   Azul de la marca, con el saldo en grande. Es un objeto que el trabajador
   lleva en el bolsillo, y en la app se ve igual.
   ═══════════════════════════════════════════════════════════════════════ */

.ech-tarjeta {
  gap: 0;
  min-height: 200px;
  padding: 20px;
  border-radius: 20px;
  background: var(--azul);
  color: #fff;
}
.ech-cab {
  align-items: flex-start;
}
.ech-plastico {
  display: none;
}
.ech-cab::after {
  content: "E-CHARGE";
  flex: none;
  margin-left: auto;
  font-size: 13px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ech-nombre b {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.ech-nombre span {
  font-size: 13px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.82);
}
.ech-estado {
  background: #fff;
}
.ech-saldo {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 32px;
  padding-top: 0;
}
.ech-saldo span {
  font-size: 13px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.82);
}
.ech-saldo b {
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.ech-nota {
  margin-top: 14px;
  font-size: 13px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.86);
}
.ech-nota b {
  color: #fff;
}
.ech-quitar {
  min-height: 44px;
  margin-top: 2px;
  font-size: 15px;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════
   LOS PUNTOS
   ═══════════════════════════════════════════════════════════════════════ */

.pts-cab .enlace {
  font-size: 17px;
  font-weight: 400;
}
.pts-mes .mes {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.pts-mes .mes::first-letter {
  text-transform: uppercase;
}
.pts-mes .falta {
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.pts-aro .dentro b {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nivel .cuerpo b {
  font-size: 17px;
  font-weight: 400;
}
.nivel.actual .cuerpo b {
  font-weight: 600;
}
.nivel .cuerpo span {
  font-size: 13px;
  line-height: 18px;
}
.nivel .gana {
  font-size: 17px;
  font-weight: 400;
}
/* Sobre lo oscuro, texto claro de verdad: nada de gris sobre color. */
.saldo-oscuro .cifra span,
.saldo-oscuro p,
.puntos-franja .desglose,
.sum-saldo {
  color: #e5e5ea;
}
.saldo-oscuro .cifra b {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.sum-mas {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
#p-sumaste h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.cupon .cuerpo b,
.pts-ahorro b {
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.cupon button {
  border-radius: 999px;
  font-weight: 600;
}
.eli-caja > b {
  font-size: 20px;
  line-height: 25px;
  letter-spacing: -0.018em;
}
.eli-caja p {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tinta);
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCESIBILIDAD DEL SISTEMA
   Dos ajustes que la gente activa en su teléfono y que una app bien hecha
   respeta: menos transparencia y más contraste.
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-transparency: reduce) {
  :root {
    --material: #ffffff;
    --desenfoque: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --material: #ffffff;
    --desenfoque: none;
    --tinta-suave: #424245;
    --tinta-tenue: #424245;
    --separador: rgba(0, 0, 0, 0.45);
  }
  .barra-nav,
  .mapa-buscar,
  .mapa-redondo,
  #p-mapa .vistas {
    border: 1px solid rgba(0, 0, 0, 0.45);
  }
}
