@font-face { font-family: 'Instrument Sans'; src: url(fonts/InstrumentSans-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/InstrumentSans-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/InstrumentSerif-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/InstrumentSerif-Italic.ttf) format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --cal: #F2F6FB;
  --papel: #FFFFFF;
  --tinta: #0E1B33;
  --gris: #5B6878;
  --gris-2: #9AA6B4;
  --linea: #DCE4EE;
  --azulejo: #063C7D;
  --azulejo-claro: #E4EEFA;
  --albero: #4FA3CF;
  --albero-claro: #E1F2FC;
  --verde: #2F7553;
  --verde-claro: #E2F0E8;
  --teja: #B5472F;
  --teja-claro: #F6E3DD;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(14, 27, 51, .06), 0 4px 14px rgba(14, 27, 51, .05);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  --abajo: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--tinta); background: #E3EAF3; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }

.marco { min-height: 100%; display: flex; justify-content: center; }
.app { width: 100%; max-width: 440px; min-height: 100dvh; background: var(--cal); position: relative; display: flex; flex-direction: column; }
@media (min-width: 520px) {
  .marco { padding: 24px 0; }
  .app { min-height: calc(100dvh - 48px); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(14, 27, 51, .18); }
}

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(242, 246, 251, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.cab.con-borde { border-color: var(--linea); }
.cab-marca { display: flex; align-items: center; gap: 10px; }
.cab-marca strong { display: block; font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--azulejo); }
.isotipo { width: 34px; height: 36px; object-fit: contain; flex: none; }
.cab-marca small { color: var(--gris); font-size: 12.5px; }
.sello { width: 36px; height: 36px; border-radius: 10px; background: var(--azulejo); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.yo { width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; transition: transform .15s; }
.yo:active { transform: scale(.94); }

.vista { flex: 1; padding: 6px 16px calc(96px + var(--abajo)); }
.vista.sin-margen { padding-left: 0; padding-right: 0; }

/* Barra inferior */
.barra { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + var(--abajo)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linea); }
@media (min-width: 520px) { .barra { bottom: 24px; border-radius: 0 0 28px 28px; } }
.barra button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; font-size: 11.5px; color: var(--gris); border-radius: 12px; transition: color .15s, background .15s; position: relative; }
.barra button svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.barra button.activa { color: var(--azulejo); font-weight: 700; }
.barra button:active { background: var(--cal); }
.barra .punto { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--teja); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* Títulos */
.saludo { padding: 14px 0 18px; }
.saludo h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.015em; }
.saludo p { color: var(--gris); margin-top: 6px; }
.seccion { margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.seccion h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.seccion .mas { color: var(--azulejo); font-size: 14px; font-weight: 700; }
.titulo-vista { display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 0 12px; }
.titulo-vista h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -.015em; }
.titulo-vista span { color: var(--gris); font-size: 13.5px; }

/* Tarjetas */
.tarjeta { background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px; }
.tarjeta + .tarjeta { margin-top: 10px; }
.toque { transition: transform .15s ease; }
.toque:active { transform: scale(.985); }

.aviso-cruce { border-left: 4px solid var(--verde); }
.aviso-cruce.bajada { border-left-color: var(--albero); }
.aviso-cruce.zona { border-left-color: var(--azulejo); }
.aviso-etq { font-size: 12.5px; font-weight: 700; color: var(--verde); display: flex; align-items: center; gap: 6px; }
.aviso-cruce.bajada .aviso-etq { color: var(--albero); }
.aviso-cruce.zona .aviso-etq { color: var(--azulejo); }
.aviso-cruce h3 { font-size: 15.5px; font-weight: 700; margin: 6px 0 4px; line-height: 1.3; }
.aviso-cruce p { color: var(--gris); font-size: 14px; }
.acciones { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 11px; font-weight: 700; font-size: 14px; background: var(--azulejo); color: #fff; transition: transform .12s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn.sec { background: var(--cal); color: var(--tinta); }
.btn.linea { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea); color: var(--tinta); }
.btn.ancho { width: 100%; height: 48px; font-size: 15px; }
.btn.verde { background: var(--verde); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* Resumen rápido */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cifra { background: var(--papel); border-radius: 12px; padding: 12px; box-shadow: var(--sombra); }
.cifra b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.cifra span { font-size: 12.5px; color: var(--gris); display: block; margin-top: 4px; line-height: 1.25; }

/* Lista de citas */
.cita { display: flex; gap: 12px; align-items: stretch; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.cita:last-child { border-bottom: 0; }
.cita .hora { width: 48px; flex: none; font-weight: 700; font-size: 14px; }
.cita .hora small { display: block; color: var(--gris); font-weight: 400; font-size: 12px; }
.cita .raya { width: 3px; border-radius: 2px; flex: none; }
.cita .que { flex: 1; min-width: 0; }
.cita .que b { display: block; font-size: 14.5px; }
.cita .que span { color: var(--gris); font-size: 13px; }

/* Filtros */
.buscador { display: flex; align-items: center; gap: 8px; background: var(--papel); border-radius: 12px; padding: 0 12px; height: 44px; box-shadow: var(--sombra); }
.buscador svg { width: 18px; height: 18px; stroke: var(--gris); fill: none; stroke-width: 2; flex: none; }
.buscador input { border: 0; outline: 0; background: none; flex: 1; height: 100%; font-size: 15px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 13px; border-radius: 17px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); font-size: 13.5px; font-weight: 700; color: var(--gris); transition: background .15s, color .15s; }
.chip.on { background: var(--tinta); color: #fff; box-shadow: none; }
.chip:active { transform: scale(.96); }

/* Tarjeta de vivienda */
.viv { padding: 0; overflow: hidden; display: block; width: 100%; text-align: left; }
.viv-cab { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0; font-size: 12.5px; color: var(--gris); }
.estado { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.estado.Disponible { background: var(--verde-claro); color: var(--verde); }
.estado.Reservada { background: var(--albero-claro); color: #0C6FA8; }
.estado.Vendida { background: #E6ECF3; color: var(--gris); }
.estado.Captación { background: var(--azulejo-claro); color: var(--azulejo); }
.viv-cuerpo { padding: 6px 14px 12px; }
.precio { font-family: var(--serif); font-size: 31px; line-height: 1.05; letter-spacing: -.01em; }
.precio s { font-size: 17px; color: var(--gris-2); margin-left: 6px; }
.dir { font-weight: 700; font-size: 15px; margin-top: 2px; }
.dir small { font-weight: 400; color: var(--gris); }
.datos { color: var(--gris); font-size: 13.5px; margin-top: 4px; }
.viv-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--linea); font-size: 13px; }
.quien { display: flex; align-items: center; gap: 7px; color: var(--gris); }
.bola { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.encaja { font-weight: 700; color: var(--verde); display: flex; align-items: center; gap: 5px; }
.encaja.nada { color: var(--gris-2); font-weight: 400; }

/* Tarjeta de demanda */
.dem h3 { font-size: 16px; font-weight: 700; }
.dem .busca { color: var(--gris); font-size: 13.5px; margin-top: 4px; }
.dem .fila { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; }

/* Encaje */
.coinc { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); width: 100%; text-align: left; }
.coinc:last-child { border-bottom: 0; }
.anillo { width: 48px; height: 48px; flex: none; position: relative; }
.anillo svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.anillo b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: -.02em; font-weight: 700; }
.coinc .txt { flex: 1; min-width: 0; }
.coinc .txt b { display: block; font-size: 14.5px; }
.coinc .txt span { font-size: 13px; color: var(--gris); display: block; }
.coinc .falla { color: var(--teja); }
.coinc .ok { color: var(--verde); }

/* Hoja (panel deslizante) */
.capa { position: fixed; inset: 0; background: rgba(14, 27, 51, .38); z-index: 50; opacity: 0; transition: opacity .25s; }
.capa.ver { opacity: 1; }
.hoja { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 440px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; z-index: 60; background: var(--cal); border-radius: 22px 22px 0 0; transform: translate(-50%, 100%); transition: transform .32s cubic-bezier(.32, .72, 0, 1); padding: 0 16px calc(24px + var(--abajo)); }
.hoja.ver { transform: translate(-50%, 0); }
.hoja-asa { position: sticky; top: 0; background: var(--cal); padding: 10px 0 8px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.hoja-asa::before { content: ''; position: absolute; top: 6px; left: 50%; width: 38px; height: 5px; border-radius: 3px; background: var(--linea); transform: translateX(-50%); }
.hoja-asa h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-top: 12px; line-height: 1.1; }
.cerrar { width: 34px; height: 34px; margin-top: 10px; border-radius: 50%; background: var(--papel); display: grid; place-items: center; box-shadow: var(--sombra); flex: none; }
.cerrar svg { width: 16px; height: 16px; stroke: var(--tinta); stroke-width: 2.2; fill: none; stroke-linecap: round; }

.ficha-precio { font-family: var(--serif); font-size: 44px; line-height: 1; margin: 4px 0 6px; }
.rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.rejilla div { background: var(--papel); border-radius: 11px; padding: 10px 6px; text-align: center; box-shadow: var(--sombra); }
.rejilla b { display: block; font-size: 18px; }
.rejilla span { font-size: 11.5px; color: var(--gris); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.etiqueta { font-size: 12.5px; padding: 4px 10px; border-radius: 20px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); }
.linea-dato { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); font-size: 14.5px; }
.linea-dato:last-child { border-bottom: 0; }
.linea-dato > span { color: var(--gris); }
.linea-dato b { text-align: right; }
.bloqueado { display: flex; gap: 8px; align-items: center; color: var(--gris); font-size: 13.5px; background: var(--cal); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.bloqueado svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }

/* Formularios */
.campo { display: block; margin-top: 14px; }
.campo > span { display: block; font-size: 13px; font-weight: 700; color: var(--gris); margin-bottom: 6px; }
.campo input, .campo select, .campo textarea { width: 100%; height: 46px; border-radius: 11px; border: 1.5px solid var(--linea); background: var(--papel); padding: 0 12px; font-size: 16px; outline: 0; transition: border-color .15s; -webkit-appearance: none; appearance: none; }
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236F6A62' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.campo textarea { height: 84px; padding: 10px 12px; resize: none; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azulejo); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.opcion { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); font-size: 14px; font-weight: 700; color: var(--gris); transition: all .15s; }
.opcion.on { background: var(--azulejo); color: #fff; box-shadow: none; }
.opcion.r-no.on { background: var(--gris); }
.opcion.r-sin.on { background: var(--teja); }
.opcion.r-cli.on { background: var(--verde); }
.opcion.r-not.on { background: var(--albero); }

.vivo { position: sticky; bottom: calc(-24px - var(--abajo)); margin: 18px -16px -24px; padding: 12px 16px calc(16px + var(--abajo)); background: var(--cal); border-top: 1px solid var(--linea); }
.vivo-txt { font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.vivo-txt b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--verde); line-height: 1; transition: transform .2s; display: inline-block; }
.vivo-txt b.salta { transform: scale(1.25); }

/* Mapa de zona */
.mapa { height: 46dvh; min-height: 300px; position: relative; z-index: 1; background: #E3EAF2; }
.leyenda { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 16px 0; font-size: 12.5px; color: var(--gris); }
.leyenda i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.zona-lista { padding: 0 16px; }
.nota-zona { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); width: 100%; text-align: left; }
.nota-zona .res { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.nota-zona b { font-size: 14.5px; display: block; }
.nota-zona span { color: var(--gris); font-size: 13px; display: block; }
.nota-zona em { font-style: normal; font-size: 12px; font-weight: 700; }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content { font-size: 13.5px; margin: 10px 12px; }
.leaflet-popup-content b { font-size: 14px; }
.flotante { position: fixed; right: max(16px, calc(50% - 220px + 16px)); bottom: calc(84px + var(--abajo)); z-index: 35; height: 52px; padding: 0 20px 0 16px; border-radius: 26px; background: var(--tinta); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(14, 27, 51, .28); transition: transform .15s; }
.flotante:active { transform: scale(.96); }
.flotante svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; }
@media (min-width: 520px) { .flotante { bottom: calc(108px); } }

/* Agenda */
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 14px; }
.dia-sem { padding: 8px 0; border-radius: 12px; text-align: center; transition: background .15s; }
.dia-sem small { display: block; font-size: 11.5px; color: var(--gris); }
.dia-sem b { display: block; font-size: 17px; margin-top: 2px; }
.dia-sem i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--azulejo); margin: 4px auto 0; opacity: 0; }
.dia-sem.con i { opacity: 1; }
.dia-sem.on { background: var(--tinta); color: #fff; }
.dia-sem.on small { color: rgba(255, 255, 255, .7); }
.dia-sem.on i { background: #fff; }
.dia-sem.hoy:not(.on) b { color: var(--azulejo); }
.horario { position: relative; background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.franja { height: 56px; border-top: 1px solid var(--linea); position: relative; }
.franja:first-child { border-top: 0; }
.franja span { position: absolute; left: 10px; top: 4px; font-size: 11.5px; color: var(--gris-2); }
.evento { position: absolute; left: 56px; right: 8px; border-radius: 9px; padding: 6px 9px; font-size: 13px; overflow: hidden; text-align: left; border-left: 3px solid; }
.evento b { display: block; font-size: 13px; line-height: 1.25; }
.evento span { font-size: 12px; opacity: .8; }
.ahora { position: absolute; left: 48px; right: 0; height: 2px; background: var(--teja); z-index: 2; }
.ahora::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--teja); }
.T-Visita { background: var(--azulejo-claro); border-color: var(--azulejo); color: #052E60; }
.T-Zona { background: var(--albero-claro); border-color: var(--albero); color: #0C5A8A; }
.T-Captación { background: var(--verde-claro); border-color: var(--verde); color: #1E4D36; }
.T-Firma { background: var(--teja-claro); border-color: var(--teja); color: #7A2E1D; }
.T-Llamada { background: #EEEAF3; border-color: #7A4E8C; color: #4B2F57; }

/* Panel de dirección */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--papel); border-radius: 13px; padding: 14px; box-shadow: var(--sombra); }
.kpi span { font-size: 13px; color: var(--gris); }
.kpi b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; margin-top: 4px; }
.kpi small { font-size: 12.5px; font-weight: 700; }
.kpi small.sube { color: var(--verde); }
.kpi small.baja { color: var(--teja); }
.grafica { padding: 16px 14px 10px; }
.grafica svg { width: 100%; height: auto; display: block; }
.grafica .ley { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--gris); margin-top: 8px; }
.grafica .ley i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ranking { width: 100%; border-collapse: collapse; font-size: 14px; }
.ranking th { text-align: right; font-size: 12px; color: var(--gris); font-weight: 400; padding: 0 0 8px; }
.ranking th:first-child { text-align: left; }
.ranking td { padding: 10px 0; border-top: 1px solid var(--linea); text-align: right; font-variant-numeric: tabular-nums; }
.ranking td:first-child { text-align: left; }
.ranking td .quien { color: var(--tinta); font-weight: 700; }
.embudo > div { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13.5px; }
.embudo .bar { height: 30px; border-radius: 8px; background: var(--azulejo); color: #fff; display: flex; align-items: center; padding: 0 10px; font-weight: 700; min-width: 40px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.embudo span { color: var(--gris); }
.cobertura { margin-top: 10px; }
.cobertura > div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin-top: 10px; }
.cobertura .pista { flex: 1; height: 8px; background: var(--cal); border-radius: 4px; overflow: hidden; }
.cobertura .pista i { display: block; height: 100%; border-radius: 4px; }
.cobertura b { width: 38px; text-align: right; font-size: 13px; }

/* Firma */
.papel-visita { background: var(--papel); border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); font-size: 14px; line-height: 1.55; }
.papel-visita h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.lienzo { margin-top: 14px; border: 1.5px dashed var(--gris-2); border-radius: 12px; background: #FAFCFE; position: relative; touch-action: none; }
.lienzo canvas { display: block; width: 100%; height: 160px; }
.lienzo span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12.5px; color: var(--gris-2); pointer-events: none; }
.firmada { display: inline-flex; align-items: center; gap: 5px; color: var(--verde); font-weight: 700; font-size: 13px; }
.sin-firmar { color: var(--albero); font-weight: 700; font-size: 13px; }

/* Selección del comprador (vista del cliente) */
.movil-cliente { background: #fff; border-radius: 20px; box-shadow: var(--sombra); overflow: hidden; }
.movil-cliente header { padding: 16px; background: var(--azulejo); color: #fff; }
.movil-cliente header h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.movil-cliente header p { font-size: 13.5px; opacity: .85; margin-top: 4px; }
.prop { padding: 14px 16px; border-top: 1px solid var(--linea); }
.prop:first-of-type { border-top: 0; }
.prop .acciones .btn { flex: 1; height: 38px; }
.prop.gusta { background: var(--verde-claro); }
.prop.no { opacity: .45; }

/* Informe al propietario */
.informe { background: #fff; border-radius: 18px; box-shadow: var(--sombra); padding: 18px; }
.informe h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; }
.informe .sub { color: var(--gris); font-size: 13.5px; margin-top: 4px; }
.informe .tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0; }
.informe .tres div { background: var(--cal); border-radius: 10px; padding: 10px; text-align: center; }
.informe .tres b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; }
.informe .tres span { font-size: 12px; color: var(--gris); }
.comparar { margin-top: 6px; }
.comparar div { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
.comparar .pista { flex: 1; height: 10px; border-radius: 5px; background: var(--cal); overflow: hidden; }
.comparar .pista i { display: block; height: 100%; border-radius: 5px; }
.comparar span { width: 98px; color: var(--gris); }
.comparar b { width: 72px; text-align: right; }

/* Usuarios */
.usuario { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: var(--papel); box-shadow: var(--sombra); width: 100%; text-align: left; margin-top: 8px; }
.usuario.on { box-shadow: inset 0 0 0 2px var(--azulejo), var(--sombra); }
.usuario .bola { width: 38px; height: 38px; font-size: 14px; }
.usuario b { display: block; }
.usuario div span { font-size: 13px; color: var(--gris); }
.pie-demo { color: var(--gris); font-size: 12.5px; text-align: center; margin-top: 22px; line-height: 1.5; }
.pie-demo a { color: inherit; }

/* Aviso flotante */
.aviso { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); z-index: 90; max-width: min(400px, calc(100% - 32px)); background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); transition: transform .35s cubic-bezier(.32, .72, 0, 1); }
.aviso.ver { transform: translate(-50%, 0); }

.vacio { text-align: center; color: var(--gris); padding: 30px 10px; font-size: 14px; }
.entra { animation: entra .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.estatico *, .estatico *::before, .estatico *::after { animation: none !important; transition: none !important; }

/* Pantalla de acceso */
.acceso { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--cal); padding: calc(22px + env(safe-area-inset-top, 0px)) max(16px, calc(50% - 204px)) calc(30px + var(--abajo)); }
.acceso h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: -.015em; margin: 34px 0 10px; }
.acceso .gris { color: var(--gris); font-size: 14.5px; }
.acceso .usuario { position: relative; }
.acceso .flecha { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--azulejo); }
.permisos { width: 100%; border-collapse: collapse; font-size: 13px; }
.permisos th { font-size: 12px; color: var(--gris); font-weight: 700; text-align: left; padding: 8px 6px 6px 0; }
.permisos td { padding: 9px 6px 9px 0; border-top: 1px solid var(--linea); vertical-align: top; line-height: 1.3; }
.permisos td:first-child { color: var(--gris); width: 40%; }
.permisos td:nth-child(2) { font-weight: 700; }

/* Documentos */
.documento { background: #fff; border-radius: 6px; box-shadow: var(--sombra); padding: 22px 18px; font-family: Georgia, 'Instrument Serif', serif; font-size: 13.5px; line-height: 1.6; }
.documento h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; margin-bottom: 6px; }
.documento h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; margin: 14px 0 4px; }
.documento p { margin-bottom: 8px; }
.documento .lugar { color: var(--gris); }
.documento mark { background: var(--azulejo-claro); color: #052E60; padding: 0 3px; border-radius: 3px; font-weight: 700; }
.documento .hueco { color: var(--gris-2); letter-spacing: 1px; }
.documento .firmas { display: flex; gap: 18px; margin-top: 40px; }
.documento .firmas div { flex: 1; border-top: 1px solid var(--tinta); padding-top: 6px; font-family: var(--sans); font-size: 11.5px; color: var(--gris); }
.usuario .flecha { margin-left: auto; padding-left: 10px; font-size: 13.5px; font-weight: 700; color: var(--azulejo); flex: none; }

.leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(.88) sepia(.12) hue-rotate(175deg) saturate(1.4); }
