:root {
  --fondo: #f4f1ea;
  --tarjeta: #ffffff;
  --texto: #1f2a24;
  --suave: #5d6b63;
  --linea: #e1ddd2;
  --oscuro: #1d2b24;
  --acento: #e08a00;
  --acento-2: #b86f00;
  --ok: #2f8a4f;
  --tabs-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root { --fondo: #141b17; --tarjeta: #1e2822; --texto: #e9ece8; --suave: #a5b0a9; --linea: #2d3a32; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fondo); color: var(--texto);
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--acento-2); }
@media (prefers-color-scheme: dark) { a { color: #ffb84d; } }
h1, h2, h3 { line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }

#vistas { position: fixed; inset: 0 0 calc(var(--tabs-h) + var(--safe-b)) 0; }
.vista { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Inicio ---------- */
.portada { position: relative; height: min(46vh, 380px); overflow: hidden; background: #eef1ec; }
.portada img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* la portada es el logo con el nombre dentro de la imagen: el h1 queda solo para lectores de pantalla y la línea de la ruta va en oscuro */
.portada-txt { position: absolute; left: 18px; right: 18px; bottom: 46px; color: #26352d; z-index: 1; text-align: center; }
.portada-txt .sub { display: inline-block; margin: 0; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.88); font-weight: 600; font-size: .9rem; opacity: 1; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.portada-txt h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portada-txt .sobre { display: none; }
.sobre { text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; margin: 0 0 4px; color: #ffc766; font-weight: 600; }
.sub { margin: 4px 0 0; opacity: .92; }
.cuerpo { padding: 16px 16px 32px; max-width: 720px; margin: 0 auto; }
.datos-ruta { display: flex; gap: 8px; flex-wrap: wrap; margin: -34px 0 14px; position: relative; z-index: 2; }
.datos-ruta span { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 999px; padding: 5px 12px; font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.modos { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (max-width: 420px) { .modos { grid-template-columns: 1fr; } }
.modo { text-align: left; border: 2px solid var(--linea); background: var(--tarjeta); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.modo .modo-ico { grid-row: span 2; font-size: 1.8rem; }
.modo b { font-size: 1.05rem; }
.modo small { color: var(--suave); line-height: 1.35; }
.modo.activo { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(224,138,0,.18); }
#modo-terreno { background: var(--oscuro); color: #fff; border-color: var(--oscuro); }
#modo-terreno small { color: #c9d3cc; }
#modo-terreno.activo { border-color: var(--acento); }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.intro p { margin: .6em 0; }
.sec { font-size: 1.15rem; margin: 22px 0 10px; }
.btn { border: 1px solid var(--linea); background: var(--tarjeta); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.btn.primario { background: var(--acento); border-color: var(--acento); color: #fff; }
.btn.peque { padding: 6px 10px; font-size: .85rem; }
.btn-ra { display: block; text-align: center; text-decoration: none; margin: 4px 0 12px; }
.btn.escuchar { background: var(--oscuro); color: #fff; border: 0; }
.firma { text-align: center; color: var(--suave); font-size: .85rem; margin-top: 26px; }

.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista li button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 14px; padding: 8px; }
.lista img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: #ccc; }
.lista .num { font-size: .75rem; font-weight: 700; color: var(--acento-2); text-transform: uppercase; letter-spacing: .5px; }
.lista .tit { font-weight: 650; line-height: 1.25; }
.lista .meta { font-size: .8rem; color: var(--suave); }
.lista .estado { margin-left: auto; font-size: 1.4rem; padding-right: 6px; }

#btn-instalar { width: 100%; margin: 0 0 4px; border: 2px dashed var(--acento); background: transparent; border-radius: 14px; padding: 12px; display: grid; }
#btn-instalar small { color: var(--suave); }
.fila-botones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
#btn-fs.activo { background: var(--acento); color: #fff; }
.ico-compartir { width: 22px; height: 22px; vertical-align: -5px; color: #2f7de1; }
.pasos-ios li { align-items: center; }
.flecha-compartir { position: fixed; z-index: 2600; font-size: 38px; color: var(--acento); text-shadow: 0 0 3px #fff, 0 2px 10px rgba(0,0,0,.4); line-height: 1; pointer-events: none; animation: rebote 1s ease-in-out infinite; }
.flecha-compartir.abajo { left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); margin-left: -16px; }
.flecha-compartir.arriba { right: 70px; top: calc(4px + env(safe-area-inset-top)); animation-name: rebote-arriba; }
@keyframes rebote { 50% { transform: translateY(8px); } }
@keyframes rebote-arriba { 50% { transform: translateY(-8px); } }

/* ---------- Mapa ---------- */
#mapa { position: absolute; inset: 0; background: #2a2f2c; }
.mapa-botones { position: absolute; top: calc(10px + var(--safe-t)); right: 10px; display: grid; gap: 8px; z-index: 500; }
.btn-redondo { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #222; box-shadow: 0 2px 10px rgba(0,0,0,.3); font-size: 1.25rem; display: grid; place-items: center; }
.btn-redondo.activo { background: var(--acento); color: #fff; }
.btn-redondo.gps { font-size: 1.5rem; }
.btn-redondo.gps.sigue { background: #1a73e8; color: #fff; }
.leyenda { position: absolute; left: 10px; top: calc(10px + var(--safe-t)); z-index: 500; background: rgba(255,255,255,.95); color: #222; border-radius: 12px; padding: 8px 10px; font-size: .78rem; max-width: 62vw; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.leyenda div { display: flex; gap: 6px; align-items: center; margin: 2px 0; }
.leyenda i { width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.3); }
.guia { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 600; background: var(--oscuro); color: #fff; border-radius: 16px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.guia-flecha { color: var(--acento); transition: transform .25s ease-out; flex: none; width: 46px; height: 46px; }
.guia-flecha.sin-brujula { color: #8aa; }
.guia-txt { flex: 1; line-height: 1.3; min-width: 0; }
.guia-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guia-txt .dist { font-size: 1.35rem; font-weight: 800; color: #ffc766; }
.guia-txt small { color: #c9d3cc; }
.guia-abrir { border: 0; background: var(--acento); color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.marcador { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--acento); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); display: grid; place-items: center; }
.marcador span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: .95rem; }
.marcador.sellado { background: var(--ok); }
.marcador.objetivo { outline: 4px solid rgba(255,199,102,.7); }
.yo { width: 20px; height: 20px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(26,115,232,.35), 0 1px 5px rgba(0,0,0,.4); position: relative; }
.yo .cono { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 34px solid rgba(26,115,232,.35); transform-origin: 50% 100%; margin: -40px 0 0 -14px; display: none; }
.yo.con-rumbo .cono { display: block; }
.leaflet-popup-content { font-size: .88rem; line-height: 1.4; }
.leaflet-popup-content h4 { margin: 0 0 4px; }

/* ---------- Ficha ---------- */
.ficha { position: fixed; inset: 0; z-index: 1500; background: var(--fondo); animation: sube .22s ease-out; }
@keyframes sube { from { transform: translateY(24px); opacity: .4; } }
.ficha-scroll { position: absolute; inset: 0; overflow-y: auto; padding-bottom: 110px; }
.f-cab { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; background: var(--oscuro); color: #fff; }
.f-cab button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.f-cab .f-num { flex: 1; text-align: center; font-weight: 700; font-size: .92rem; }
.f-cuerpo { padding: 14px 16px; max-width: 760px; margin: 0 auto; }
.f-cuerpo h2 { font-size: 1.6rem; margin: 6px 0 4px; }
.f-meta { color: var(--suave); font-size: .88rem; }
.f-acciones { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.f-acciones .btn { flex: 1 1 auto; }
.f-cuerpo p { margin: .75em 0; }
.p-activo { background: rgba(224,138,0,.14); border-radius: 6px; box-shadow: 0 0 0 6px rgba(224,138,0,.14); }
.term { color: inherit; text-decoration: underline dotted var(--acento); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; background: none; border: 0; padding: 0; font: inherit; }
.caja-web { border-left: 4px solid var(--acento); padding: 2px 0 2px 14px; margin: 16px 0; }
.caja-web h3 { font-size: 1rem; margin: 6px 0; color: var(--acento-2); }
@media (prefers-color-scheme: dark) { .caja-web h3 { color: #ffb84d; } }

/* comparador */
.comparador { position: relative; overflow: hidden; border-radius: 14px; background: #222; user-select: none; touch-action: pan-y; margin: 10px 0 4px; }
.comparador img { display: block; width: 100%; height: auto; pointer-events: none; }
.comparador .capa-b { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.comparador .capa-b img { width: 100%; height: 100%; object-fit: cover; }
.comparador .barra { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); }
.comparador .tirador { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.45); font-size: .9rem; }
.comparador .etq { position: absolute; top: 8px; font-size: .72rem; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 999px; }
.comparador .etq.a { left: 8px; } .comparador .etq.b { right: 8px; }
.pie { font-size: .82rem; color: var(--suave); margin: 2px 2px 14px; }
.galeria-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 8px 0; }
.galeria-mini button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; aspect-ratio: 4/3; }
.galeria-mini button.activo { border-color: var(--acento); }
.galeria-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

.embed { position: relative; border-radius: 14px; overflow: hidden; background: #111; margin: 10px 0; aspect-ratio: 16/10; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed .cargar { position: absolute; inset: 0; border: 0; color: #fff; background: #111 center/cover no-repeat; display: grid; place-items: center; }
.embed .cargar span { background: rgba(0,0,0,.65); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.foto-hist { width: 100%; border-radius: 14px; display: block; }

/* ---------- Pasaporte ---------- */
.cab { padding: calc(16px + var(--safe-t)) 16px 6px; max-width: 760px; margin: 0 auto; }
.cab h2 { font-size: 1.5rem; }
.cab p { color: var(--suave); margin: 4px 0; }
.cab input { width: 100%; margin-top: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--linea); background: var(--tarjeta); color: var(--texto); font: inherit; }
.sellos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 10px 16px; max-width: 760px; margin: 0 auto; }
.sello { position: relative; border: 2px dashed var(--linea); border-radius: 18px; padding: 12px; text-align: center; background: var(--tarjeta); }
.sello .circ { width: 86px; height: 86px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; color: #b9b3a5; border: 3px solid currentColor; }
.sello.hecho { border-style: solid; border-color: var(--ok); }
.sello.hecho .circ { color: var(--ok); transform: rotate(-12deg); background: rgba(47,138,79,.08); }
.sello.visto .circ { color: var(--acento); }
.sello small { display: block; color: var(--suave); font-size: .76rem; }
.sello b { font-size: .88rem; line-height: 1.2; display: block; }
.nota { color: var(--suave); font-size: .85rem; padding: 0 16px 20px; max-width: 760px; margin: 0 auto; }
#pas-final { max-width: 728px; margin: 12px auto; text-align: center; }

/* ---------- Saber más ---------- */
#v-info > .sec, #v-info > .tarjeta, #v-info > ul, #v-info > #unidades { max-width: 728px; margin-left: auto; margin-right: auto; }
#v-info > .sec { padding: 0 16px; }
#v-info > .tarjeta { margin-left: 16px; margin-right: 16px; }
@media (min-width: 760px) { #v-info > .tarjeta { margin-left: auto; margin-right: auto; } }
.glosario { max-width: 760px; margin: 6px auto; padding: 0 16px; }
.glosario dt { font-weight: 700; margin-top: 10px; }
.glosario dt button { background: none; border: 0; padding: 0; font-weight: 700; text-align: left; }
.glosario dd { margin: 2px 0 0; color: var(--suave); font-size: .92rem; }
#unidades { padding: 0 16px; }
.unidad { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.unidad i { width: 22px; height: 22px; border-radius: 5px; flex: none; margin-top: 2px; border: 1px solid rgba(0,0,0,.25); }
.unidad small { color: var(--suave); display: block; }
.biblio { padding: 0 16px 0 34px; font-size: .86rem; color: var(--suave); }
.biblio li { margin: 6px 0; }
.ajuste { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.ajuste input { width: 20px; height: 20px; accent-color: var(--acento); }
.creditos p { margin: .5em 0; font-size: .9rem; }
.dev { font-size: 1rem !important; }
.creditos .licencia { font-size: .82rem; color: #4a5a50; }
.creditos .licencia a { color: inherit; }
.progreso { margin-top: 12px; height: 26px; border-radius: 999px; background: var(--linea); position: relative; overflow: hidden; }
.progreso div { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ok); transition: width .2s; }
.progreso span { position: relative; font-size: .78rem; font-weight: 700; display: grid; place-items: center; height: 100%; }

/* ---------- Reproductor ---------- */
.reproductor { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); z-index: 1800; background: var(--oscuro); color: #fff; border-radius: 16px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); max-width: 740px; margin: 0 auto; }
body.con-guia .reproductor { bottom: calc(var(--tabs-h) + var(--safe-b) + 84px); }
.rep-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acento); color: #fff; font-size: 1.1rem; flex: none; }
.rep-centro { flex: 1; min-width: 0; }
.rep-titulo { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
#rep-barra { width: 100%; accent-color: var(--acento); }
.rep-vel, .rep-cerrar { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 8px; padding: 6px 8px; font-size: .85rem; flex: none; }

/* ---------- Tabs ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1600; height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: var(--tarjeta); border-top: 1px solid var(--linea); }
.tabs a { flex: 1; display: grid; place-items: center; align-content: center; gap: 1px; text-decoration: none; color: var(--suave); font-size: .72rem; }
.tabs a span { font-size: 1.3rem; filter: grayscale(.6); }
.tabs a.activo { color: var(--acento-2); }
.tabs a.activo span { filter: none; }
@media (prefers-color-scheme: dark) { .tabs a.activo { color: #ffb84d; } }
body.ficha-abierta .tabs { z-index: 1400; }

/* ---------- Hoja, toast, sello ---------- */
.hoja { position: fixed; inset: 0; z-index: 2500; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.hoja-in { background: var(--tarjeta); width: 100%; max-width: 640px; max-height: 80vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); animation: sube .2s ease-out; }
.hoja-in h3 { font-size: 1.25rem; margin-bottom: 8px; }
.hoja-in p { margin: .55em 0; }
.hoja-in .cerrar { float: right; border: 0; background: var(--linea); border-radius: 999px; width: 34px; height: 34px; }
.toast { position: fixed; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); z-index: 3000; background: var(--oscuro); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 22px rgba(0,0,0,.35); max-width: 560px; margin: 0 auto; animation: sube .2s; }
.toast span { flex: 1; }
.toast button { border: 0; background: var(--acento); color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.sello-anim { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; background: rgba(0,0,0,.35); pointer-events: none; }
.sello-anim div { width: 190px; height: 190px; border-radius: 50%; border: 8px solid var(--ok); color: var(--ok); background: #fff; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 1.1rem; line-height: 1.15; animation: estampa .5s cubic-bezier(.2,1.6,.4,1); transform: rotate(-14deg); padding: 16px; }
.sello-anim b { font-size: 2.6rem; display: block; }
@keyframes estampa { from { transform: scale(2.4) rotate(-14deg); opacity: 0; } }
.pasos-ios { padding-left: 0; list-style: none; counter-reset: p; }
.pasos-ios li { counter-increment: p; display: flex; gap: 10px; margin: 10px 0; align-items: flex-start; }
.pasos-ios li::before { content: counter(p); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--acento); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
body.ficha-abierta .reproductor { bottom: calc(8px + var(--safe-b)); }

/* ---------- barra institucional ---------- */
.barra-inst { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; padding: calc(8px + var(--safe-t)) 14px 10px; }
.barra-inst::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #0f69b4 0 38%, #eb3c46 38% 100%); }
.barra-inst img { height: 52px; width: auto; display: block; }
.barra-txt { flex: 1; text-align: center; font-size: .72rem; line-height: 1.2; color: #4a4a4a; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.pie-inst { margin-top: 28px; text-align: center; }
.pie-inst small { color: var(--suave); text-transform: uppercase; letter-spacing: 1px; font-size: .7rem; }
.logos-inst { display: flex; gap: 14px; justify-content: center; align-items: center; background: #fff; border-radius: 12px; padding: 10px; margin: 6px 0 10px; border: 1px solid var(--linea); }
.logos-inst img { height: 48px; width: auto; }

/* ---------- quiz ---------- */
.quiz { background: var(--tarjeta); border: 2px solid var(--acento); border-radius: 16px; padding: 14px 16px; margin: 22px 0 14px; }
.quiz h3 { font-size: 1rem; color: var(--acento-2); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .quiz h3 { color: #ffb84d; } }
.quiz .preg { font-weight: 700; margin: 4px 0 10px; }
.quiz .ops { display: grid; gap: 8px; }
.quiz .ops button { text-align: left; border: 2px solid var(--linea); background: var(--fondo); border-radius: 12px; padding: 10px 12px; line-height: 1.35; }
.quiz .ops button.ok { border-color: var(--ok); background: rgba(47,138,79,.14); }
.quiz .ops button.mal { border-color: #c0392b; background: rgba(192,57,43,.12); }
.quiz .ops button:disabled { cursor: default; color: inherit; }
.quiz .expl { margin: 10px 0 0; font-size: .92rem; }
.sello .q { position: absolute; top: 8px; right: 10px; font-size: 1.05rem; }

/* ---------- aviso de instalación siempre visible ---------- */
.aviso-instalar { position: sticky; top: 0; z-index: 20; width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: var(--acento); color: #fff; padding: 10px 14px; text-align: left; box-shadow: 0 3px 12px rgba(0,0,0,.25); }
.aviso-instalar .ai-ico { font-size: 1.6rem; animation: latido 1.6s ease-in-out infinite; }
.aviso-instalar .ai-txt { flex: 1; line-height: 1.25; }
.aviso-instalar .ai-txt b { display: block; font-size: .98rem; }
.aviso-instalar .ai-txt small { opacity: .95; font-size: .8rem; }
.aviso-instalar .ai-btn { background: #fff; color: var(--acento-2); font-weight: 800; border-radius: 999px; padding: 8px 14px; font-size: .9rem; }
@keyframes latido { 50% { transform: scale(1.15); } }
#btn-instalar { border-style: solid; background: rgba(224,138,0,.1); }
.flecha-compartir.arriba.derecha { right: 8px; }
.flecha-compartir.abajo.derecha { left: auto; right: 14px; margin-left: 0; }
.btn-redondo.instalar-mapa { background: var(--acento); color: #fff; animation: latido 1.6s ease-in-out infinite; }

/* ---------- banderas de idioma ---------- */
.banderas { display: flex; gap: 6px; }
.banderas button { display: flex; align-items: center; gap: 5px; border: 2px solid transparent; background: rgba(255,255,255,.92); color: #222; border-radius: 999px; padding: 4px 9px 4px 5px; font-size: .75rem; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.banderas svg { width: 24px; height: 16px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.banderas button.activo { border-color: var(--acento); background: #fff; }
.portada-idioma { position: absolute; top: 10px; right: 10px; z-index: 2; }
.banderas.grande { margin-top: 10px; }
.banderas.grande button { padding: 6px 12px 6px 7px; font-size: .85rem; }
.banderas.grande svg { width: 30px; height: 20px; }
.banderas.chica { margin: 8px 0 0; }
.leyenda { transition: opacity .15s; }
.leyenda.oculta { opacity: 0; pointer-events: none; }
