/* Cráteres Argentina: una sola hoja para el mapa público y el panel. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/montserrat-latin.woff2) format("woff2-variations"), url(/fonts/montserrat-latin.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;
}

:root {
  --asfalto: #1b1e22;
  --asfalto-2: #2b3036;
  --texto: #1b1e22;
  --texto-2: #5b6168;
  --texto-3: #868c93;
  --linea: #e6e6e2;
  --suave: #f4f4f1;
  --blanco: #fff;
  --abierto: #e8590c;
  --reabierto: #c92a2a;
  --pendiente: #f59f00;
  --tapado: #2f9e44;
  --descartado: #adb5bd;
  --yo: #1971c2;
  --error: #c92a2a;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(22, 24, 28, 0.14), 0 2px 6px rgba(22, 24, 28, 0.08);
  --fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --panel-ancho: 392px;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #f2f3f0;
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* páginas de mapa a pantalla completa (mapa, marcar, panel) */
html.app,
html.app body {
  height: 100%;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- mapa ---------- */

#mapa {
  position: fixed;
  inset: 0;
}

.maplibregl-ctrl-attrib.maplibregl-compact {
  margin: 10px 10px 0 0;
}

/* ---------- marca flotante (celular) ---------- */

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--texto);
}

.marca img {
  width: 34px;
  height: 34px;
  display: block;
}

.marca-texto {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.marca-nombre {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.marca-nombre span {
  font-weight: 500;
}

.marca-prov {
  font-size: 12.5px;
  color: var(--texto-2);
  font-weight: 600;
}

.marca-flotante {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  z-index: 3;
  background: var(--blanco);
  border-radius: 12px;
  padding: 7px 14px 7px 7px;
  box-shadow: var(--sombra);
}

/* ---------- botones sobre el mapa ---------- */

.boton-mapa {
  position: fixed;
  right: 12px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 0;
  background: var(--blanco);
  box-shadow: var(--sombra);
  display: grid;
  place-items: center;
  color: var(--asfalto);
}

.boton-mapa.activo {
  color: var(--yo);
}

.boton-mapa:active {
  transform: scale(0.96);
}

/* ---------- panel: hoja abajo en el celular, columna en la compu ---------- */

.panel {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 84dvh;
  background: var(--blanco);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(22, 24, 28, 0.16);
  display: flex;
  flex-direction: column;
  padding-bottom: var(--seguro-abajo);
}

.panel-asa {
  flex: none;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.panel-asa::before {
  content: "";
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #d4d5d1;
}

.panel-cabeza {
  display: none;
}

.panel-cuerpo {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 18px 18px;
}

.solo-compu {
  display: none !important;
}

@media (min-width: 860px) {
  .panel {
    top: 16px;
    left: 16px;
    bottom: 16px;
    right: auto;
    width: var(--panel-ancho);
    max-height: none;
    border-radius: 18px;
    box-shadow: var(--sombra);
    padding-bottom: 0;
  }
  .panel-asa,
  .marca-flotante,
  .solo-celu {
    display: none !important;
  }
  .solo-compu {
    display: revert !important;
  }
  .panel-cabeza {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--linea);
  }
  .panel-cuerpo {
    padding: 18px 20px 22px;
    flex: 1;
  }
  .boton-mapa {
    right: 16px;
  }
}

/* en la hoja chica del celular, el ranking se despliega */
@media (max-width: 859.98px) {
  .panel:not(.expandido) .desplegable {
    display: none;
  }
  /* la ficha deja ver el cráter arriba; el resto se scrollea adentro */
  .panel[data-vista="pozo"],
  .panel[data-vista="varios"] {
    max-height: 60dvh;
  }
}

/* ---------- botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15.5px;
  width: 100%;
  transition: background-color 0.15s, transform 0.1s;
}

.boton:active {
  transform: scale(0.985);
}

.boton[disabled] {
  opacity: 0.55;
  cursor: default;
}

.boton.principal {
  background: var(--asfalto);
  color: var(--blanco);
}

.boton.principal:hover {
  background: #0f1113;
}

.boton.principal .ico {
  color: var(--abierto);
  width: 22px;
  height: 22px;
}

.boton.secundario {
  background: var(--blanco);
  border-color: #cfd0cc;
  color: var(--texto);
}

.boton.texto {
  background: none;
  color: var(--texto-2);
  font-weight: 600;
  min-height: 44px;
}

.boton.peligro {
  background: var(--blanco);
  border-color: #f0c4c4;
  color: var(--error);
}

.fila-botones {
  display: flex;
  gap: 10px;
}

.fila-botones .boton.secundario {
  flex: 0 0 38%;
}

.volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 0;
  margin: 2px 0 8px;
  color: var(--texto-2);
  font-weight: 600;
  font-size: 14px;
}

.volver .ico {
  width: 18px;
  height: 18px;
}

/* ---------- resumen ---------- */

.totales {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 14px;
}

.total {
  background: var(--suave);
  border-radius: 12px;
  padding: 10px 12px 9px;
  min-width: 0;
}

.total b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.total span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--texto-2);
  white-space: nowrap;
}

.punto {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--abierto);
}

.punto.r {
  background: var(--reabierto);
}

.punto.p {
  background: var(--blanco);
  box-shadow: inset 0 0 0 2.5px var(--pendiente);
}

.punto.t {
  background: var(--tapado);
}

.punto.d {
  background: var(--descartado);
}

.desplegar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  padding: 14px 2px 2px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--texto);
}

.desplegar .ico {
  transition: transform 0.2s;
  color: var(--texto-2);
}

.panel.expandido .desplegar .ico {
  transform: rotate(180deg);
}

.seccion {
  margin-top: 22px;
}

.seccion > h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.seccion > .bajada {
  font-size: 13px;
  color: var(--texto-2);
  margin-top: 2px;
}

/* ranking por departamento */

.deptos {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.depto {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 11px 6px 12px;
  border-bottom: 1px solid var(--linea);
  border-radius: 0;
}

.depto:hover,
.depto.activo {
  background: var(--suave);
}

.depto-nombre {
  font-weight: 700;
  font-size: 15px;
}

.depto-num {
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  grid-row: span 2;
  align-self: center;
  line-height: 1.1;
}

.depto-num small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--texto-2);
}

.depto-detalle {
  font-size: 12.5px;
  color: var(--texto-2);
}

.barra {
  grid-column: 1 / -1;
  display: flex;
  height: 6px;
  margin-top: 7px;
  border-radius: 3px;
  overflow: hidden;
  background: transparent;
}

.barra i {
  display: block;
  height: 100%;
}

.barra .ba {
  background: var(--abierto);
}

.barra .bt {
  background: var(--tapado);
}

.barra .bp {
  background: repeating-linear-gradient(-45deg, #f8c25c 0 3px, #fde7b8 3px 6px);
}

.sin-datos {
  font-size: 13px;
  color: var(--texto-3);
  margin-top: 12px;
}

.leyenda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--texto-2);
  font-weight: 600;
  margin-top: 12px;
}

.leyenda span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acerca {
  font-size: 13.5px;
  color: var(--texto-2);
  margin-top: 10px;
}

.acerca + .acerca {
  margin-top: 8px;
}

.creditos {
  font-size: 12px;
  color: var(--texto-3);
  margin-top: 16px;
}

.creditos a {
  color: inherit;
}

/* ---------- ficha de un cráter ---------- */

.ficha-cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
}

.cerrar {
  border: 0;
  background: var(--suave);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--texto-2);
  flex: none;
}

.ficha h2,
.paso h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.dato-grande {
  margin-top: 12px;
  font-size: 15px;
  color: var(--texto-2);
}

.dato-grande b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--texto);
  line-height: 1.1;
}

.dato-grande.abierto b {
  color: var(--abierto);
}

.dato-grande.r b {
  color: var(--reabierto);
}

.dato-grande.tapado b {
  color: var(--tapado);
}

.ficha-sub {
  font-size: 13.5px;
  color: var(--texto-2);
  margin-top: 8px;
}

.alerta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff4e6;
  color: #8a4b0a;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 12px;
}

.alerta .ico {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.historia {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  position: relative;
}

.historia::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--linea);
}

.historia li {
  position: relative;
  padding: 0 0 14px 24px;
}

.historia li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blanco);
  box-shadow: inset 0 0 0 2.5px #b9bbb7;
}

.historia li.reporte::before {
  box-shadow: inset 0 0 0 2.5px var(--pendiente);
}

.historia li.abierto::before {
  background: var(--abierto);
  box-shadow: none;
}

.historia li.reabierto::before {
  background: var(--reabierto);
  box-shadow: none;
}

.historia li.tapado::before {
  background: var(--tapado);
  box-shadow: none;
}

.historia li.descartado::before {
  background: var(--descartado);
  box-shadow: none;
}

.historia time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-3);
}

.historia .que {
  font-weight: 600;
  font-size: 14.5px;
}

.historia .nota {
  font-size: 13.5px;
  color: var(--texto-2);
  margin-top: 2px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.historia .meta {
  font-size: 12px;
  color: var(--texto-3);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.cargando {
  color: var(--texto-3);
  font-size: 13.5px;
  margin-top: 14px;
}

/* ---------- pasos del reporte ---------- */

.paso p.bajada {
  color: var(--texto-2);
  margin-top: 6px;
  font-size: 14.5px;
}

.paso .boton + .boton {
  margin-top: 8px;
}

.paso .acciones {
  margin-top: 18px;
}

.colocar-titulo {
  font-weight: 700;
  font-size: 15.5px;
  margin: 2px 0 12px;
}

.buscar {
  position: relative;
  margin-bottom: 12px;
}

.buscar input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d6d7d3;
  background: var(--suave);
  padding: 0 46px 0 14px;
  font-size: 15px;
  outline: none;
}

.buscar input:focus {
  border-color: var(--asfalto);
  background: var(--blanco);
}

.buscar button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: none;
  display: grid;
  place-items: center;
  color: var(--texto-2);
}

.resultados {
  list-style: none;
  margin: -4px 0 12px;
  padding: 0;
  border: 1px solid var(--linea);
  border-radius: 12px;
  overflow: hidden;
}

.resultados button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--blanco);
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--linea);
}

.resultados li:last-child button {
  border-bottom: 0;
}

.resultados button:hover {
  background: var(--suave);
}

.resultados small {
  display: block;
  color: var(--texto-3);
  font-size: 12.5px;
}

.resultados .vacio {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--texto-2);
}

.tamanos {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}

.tamanos legend,
.campo > span {
  font-weight: 700;
  font-size: 14.5px;
  padding: 0;
  margin-bottom: 8px;
}

.tamanos legend small,
.campo > span small {
  font-weight: 500;
  color: var(--texto-3);
  margin-left: 6px;
  font-size: 12.5px;
}

.tamanos-opciones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tamanos label {
  position: relative;
}

.tamanos input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tamanos label > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border: 1.5px solid #d6d7d3;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
}

.tamanos label small {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--texto-3);
}

.tamanos input:checked + span {
  border-color: var(--asfalto);
  box-shadow: inset 0 0 0 1px var(--asfalto);
  background: var(--suave);
}

.tamanos input:focus-visible + span {
  outline: 2px solid var(--yo);
  outline-offset: 2px;
}

.tam {
  display: block;
  border-radius: 50%;
  background: var(--asfalto-2);
  box-shadow: 0 0 0 3px var(--abierto);
}

.tam.t1 {
  width: 10px;
  height: 7px;
  margin: 5px 0;
}

.tam.t2 {
  width: 17px;
  height: 11px;
  margin: 3px 0;
}

.tam.t3 {
  width: 26px;
  height: 17px;
}

.campo {
  display: block;
  margin-top: 16px;
}

.campo > span {
  display: block;
}

.campo textarea,
.campo input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d6d7d3;
  background: var(--suave);
  padding: 11px 14px;
  font-size: 15px;
  resize: none;
  outline: none;
}

.campo input {
  height: 48px;
}

.campo textarea:focus,
.campo input:focus {
  border-color: var(--asfalto);
  background: var(--blanco);
}

.trampa {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.listo-icono {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ebfbee;
  color: var(--tapado);
  display: grid;
  place-items: center;
  margin: 6px 0 14px;
}

.listo-icono .ico {
  width: 30px;
  height: 30px;
}

/* ---------- marcador para ubicar el cráter ---------- */

.pin {
  position: fixed;
  z-index: 2;
  width: 44px;
  height: 58px;
  margin: -58px 0 0 -22px;
  pointer-events: none;
  transition: transform 0.18s ease-out;
}

.pin svg {
  display: block;
  width: 44px;
  height: 58px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.28));
}

.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 14px;
  height: 6px;
  margin-left: -7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease-out, opacity 0.18s;
}

.pin.levantado {
  transform: translateY(-12px);
}

.pin.levantado::after {
  transform: translateY(12px) scale(0.7);
  opacity: 0.6;
}

/* ---------- aviso ---------- */

.aviso {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -140%);
  max-width: min(92vw, 440px);
  background: var(--asfalto);
  color: var(--blanco);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sombra);
  transition: transform 0.25s ease-out;
}

.aviso.visible {
  transform: translate(-50%, 0);
}

.aviso.error {
  background: var(--error);
}

/* ---------- panel de verificación ---------- */

.login {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #f2f3f0;
  overflow-y: auto;
}

.login-caja {
  width: min(400px, 100%);
  background: var(--blanco);
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: 26px 24px 24px;
}

.login-caja h1 {
  font-size: 21px;
  font-weight: 800;
  margin: 20px 0 4px;
  letter-spacing: -0.015em;
}

.login-caja p {
  color: var(--texto-2);
  font-size: 14px;
}

.clave {
  position: relative;
}

.clave input {
  padding-right: 50px;
}

.clave button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: none;
  display: grid;
  place-items: center;
  color: var(--texto-2);
}

.error-form {
  color: var(--error);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 12px;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 14px;
}

.pie {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--linea);
}

.pie .usuario {
  justify-content: space-between;
}

.filtro {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d6d7d3;
  background: var(--blanco);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 13.5px;
  font-weight: 700;
}

.filtro b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.filtro.activo {
  background: var(--asfalto);
  border-color: var(--asfalto);
  color: var(--blanco);
}

.cerca {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.cerca button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--linea);
  background: none;
  padding: 11px 4px;
}

.cerca button:hover {
  background: var(--suave);
}

.cerca .distancia {
  margin-left: auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  white-space: nowrap;
}

.cerca .linea1 {
  font-weight: 700;
  font-size: 14px;
}

.cerca .linea2 {
  font-size: 12.5px;
  color: var(--texto-2);
}

.acciones-admin {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.form-accion {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--suave);
}

.form-accion h3 {
  font-size: 15px;
  font-weight: 800;
}

.form-accion .campo {
  margin-top: 12px;
}

.form-accion .campo textarea,
.form-accion .campo input {
  background: var(--blanco);
}

.form-accion .fila-botones {
  margin-top: 14px;
}

.motivos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.motivos label span {
  display: inline-block;
  border: 1px solid #d6d7d3;
  background: var(--blanco);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.motivos input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.motivos input:checked + span {
  background: var(--asfalto);
  border-color: var(--asfalto);
  color: var(--blanco);
}

.deshacer {
  border: 0;
  background: none;
  padding: 2px 0;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--yo);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deshacer .ico {
  width: 14px;
  height: 14px;
}

.enlace {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--yo);
  text-decoration: none;
  margin-top: 10px;
}

.enlace .ico {
  width: 16px;
  height: 16px;
}

.usuario {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--texto-2);
  min-width: 0;
}

.usuario span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salir {
  border: 0;
  background: var(--suave);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--texto-2);
  flex: none;
}

.salir .ico {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- links con forma de botón ---------- */

a.boton {
  text-decoration: none;
}

.acerca a {
  color: var(--texto);
  font-weight: 700;
}

/* ---------- ficha: confianza y "¿sigue ahí?" ---------- */

.ficha-acciones {
  display: flex;
  gap: 8px;
}

.cerrar .ico {
  width: 18px;
  height: 18px;
}

.confianza {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
}

.confianza .ico {
  width: 18px;
  height: 18px;
  color: var(--texto-2);
}

.votar {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--suave);
}

.votar-pregunta {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}

.votar-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.voto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.15;
  text-align: center;
}

.voto .ico {
  width: 19px;
  height: 19px;
}

.voto.si {
  background: var(--asfalto);
  color: var(--blanco);
}

.voto.no {
  background: var(--blanco);
  border-color: #cfd0cc;
}

.voto[disabled] {
  opacity: 0.55;
}

.votar-ayuda {
  font-size: 12.5px;
  color: var(--texto-3);
  margin-top: 9px;
}

.votar.hecho {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #ebfbee;
}

.votar.hecho > .ico {
  color: var(--tapado);
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.votar.hecho b {
  display: block;
  font-size: 14.5px;
}

.enlace-chico {
  border: 0;
  background: none;
  padding: 4px 0 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--yo);
}

.historia li.duda::before {
  box-shadow: inset 0 0 0 2.5px var(--pendiente);
  background: #fff4e0;
}

.cerca-tuyo .cerca {
  margin-top: 6px;
}

/* ---------- asistente para marcar ---------- */

.barra-marcar {
  position: fixed;
  z-index: 5;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blanco);
  border-radius: 14px;
  padding: 8px 14px 8px 8px;
  box-shadow: var(--sombra);
}

.barra-atras {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: var(--suave);
  display: grid;
  place-items: center;
  color: var(--texto);
}

.barra-titulo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.barra-titulo b {
  font-weight: 800;
  font-size: 16px;
}

.paso-texto {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto-2);
}

/* la barra ocupa todo el ancho arriba: créditos del mapa y ubicación, debajo */
.pagina-marcar .maplibregl-ctrl-top-right {
  top: calc(70px + env(safe-area-inset-top, 0px));
}

.pagina-marcar .boton-mapa {
  top: calc(124px + env(safe-area-inset-top, 0px));
}

.progreso {
  flex: none;
  height: 4px;
  background: var(--suave);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.progreso i {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--abierto);
  border-radius: 0 4px 4px 0;
  transition: width 0.35s ease;
}

.panel.asistente .panel-asa {
  display: none;
}

.panel.asistente .panel-cuerpo {
  padding-top: 16px;
}

@media (min-width: 860px) {
  .barra-marcar {
    display: none;
  }
  .pagina-marcar .maplibregl-ctrl-top-right {
    top: 0;
  }
  .pagina-marcar .boton-mapa {
    top: 56px;
  }
  .panel.asistente .panel-cabeza {
    justify-content: flex-start;
  }
  .progreso {
    border-radius: 18px 18px 0 0;
  }
}

.opciones {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.opcion {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1.5px solid #dcddd9;
  background: var(--blanco);
  border-radius: 16px;
  padding: 14px 14px;
  transition: border-color 0.15s, background-color 0.15s;
}

.opcion:hover {
  border-color: var(--asfalto);
}

.opcion:active {
  background: var(--suave);
}

.opcion-icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff1e6;
  color: var(--abierto);
}

.opcion-icono .ico {
  width: 24px;
  height: 24px;
}

.opcion-texto {
  flex: 1;
  min-width: 0;
}

.opcion-texto b {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.opcion-texto small {
  display: block;
  font-size: 13.5px;
  color: var(--texto-2);
  margin-top: 2px;
}

.opcion-flecha {
  color: var(--texto-3);
}

.nota-pie {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--texto-3);
}

.nota-pie .ico {
  width: 15px;
  height: 15px;
}

.lugar-actual,
.lugar-elegido {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  font-weight: 700;
  font-size: 14.5px;
}

.lugar-actual .ico,
.lugar-elegido .ico {
  color: var(--abierto);
  width: 19px;
  height: 19px;
  flex: none;
}

.lugar-actual.fuera {
  color: var(--error);
}

.lugar-actual.fuera .ico {
  color: var(--error);
}

.lugar-elegido {
  margin-top: 8px;
  color: var(--texto-2);
}

.mini-ficha {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--suave);
}

.mini-ficha .punto {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

.mini-ficha b {
  display: block;
  font-size: 15px;
}

.mini-ficha span {
  display: block;
  font-size: 13.5px;
  color: var(--texto-2);
  margin-top: 2px;
}

.paso.listo .acciones .boton + .boton {
  margin-top: 8px;
}
