/* MAHOnline — sistema de diseño (#349).
   El theme es el de apple.com/cl (Luis, 05-10-2026): SF Pro, texto #1d1d1f sobre #f5f5f7, botones
   píldora #0071e3, enlaces #0066cc, tarjetas de 18 px con la sombra de la Apple Store, secciones
   negras para lo que se destaca y un color de sistema de iOS por grupo de módulos. De la
   Municipalidad de Alto Hospicio quedan su emblema y su nombre, no sus colores.

   GUÍA RÁPIDA DE COMPONENTES (los módulos solo usan estas clases; nada de estilos sueltos):
   Estructura  .bento + .c-3/.c-4/.c-6/.c-8/.c-12 (.f-2 = dos filas) · .grilla · .pila · .pila-chica
               · .fila (.entre) · .seccion (+ h2.titulo)
   Superficies .tarjeta (.suave .oscura .marca .enlace) · .caja (.ok .aviso .alerta) · .lista
   Texto       .ojo · .titulo-xl · .titulo · .subtitulo · .texto-2 · .texto-3 · .cifra · .cifra-xl
               · .tendencia (.sube .baja) · .num (cifras alineadas)
   Estados     .chip (.ok .aviso .alerta .info .marca .neutro; .sin-punto) · .vivo · .insignia
   Acciones    .btn (.btn-primario .btn-secundario .btn-oscuro .btn-claro .btn-borde; .btn-chico)
               · .enlace-flecha · .segmentado (pestañas) · .alternador (sub-pestañas)
   Datos       .tabla (cada td con data-e="Columna" para el teléfono) · .pasos (li.hecho/.actual/
               .bloqueado) · .linea-tiempo · .barra > i (--v) · .kv (pares clave-valor)
   Formulario  .formulario · .campo (label > span + input/select/textarea) · .interruptor
   Otros       .avatar · .icono-app (--c) · .mapa (lo arma MAHO.mapa) · .hoja/.velo · .tostada
   apple.com   .duo > .unidad (.negra .cielo; .ancha) = los módulos de la portada · .riel-envoltura >
               .riel-flechas + .riel = galería horizontal de la Store · .etiqueta = «Nuevo» naranja ·
               h2.titulo con <span> = «Lo último. Échale un vistazo…» · .tarjeta.producto = tarjeta
               de 28 px de las páginas de producto · .cinta = aviso bajo la barra · el pie lo pone app.js
   Color por variable: style="--c: var(--g-finanzas)" tiñe .ojo, .icono-app, .barra > i y .linea-tiempo. */

:root {
  /* apple.com/cl */
  --tinta: #1d1d1f;
  --tinta-2: #6e6e73;
  --tinta-3: #86868b;
  --linea: #d2d2d7;
  --linea-2: #e8e8ed;
  --superficie: #f5f5f7;
  --blanco: #fff;
  --accion: #0071e3;
  --accion-hover: #0077ed;
  --enlace: #0066cc;
  --enlace-oscuro: #2997ff;
  --marca: #1d1d1f;
  /* Estados */
  --ok: #1d8a3a;
  --ok-fondo: #e9f5ec;
  --aviso: #b64400;
  --aviso-fondo: #fff2e6;
  --alerta: #e30000;
  --alerta-fondo: #fdecec;
  --info: #0066cc;
  --info-fondo: #e8f1fb;
  /* Colores de sistema de iOS: uno por grupo de módulos */
  --g-plataforma: #5856d6;
  --g-finanzas: #34c759;
  --g-personas: #ff9500;
  --g-vecino: #007aff;
  --g-territorio: #30b0c7;
  --g-documentos: #ff3b30;
  /* Los mismos en modo oscuro: anillos, barras y vivos sobre tarjetas negras */
  --azul-oscuro: #2997ff;
  --verde-oscuro: #30d158;
  --naranjo-oscuro: #ff9f0a;
  --rojo-oscuro: #ff453a;
  --amarillo-oscuro: #ffd60a;
  --morado-oscuro: #bf5af2;
  /* Forma y movimiento */
  --r-pildora: 980px;
  --r-tarjeta: 18px;
  --r-campo: 12px;
  --sombra: 2px 4px 12px rgba(0, 0, 0, .08);
  --sombra-alta: 2px 4px 16px rgba(0, 0, 0, .16);
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --fuente-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --barra-alto: 44px;
  --lateral-ancho: 284px;
  --curva: cubic-bezier(.28, .11, .32, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  color: var(--tinta);
  background: var(--superficie);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--fuente-display); margin: 0; font-weight: 600; letter-spacing: -.003em; }
p { margin: 0; }
a { color: var(--enlace); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
/* Todo ícono nace con tamaño y cualquier regla le gana (:where no pesa). Sin esto, un ícono fuera de
   un contexto con regla propia mide lo que su contenedor: el reloj de 295 px de Agenda (05-10-2026). */
:where(svg.ico) { width: 1.25em; height: 1.25em; }
:where(svg.chevron) { width: 16px; height: 16px; color: var(--tinta-3); flex: none; }
:focus-visible { outline: 4px solid rgba(0, 125, 250, .6); outline-offset: 1px; border-radius: 10px; }
.num { font-variant-numeric: tabular-nums; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* hidden tiene que ganarle a las clases con display propio (.bento, .grilla, .fila, .caja…): si no, los data-panel ocultos se ven todos */
[hidden] { display: none !important; }

/* ── Marca ─────────────────────────────────────────────── */
.marca-mahonline { font-family: var(--fuente-display); font-weight: 600; letter-spacing: -.01em; color: inherit; white-space: nowrap; }
.sello { flex: none; width: 30px; height: 30px; border-radius: 50%; }
.emblema { flex: none; width: 40px; height: 40px; border-radius: 50%; }

/* ── Barra superior ────────────────────────────────────── */
.barra-superior {
  position: sticky; top: 0; z-index: 40;
  height: var(--barra-alto);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: rgba(250, 250, 252, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.barra-superior .marca-producto { display: flex; align-items: center; gap: 9px; color: var(--tinta); font-size: 17px; }
.barra-superior .marca-producto:hover { text-decoration: none; }
.barra-superior .comuna { font-size: 12px; color: var(--tinta-3); font-weight: 500; letter-spacing: -.01em; display: none; }
@media (min-width: 640px) { .barra-superior .comuna { display: block; } }
.boton-icono {
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--tinta); cursor: pointer; position: relative;
}
.boton-icono:hover { background: rgba(0, 0, 0, .05); }
.boton-icono svg { width: 22px; height: 22px; }
.boton-icono .insignia { position: absolute; top: 7px; right: 7px; }
.buscador { flex: 1; max-width: 520px; margin: 0 auto; display: none; }
@media (min-width: 768px) { .buscador { display: block; } }
.buscador button {
  width: 100%; height: 32px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 0; border-radius: 10px;
  background: rgba(0, 0, 0, .05); color: var(--tinta-3); font-size: 14px; letter-spacing: -.016em; cursor: pointer;
}
.buscador svg { width: 17px; height: 17px; }
.kbd { margin-left: auto; font-size: 12px; padding: 1px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--linea); color: var(--tinta-3); }
.espaciador { flex: 1; }
@media (min-width: 768px) { .espaciador { display: none; } }
.perfil-boton { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: var(--r-pildora); cursor: pointer; min-height: 44px; }
.perfil-boton:hover { background: rgba(0, 0, 0, .05); }
.perfil-boton .perfil-texto { display: none; font-size: 14px; text-align: left; line-height: 1.2; }
.perfil-boton small { display: block; color: var(--tinta-3); font-size: 12px; }
@media (min-width: 1100px) { .perfil-boton .perfil-texto { display: block; } }

@media (min-width: 768px) { .solo-movil { display: none !important; } }
.nav-portal { display: none; gap: 2px; }
@media (min-width: 900px) { .nav-portal { display: flex; } }
.nav-portal { margin: 0 auto; }
.nav-portal a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 12px; letter-spacing: -.01em; color: rgba(0, 0, 0, .8); }
.nav-portal a svg { display: none; }
.nav-portal a:hover { color: var(--tinta); text-decoration: none; }
.nav-portal a[aria-current="page"] { color: var(--tinta); font-weight: 600; }

/* ── Estructura de la app ──────────────────────────────── */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - var(--barra-alto)); }
@media (min-width: 1024px) { .app { grid-template-columns: var(--lateral-ancho) minmax(0, 1fr); } }
.lateral {
  display: none;
  position: sticky; top: var(--barra-alto);
  height: calc(100dvh - var(--barra-alto));
  overflow-y: auto;
  padding: 14px 12px 28px;
  border-right: 1px solid rgba(0, 0, 0, .06);
  background: #fbfbfd;
}
@media (min-width: 1024px) { .lateral { display: flex; flex-direction: column; } }
.lateral h6 { font-size: 12px; font-weight: 600; color: var(--tinta-3); margin: 18px 10px 6px; letter-spacing: -.01em; }
.enlace-modulo {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 10px; min-height: 40px; border-radius: 10px;
  color: var(--tinta); font-size: 15px; letter-spacing: -.016em;
}
.enlace-modulo:hover { background: rgba(0, 0, 0, .04); text-decoration: none; }
.enlace-modulo[aria-current="page"] { background: rgba(0, 0, 0, .06); font-weight: 600; }
.lateral .pie-lateral { margin-top: auto; padding: 20px 10px 0; font-size: 12px; color: var(--tinta-3); line-height: 1.5; }
.contenido { min-width: 0; padding: 22px 16px 120px; }
@media (min-width: 768px) { .contenido { padding: 36px 32px 96px; } }
@media (min-width: 1280px) { .contenido { padding: 44px 48px 96px; } }
.contenido > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around;
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 252, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, .08);
}
@media (min-width: 1024px) { .tabbar { display: none; } }
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 64px; min-height: 48px; border: 0; background: transparent; cursor: pointer;
  font-size: 11px; font-weight: 500; color: var(--tinta-3); letter-spacing: 0;
}
.tabbar svg { width: 24px; height: 24px; }
.tabbar [aria-current="page"] { color: var(--accion); text-decoration: none; }

/* ── Icono de módulo (como los íconos de iOS) ──────────── */
.icono-app {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--marca)) 82%, #fff), var(--c, var(--marca)));
  color: #fff;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);
}
.icono-app svg { width: 17px; height: 17px; }
.icono-app.mediano { width: 44px; height: 44px; border-radius: 11px; }
.icono-app.mediano svg { width: 24px; height: 24px; }
.icono-app.grande { width: 64px; height: 64px; border-radius: 15px; }
.icono-app.grande svg { width: 34px; height: 34px; }

/* ── Cabecera de módulo ────────────────────────────────── */
.cabecera-modulo { padding: 4px 0 26px; }
.cabecera-modulo .fila-titulo { display: flex; align-items: center; gap: 16px; }
.cabecera-modulo .subtitulo { font-family: var(--fuente-display); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.143; letter-spacing: .007em; color: var(--tinta); max-width: 40ch; }
.ojo { font-size: 17px; font-weight: 600; letter-spacing: -.022em; color: color-mix(in srgb, var(--c, var(--accion)) 65%, #000); }
.tarjeta.marca .ojo, .tarjeta.oscura .ojo, .unidad.negra .ojo { color: var(--c, var(--enlace-oscuro)); }
.titulo-xl { font-size: clamp(32px, 5vw, 56px); line-height: 1.07143; letter-spacing: -.005em; font-weight: 600; }
.titulo { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.125; letter-spacing: .004em; font-weight: 600; }
.subtitulo { font-size: clamp(19px, 2vw, 21px); line-height: 1.381; color: var(--tinta-2); letter-spacing: .011em; max-width: 52ch; margin-top: 8px; }
.texto-2 { color: var(--tinta-2); }
.texto-3 { color: var(--tinta-3); font-size: 14px; letter-spacing: -.01em; }
.segmentado {
  display: inline-flex; gap: 2px; padding: 3px; margin-top: 22px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: rgba(0, 0, 0, .06); border-radius: 12px;
}
.segmentado::-webkit-scrollbar { display: none; }
.segmentado a {
  flex: none; white-space: nowrap; display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 16px; border-radius: 9px;
  color: var(--tinta); font-size: 15px; letter-spacing: -.016em;
}
.segmentado a:hover { text-decoration: none; background: rgba(255, 255, 255, .5); }
.segmentado a[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }

/* ── Estructura de contenido ───────────────────────────── */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > * { grid-column: span 12; }
@media (min-width: 768px) {
  .bento > .c-3, .bento > .c-4, .bento > .c-6 { grid-column: span 6; }
}
@media (min-width: 1100px) {
  .bento > .c-3 { grid-column: span 3; }
  .bento > .c-4 { grid-column: span 4; }
  .bento > .c-8 { grid-column: span 8; }
  .bento > .f-2 { grid-row: span 2; }
}
.grilla { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pila { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pila-chica { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.fila.entre { justify-content: space-between; }
.seccion { margin-top: 44px; }
.seccion > .titulo, .seccion > .fila > .titulo { margin-bottom: 16px; }
.separador { height: 1px; background: var(--linea-2); border: 0; margin: 18px 0; }

/* ── Superficies ───────────────────────────────────────── */
.tarjeta { background: #fff; color: var(--tinta); border-radius: var(--r-tarjeta); padding: 24px; box-shadow: var(--sombra); min-width: 0; position: relative; }
@media (max-width: 640px) { .tarjeta { padding: 20px; } }
.tarjeta.suave { background: var(--superficie); box-shadow: none; }
.contenido .tarjeta.suave { background: #fff; box-shadow: none; border: 1px solid var(--linea-2); }
.tarjeta.oscura { background: #1d1d1f; color: #f5f5f7; }
.tarjeta.marca { color: #f5f5f7; background: #000; overflow: hidden; }
.tarjeta.oscura .texto-2, .tarjeta.marca .texto-2, .tarjeta.oscura .texto-3, .tarjeta.marca .texto-3 { color: #a1a1a6; }
.tarjeta.enlace { display: block; transition: transform .35s var(--curva), box-shadow .35s var(--curva); }
.tarjeta.enlace:hover { transform: scale(1.01); box-shadow: var(--sombra-alta); text-decoration: none; }
.tarjeta h3 { font-size: 21px; line-height: 1.19; letter-spacing: .011em; font-weight: 600; }
.tarjeta > .fila.entre:first-child { margin-bottom: 14px; }
.caja {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
  background: var(--info-fondo); color: var(--tinta);
  --c: var(--info);
}
.caja > svg { flex: none; width: 22px; height: 22px; color: var(--c); margin-top: 1px; }
.caja b { display: block; }
.caja.ok { background: var(--ok-fondo); --c: var(--ok); }
.caja.aviso { background: var(--aviso-fondo); --c: var(--aviso); }
.caja.alerta { background: var(--alerta-fondo); --c: var(--alerta); }
.lista { background: #fff; border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; }
.tarjeta .lista { box-shadow: none; border-radius: 0; margin: 0 -24px; background: transparent; }
@media (max-width: 640px) { .tarjeta .lista { margin: 0 -20px; } }
.lista > * {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 20px;
  color: inherit; position: relative; min-width: 0;
}
.lista > * + *::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; border-top: 1px solid var(--linea-2); }
.lista > button { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lista > a:hover, .lista > button:hover { background: rgba(0, 0, 0, .025); text-decoration: none; }
.lista .cuerpo { flex: 1; min-width: 0; }
.lista .cuerpo b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.lista .cuerpo small { display: block; color: var(--tinta-2); font-size: 14px; line-height: 1.35; }
.lista .valor { color: var(--tinta-2); font-size: 15px; white-space: nowrap; text-align: right; }
.lista .valor b { display: block; color: var(--tinta); font-weight: 600; }
.lista .chevron { width: 16px; height: 16px; color: var(--tinta-3); flex: none; }

/* ── Cifras ────────────────────────────────────────────── */
.cifra { font-family: var(--fuente-display); font-size: 40px; font-weight: 600; letter-spacing: -.015em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cifra-xl { font-family: var(--fuente-display); font-size: clamp(48px, 7.4vw, 80px); font-weight: 600; letter-spacing: -.015em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cifra small, .cifra-xl small { font-size: .45em; font-weight: 600; letter-spacing: -.02em; color: var(--tinta-2); margin-left: 4px; }
.tarjeta.marca .cifra small, .tarjeta.oscura .cifra small, .tarjeta.marca .cifra-xl small, .tarjeta.oscura .cifra-xl small { color: #a1a1a6; }
.tendencia { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.tendencia.sube { color: var(--ok); }
.tendencia.baja { color: var(--alerta); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; margin: 0; }
.kv dt { color: var(--tinta-2); }
.kv dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

/* ── Estados ───────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--r-pildora);
  font-size: 13px; font-weight: 600; letter-spacing: -.008em; white-space: nowrap;
  background: var(--linea-2); color: var(--tinta-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.sin-punto::before { display: none; }
.chip.ok { background: var(--ok-fondo); color: var(--ok); }
.chip.aviso { background: var(--aviso-fondo); color: var(--aviso); }
.chip.alerta { background: var(--alerta-fondo); color: var(--alerta); }
.chip.info { background: var(--info-fondo); color: var(--info); }
.chip.marca { background: var(--linea-2); color: var(--tinta); }
.chip.neutro { background: var(--linea-2); color: var(--tinta-2); }
.tarjeta.marca .chip, .tarjeta.oscura .chip { background: rgba(255, 255, 255, .14); color: #fff; }
.vivo { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ok); letter-spacing: -.01em; }
.vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: latido 2s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(26, 143, 76, .45); } 70% { box-shadow: 0 0 0 8px rgba(26, 143, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 143, 76, 0); } }
.insignia { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--alerta); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; }

/* ── Botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-pildora);
  font-size: 17px; font-weight: 400; letter-spacing: -.022em; white-space: nowrap;
  cursor: pointer; text-decoration: none !important;
  transition: background .2s var(--curva), transform .12s var(--curva), box-shadow .2s var(--curva);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primario { background: var(--accion); color: #fff; }
.btn-primario:hover { background: var(--accion-hover); }
.btn-secundario { background: rgba(0, 0, 0, .06); color: var(--tinta); }
.btn-secundario:hover { background: rgba(0, 0, 0, .09); }
.btn-oscuro { background: var(--tinta); color: #fff; }
.btn-claro { background: #fff; color: var(--tinta); }
.btn-borde { background: transparent; color: var(--enlace); box-shadow: inset 0 0 0 1px var(--enlace); }
.tarjeta.marca .btn-borde, .tarjeta.oscura .btn-borde { color: var(--enlace-oscuro); box-shadow: inset 0 0 0 1px var(--enlace-oscuro); }
@media (pointer: fine) { .btn-chico { min-height: 36px; padding: 0 15px; font-size: 14px; letter-spacing: -.016em; } }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.enlace-flecha { font-size: 17px; letter-spacing: -.022em; }
.enlace-flecha::after { content: "\00a0›"; }
.tarjeta.marca .enlace-flecha, .tarjeta.oscura .enlace-flecha { color: var(--enlace-oscuro); }
.alternador { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.alternador button {
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pildora); border: 1px solid var(--linea);
  background: #fff; font-size: 14px; cursor: pointer; color: var(--tinta);
}
.alternador button[aria-pressed="true"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }

/* ── Tablas: en el teléfono cada fila es una ficha ─────── */
.tabla { width: 100%; border-collapse: collapse; font-size: 15px; letter-spacing: -.012em; }
.tabla th { text-align: left; font-size: 12px; font-weight: 600; color: var(--tinta-3); padding: 0 12px 10px; border-bottom: 1px solid var(--linea); white-space: nowrap; letter-spacing: 0; }
.tabla td { padding: 13px 12px; border-bottom: 1px solid var(--linea-2); vertical-align: middle; }
.tabla th:first-child, .tabla td:first-child { padding-left: 0; }
.tabla th:last-child, .tabla td:last-child { padding-right: 0; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla td small { display: block; color: var(--tinta-3); font-size: 13px; }
.tabla tfoot td { font-weight: 600; border-top: 1px solid var(--linea); border-bottom: 0; }
@media (max-width: 640px) {
  .tabla thead { display: none; }
  .tabla, .tabla tbody, .tabla tfoot, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla tr { padding: 12px 0; border-bottom: 1px solid var(--linea-2); }
  .tabla tr:last-child { border-bottom: 0; }
  .tabla td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 3px 0 !important; border: 0; text-align: right; }
  .tabla td::before { content: attr(data-e); flex: none; color: var(--tinta-3); font-size: 13px; text-align: left; }
  .tabla td > * { min-width: 0; }
  .tabla td small { display: none; }
}

/* ── Pasos (flujo de etapas) ───────────────────────────── */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; counter-reset: paso; }
.pasos li { position: relative; padding-top: 42px; font-size: 14px; font-weight: 500; color: var(--tinta-3); counter-increment: paso; line-height: 1.3; min-width: 0; }
.pasos li::before {
  content: counter(paso); position: absolute; top: 0; left: 0; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--linea-2); color: var(--tinta-2); font-weight: 600; font-size: 14px;
}
.pasos li::after { content: ""; position: absolute; top: 14px; left: 34px; right: -6px; height: 2px; border-radius: 1px; background: var(--linea-2); }
.pasos li:last-child::after { display: none; }
.pasos li small { display: block; margin-top: 2px; font-weight: 400; color: var(--tinta-3); font-size: 13px; }
.pasos li.hecho { color: var(--tinta); }
.pasos li.hecho::before { content: "✓"; background: var(--ok); color: #fff; }
.pasos li.hecho::after { background: var(--ok); }
.pasos li.actual { color: var(--tinta); font-weight: 600; }
.pasos li.actual::before { background: var(--accion); color: #fff; box-shadow: 0 0 0 5px rgba(0, 113, 227, .18); }
.pasos li.bloqueado { color: var(--alerta); font-weight: 600; }
.pasos li.bloqueado::before { content: "!"; background: var(--alerta); color: #fff; box-shadow: 0 0 0 5px rgba(217, 45, 26, .16); }
@media (max-width: 640px) {
  .pasos { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pasos li { padding: 4px 0 18px 44px; }
  .pasos li::after { top: 32px; bottom: 2px; left: 14px; right: auto; width: 2px; height: auto; }
}

/* ── Línea de tiempo ───────────────────────────────────── */
.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.linea-tiempo li { position: relative; padding: 0 0 18px 28px; font-size: 15px; }
.linea-tiempo li::before { content: ""; position: absolute; left: 4px; top: 6px; z-index: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--accion)); box-shadow: 0 0 0 4px #fff; }
.linea-tiempo li::after { content: ""; position: absolute; left: 9px; top: 12px; bottom: -6px; width: 2px; background: var(--linea-2); }
.linea-tiempo li:last-child { padding-bottom: 0; }
.linea-tiempo li:last-child::after { display: none; }
.linea-tiempo time, .linea-tiempo small { display: block; font-size: 13px; color: var(--tinta-3); }
.linea-tiempo li.pendiente::before { background: #fff; box-shadow: inset 0 0 0 2px var(--linea), 0 0 0 4px #fff; }

/* ── Barras y gráficos ─────────────────────────────────── */
.barra { height: 8px; border-radius: 99px; background: var(--linea-2); overflow: hidden; }
.barra > i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: var(--c, var(--accion)); transition: width .9s var(--curva); }
.tarjeta.marca .barra, .tarjeta.oscura .barra, .unidad.negra .barra { background: rgba(255, 255, 255, .16); }
.grafico-barras { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.grafico-barras > div { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.grafico-barras i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--c, var(--accion)); height: var(--v); min-height: 3px; }
.grafico-barras i.tenue { opacity: .35; }
.grafico-barras span { font-size: 12px; color: var(--tinta-3); white-space: nowrap; }
.anillo { position: relative; display: grid; place-items: center; flex: none; }
.anillo svg { transform: rotate(-90deg); }
.anillo > b { position: absolute; font-family: var(--fuente-display); font-weight: 600; letter-spacing: -.03em; }
.chispa { width: 100%; height: 56px; overflow: visible; }

/* ── Formularios ───────────────────────────────────────── */
.formulario { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--tinta-2); min-width: 0; }
.campo.ancho { grid-column: 1 / -1; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 17px; letter-spacing: -.022em; color: var(--tinta);
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-campo);
}
.campo select { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--accion); box-shadow: 0 0 0 4px rgba(0, 125, 250, .3); }
.interruptor { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--linea); border: 0; cursor: pointer; transition: background .25s; }
.interruptor::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--curva); }
.interruptor[aria-checked="true"] { background: #34c759; }
.interruptor[aria-checked="true"]::after { transform: translateX(20px); }

/* ── Personas ──────────────────────────────────────────── */
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; letter-spacing: 0; color: #fff; background: var(--c, var(--marca)); }
.avatar.grande { width: 56px; height: 56px; font-size: 20px; }

/* ── Mapa ──────────────────────────────────────────────── */
.mapa { position: relative; overflow: hidden; min-height: 320px; border-radius: var(--r-tarjeta); background: #ececec; touch-action: none; cursor: grab; isolation: isolate; }
.mapa:active { cursor: grabbing; }
.mapa .teselas, .mapa .pines { position: absolute; inset: 0; }
.mapa .teselas img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.mapa .pin {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0;
  border-radius: 50%; border: 3px solid #fff; background: var(--c, var(--accion));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; transition: transform .2s var(--curva);
}
.mapa .pin::after { content: ""; position: absolute; inset: -13px; }
.mapa .pin:hover, .mapa .pin[aria-pressed="true"] { transform: scale(1.35); z-index: 2; }
.mapa .rotulo { position: absolute; transform: translate(-50%, -50%); font-size: 12px; font-weight: 600; letter-spacing: -.005em; color: #6e6e73; white-space: nowrap; pointer-events: none; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 5px #fff; }
.mapa .controles { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.mapa .controles button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); font-size: 22px; cursor: pointer; color: var(--tinta); }
.mapa .atribucion { position: absolute; right: 8px; bottom: 6px; z-index: 3; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: var(--tinta-2); }
.mapa .globo { position: absolute; z-index: 4; left: 12px; bottom: 12px; right: 12px; max-width: 340px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-radius: 16px; padding: 14px 16px; box-shadow: var(--sombra-alta); font-size: 15px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--tinta-2); }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 0; }

/* ── Hoja (modal) y tostada ────────────────────────────── */
.velo { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.velo.abierto { opacity: 1; }
.hoja { width: 100%; max-width: 640px; max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 22px calc(24px + env(safe-area-inset-bottom)); transform: translateY(28px); transition: transform .4s var(--curva); }
.hoja::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--linea); margin: 0 auto 16px; }
.velo.abierto .hoja { transform: none; }
@media (min-width: 768px) { .velo { align-items: center; } .hoja { border-radius: 22px; padding-top: 24px; } .hoja::before { display: none; } }
.hoja .cerrar-hoja { float: right; margin: -6px -10px 0 0; }
.tostada {
  position: fixed; left: 50%; bottom: 92px; z-index: 70;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; background: rgba(29, 29, 31, .92); color: #fff; font-size: 15px;
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s var(--curva), transform .3s var(--curva); pointer-events: none;
}
.tostada.visible { opacity: 1; transform: translate(-50%, 0); }
.tostada svg { width: 20px; height: 20px; color: #34c759; flex: none; }
@media (min-width: 1024px) { .tostada { bottom: 32px; } }

/* ── Buscador global (como Spotlight) ──────────────────── */
.spotlight { position: fixed; inset: 0; z-index: 65; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0, 0, 0, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.spotlight .panel { width: 100%; max-width: 640px; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: var(--sombra-alta); overflow: hidden; }
.spotlight input { width: 100%; border: 0; outline: 0; padding: 18px 20px; font: inherit; font-size: 22px; letter-spacing: -.02em; background: transparent; }
.spotlight .resultados { max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--linea-2); padding: 6px; }
.spotlight .resultados a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--tinta); }
.spotlight .resultados a:hover, .spotlight .resultados a.activo { background: var(--accion); color: #fff; text-decoration: none; }
.spotlight .resultados small { margin-left: auto; color: inherit; opacity: .6; font-size: 13px; }


/* ── Elementos de apple.com, medidos el 05-10-2026 ─────── */
/* Títulos de la Store: «Lo último.» en tinta y la continuación en gris, del mismo tamaño */
.titulo > span { color: var(--tinta-2); }
.titulo, .titulo-xl, .subtitulo, .unidad h1, .unidad h2, .unidad .bajada { text-wrap: balance; }
.etiqueta { display: block; font-size: 12px; font-weight: 600; line-height: 1.33; letter-spacing: -.01em; color: var(--aviso); }
.tarjeta.marca .etiqueta, .tarjeta.oscura .etiqueta, .unidad.negra .etiqueta { color: #ff791b; }
.tarjeta.producto { border-radius: 28px; box-shadow: none; padding: 32px; }
.tarjeta.producto.oscura { background: #242426; }
.cinta { padding: 16px 20px; text-align: center; font-size: 14px; line-height: 1.43; letter-spacing: -.016em; color: var(--tinta); background: #fff; }
.cinta a { white-space: nowrap; }
.cinta.vista-previa { background: var(--superficie); border-bottom: 1px solid var(--linea-2); }

/* Los módulos de la portada: centrados, dos por fila con 12 px entre ellos */
.duo { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .duo > .ancha { grid-column: 1 / -1; } }
.unidad {
  position: relative; overflow: hidden; min-width: 0; min-height: 480px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 52px 24px 0; background: #fff; color: var(--tinta);
}
.contenido .unidad { border-radius: var(--r-tarjeta); }
.unidad.negra { background: #000; color: #f5f5f7; }
.unidad.cielo { background: linear-gradient(180deg, #ddeefb 0%, #f4f9fe 100%); }
.unidad.gris { background: var(--superficie); }
.unidad h2 { font-size: clamp(32px, 4vw, 40px); line-height: 1.1; letter-spacing: 0; }
.unidad .bajada { font-family: var(--fuente-display); font-size: clamp(19px, 2vw, 21px); line-height: 1.19; letter-spacing: .011em; margin-top: 6px; max-width: 30ch; }
.duo > .ancha { min-height: 560px; }
.duo > .ancha h2 { font-size: clamp(40px, 5vw, 56px); line-height: 1.07; letter-spacing: -.005em; }
.duo > .ancha .bajada { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.143; letter-spacing: .007em; max-width: 40ch; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.unidad .acciones { margin-top: 18px; }
.unidad .visual { margin-top: auto; width: 100%; display: flex; justify-content: center; align-items: flex-end; padding: 32px 0 36px; }
.unidad.negra .texto-2, .unidad.negra .texto-3 { color: #a1a1a6; }
.unidad.negra .btn-borde { color: var(--enlace-oscuro); box-shadow: inset 0 0 0 1px var(--enlace-oscuro); }
.unidad.negra a:not(.btn) { color: var(--enlace-oscuro); }
.unidad .tarjeta { text-align: left; }
.unidad.negra .tarjeta.oscura { background: #1d1d1f; }
.tablero-presupuesto { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; text-align: left; }
.tablero-presupuesto > .pila-chica { width: 320px; max-width: 100%; }
.mapa-unidad { width: 100%; max-width: 520px; height: 300px; border-radius: var(--r-tarjeta); overflow: hidden; box-shadow: var(--sombra); }
.avatares { display: flex; align-items: center; }
.avatares .avatar { box-shadow: 0 0 0 3px #1d1d1f; }
.avatares .avatar + .avatar { margin-left: -10px; }
.novedad { min-height: 300px; }
.novedad h3 { margin-top: 4px; font-size: 24px; line-height: 1.17; letter-spacing: .009em; }
.novedad p { margin-top: 8px; }

/* La galería horizontal de la Store, con sus flechas grises redondas */
.riel-envoltura { position: relative; min-width: 0; }
.riel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 6px 30px; margin: -10px -6px 0;
}
.riel::-webkit-scrollbar { display: none; }
.riel > * { scroll-snap-align: start; }
.riel-flechas { display: flex; justify-content: flex-end; gap: 14px; margin-top: 4px; }
.riel-flechas button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(210, 210, 215, .64); color: rgba(0, 0, 0, .56); cursor: pointer; }
.riel-flechas button:hover { background: rgba(223, 223, 227, .7); color: rgba(0, 0, 0, .64); }
.riel-flechas svg { width: 18px; height: 18px; }

/* ── Acceso: la puerta, un shell ───────────────────────────────────────────────
   Marca, una entrada y el frontis; nada de lo de adentro. No es una página: son dos paños
   completos —la entrada y la foto— que llenan la pantalla con un mismo margen; nada se desplaza y
   nada queda mordido por un borde. Luis, 05-10-2026: «un solo shell que se adapte bien a cualquier
   pantalla»; y cuando solo se le puso tope de alto a la página que había: «una interfaz que estuvo
   construida para scrolearse y ahora está cortada». De pie, la foto va arriba y la entrada abajo,
   con el botón al alcance del pulgar; acostada, lado a lado. Todo el rótulo sale de un solo tamaño
   (--t, el del nombre), que sigue al paño: así conserva sus proporciones en cualquier pantalla. */
.acceso {
  --alto: 1vh;
  --m: 12px;                                   /* margen y separación: los 12 px de los .duo */
  --r: clamp(18px, calc(2.4vw + 8px), 28px);
  --t: clamp(34px, min(12.5vw, calc(var(--alto) * 6.2)), 72px);
  --aire: calc(var(--t) * .5);
  height: 100vh; height: 100dvh; overflow: hidden; background: #fff;
  display: grid; gap: var(--m); grid-template: "foto" minmax(0, 1fr) "puerta" auto / minmax(0, 1fr);
  padding: max(var(--m), env(safe-area-inset-top)) max(var(--m), env(safe-area-inset-right)) max(var(--m), env(safe-area-inset-bottom)) max(var(--m), env(safe-area-inset-left));
}
@supports (height: 1dvh) { .acceso { --alto: 1dvh; } }
@media (orientation: landscape) {
  .acceso {
    --t: clamp(32px, min(5.2vw, calc(var(--alto) * 10)), 96px);
    grid-template: "puerta foto" minmax(0, 1fr) / minmax(300px, 1fr) minmax(0, 1fr);
  }
}
/* La entrada. El rótulo se centra con márgenes automáticos: si la pantalla fuera más chica que él
   (o el texto estuviera muy ampliado) se desplaza la entrada por dentro, nunca el shell, y sin
   cortarlo por arriba. */
.puerta {
  grid-area: puerta; min-width: 0; min-height: 0; overflow: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--superficie); border-radius: var(--r);
  padding: var(--aire) clamp(16px, 4vw, 40px) calc(var(--aire) * .6);
}
.puerta-texto { margin: auto; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.puerta .logo-oficial { width: auto; height: calc(var(--t) * .78); }
.puerta h1 { margin-top: calc(var(--t) * .24); font-size: var(--t); line-height: 1.05; letter-spacing: -.015em; }
.puerta .bajada { margin-top: calc(var(--t) * .08); font-family: var(--fuente-display); font-size: clamp(17px, calc(var(--t) * .36), 34px); line-height: 1.143; letter-spacing: .007em; text-wrap: balance; }
.puerta .acciones { margin-top: clamp(12px, calc(var(--t) * .32), 30px); }
/* El botón es el de siempre (44 px, letra de 17). En pantallas grandes crece con el rótulo; bajo los
   300 px de ancho (un plegable cerrado) afina la letra y los costados para caber con su ícono entero. */
.puerta .btn { min-height: max(44px, calc(var(--t) * .58)); padding: 0 max(min(22px, 6vw), calc(var(--t) * .3)); font-size: max(min(17px, 5.6vw), calc(var(--t) * .22)); }
.puerta .btn svg { flex: none; width: 1.06em; height: 1.06em; }
.nota-puerta { margin-top: clamp(8px, calc(var(--t) * .2), 16px); font-size: max(clamp(12px, calc(var(--t) * .29), 14px), calc(var(--t) * .177)); line-height: 1.43; letter-spacing: -.016em; color: var(--tinta-2); text-wrap: balance; }
/* La firma institucional, al pie de la entrada */
.firma {
  flex: none; margin-top: var(--aire);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px;
  font-size: 12px; line-height: 1.33; letter-spacing: -.01em; color: rgba(0, 0, 0, .56);
}
.firma .solo-ancha { display: none; }
.firma a { color: inherit; }
@media (min-width: 1280px), (orientation: portrait) and (min-width: 700px) { .firma .solo-ancha { display: inline; } }
/* La foto: un paño entero. Es el frontis restaurado con IA en un 4:3 centrado en la torre
   (herramientas/mahonline-foto.py) y servido en tres anchos para que nunca se estire; el encuadre
   deja el emblema y las letras MAHO adentro aunque el paño sea angosto o muy bajo. */
.acceso picture { grid-area: foto; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--r); background: #2a4e8d; }   /* el azul de su cielo, mientras carga */
.portada-foto { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; border-radius: var(--r); }

/* ── Pie de página: el directorio de apple.com ───────── */
.pie { background: var(--superficie); padding: 0 20px calc(20px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; color: rgba(0, 0, 0, .56); }
.pie-interior { max-width: 980px; margin: 0 auto; }
.pie-nota { padding: 17px 0 12px; border-bottom: 1px solid var(--linea); }
.pie-directorio { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); padding: 20px 0; border-bottom: 1px solid var(--linea); }
.pie-directorio.publico { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pie-directorio h3 { font-size: 12px; font-weight: 600; letter-spacing: -.01em; color: rgba(0, 0, 0, .88); margin-bottom: 6px; }
.pie-directorio a, .pie-directorio span { display: block; padding: 4px 0; color: rgba(0, 0, 0, .72); }
.pie-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 14px; }
.pie-legal .emblema { width: 24px; height: 24px; }
.pie-legal .derechos { flex: 1; min-width: 220px; }
.pie a { color: rgba(0, 0, 0, .72); }
.contenido .pie { margin-top: 72px; padding-left: 0; padding-right: 0; background: transparent; }
@media (max-width: 1023px) { .portal-contenido + .pie { padding-bottom: 92px; } }

/* ── Portal del vecino ─────────────────────────────────── */
.portal-barra { justify-content: space-between; }
.portal-contenido { padding: 0 0 64px; background: #fff; }
.portal-contenido > .ancho-portal { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.heroe-portal { text-align: center; padding: 56px 16px 40px; }
.heroe-portal .titulo-xl { max-width: 14ch; margin: 0 auto; }
.heroe-portal .subtitulo { margin: 12px auto 0; }

/* ── Licitación: el documento y la guía ────────────────── */
/* El documento se abre en una .hoja y cada párrafo es un botón. La guía son dos piezas que solo
   existen mientras se usa: el foco (.guia-velo, un SVG fijo y sin puntero que oscurece todo menos
   el bloque y marca la frase) y la isla (.guia-isla), con el punto tal como lo escribió la
   municipalidad. Todo sale de las fichas de :root; la lógica está en modulos/licitacion.js. */
.documento { margin-top: 22px; }
.documento > p, .guia-cuerpo > p:first-child { font-size: 14px; letter-spacing: -.01em; color: var(--tinta-2); }   /* --tinta-3 no alcanza AA en letra chica */
.documento > p { margin-top: 26px; }
.documento > p + p { margin-top: 14px; }
.documento h3 { font-size: 21px; line-height: 1.19; letter-spacing: .011em; margin: 2px 0 8px; text-wrap: balance; }
.documento h4 { font-size: 17px; line-height: 1.3; letter-spacing: -.022em; margin: 2px 0 6px; }
.documento .parrafo {
  display: flex; align-items: flex-start; gap: 12px;
  width: calc(100% + 24px); margin: 0 -12px; padding: 9px 12px;
  border: 0; border-radius: var(--r-campo); background: transparent; text-align: left; cursor: pointer;
  transition: background .2s var(--curva), color .2s var(--curva);
}
.documento .parrafo > span { flex: 1; min-width: 0; }
.documento .parrafo .chevron { margin-top: 5px; }
.documento .parrafo:hover, .documento .parrafo[aria-current] { background: var(--superficie); }
.documento .parrafo[aria-current] { color: var(--enlace); }

.guia-velo { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .5s var(--curva); }
.guia-velo.activa { opacity: 1; }
.guia-velo .sombra { fill: color-mix(in srgb, var(--tinta) 34%, transparent); }
.guia-velo .aro { fill: none; stroke: color-mix(in srgb, var(--accion) 78%, transparent); stroke-width: 3px; }
.guia-velo .marcas rect { fill: color-mix(in srgb, var(--accion) 20%, transparent); transform-box: fill-box; transform-origin: left center; transform: scaleX(0); opacity: 0; transition: transform .5s var(--curva), opacity .2s var(--curva); }
.guia-velo .marcas.posada rect { transform: none; opacity: 1; }

.guia-isla {
  position: fixed; z-index: 55; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom));
  width: min(720px, calc(100% - 16px)); padding: 0 18px 8px; overflow: hidden;
  border-radius: var(--r-tarjeta); box-shadow: var(--sombra-alta);
  background: color-mix(in srgb, var(--blanco) 94%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  opacity: 0; transform: translate(-50%, 28px); transition: opacity .35s var(--curva), transform .55s var(--curva);
}
.guia-isla.activa { opacity: 1; transform: translate(-50%, 0); }
.guia-isla > .barra { height: 3px; margin: 0 -18px 14px; border-radius: 0; }
.guia-punto { margin-top: 4px; font-weight: 500; text-wrap: pretty; }
.guia-lugar { display: flex; gap: 8px; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--tinta-2); }
.guia-lugar svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accion); }
.guia-lugar b { color: var(--tinta); font-weight: 600; }
.guia-controles { display: flex; align-items: center; gap: 2px; margin: 6px -10px 0; }
.guia-controles .num { min-width: 56px; text-align: center; font-size: 14px; color: var(--tinta-2); }
.guia-controles .btn { margin-left: auto; margin-right: 4px; }
.guia-controles .boton-icono[disabled] { opacity: .3; cursor: default; }
@media (min-width: 768px) {
  .guia-isla { bottom: 20px; padding: 0 22px 10px; }
  .guia-isla > .barra { margin: 0 -22px 16px; }
}
/* Con el botón de la licitación, la barra del teléfono necesita 388 px. En pantallas más angostas
   cede la lupa: «Buscar» sigue en la barra de abajo. */
@media (max-width: 387px) { .barra-superior .solo-movil { display: none; } }

/* ── Movimiento ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .documento > * { animation: entra .5s var(--curva) both; animation-delay: calc(min(var(--i, 0), 16) * 22ms); }
  .guia-cuerpo > * { animation: guia-cambia .5s var(--curva) both; }
  .guia-cuerpo > *:nth-child(2) { animation-delay: .05s; }
  .guia-cuerpo > *:nth-child(3) { animation-delay: .1s; }
  @keyframes guia-cambia { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .entra { animation: entra .55s var(--curva) both; }
  .entra .bento > *, .entra .grilla > * { animation: entra .6s var(--curva) both; }
  .entra .bento > *:nth-child(2), .entra .grilla > *:nth-child(2) { animation-delay: .04s; }
  .entra .bento > *:nth-child(3), .entra .grilla > *:nth-child(3) { animation-delay: .08s; }
  .entra .bento > *:nth-child(4), .entra .grilla > *:nth-child(4) { animation-delay: .12s; }
  .entra .bento > *:nth-child(5), .entra .grilla > *:nth-child(5) { animation-delay: .16s; }
  .entra .bento > *:nth-child(n+6), .entra .grilla > *:nth-child(n+6) { animation-delay: .2s; }
  @keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
