/* Auditoría · mapa del Índice Studio32. Página propia: no comparte CSS con la portada. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../assets/fonts/playfair-display-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../assets/fonts/playfair-display-italic-latin.woff2) format('woff2'); }

:root {
  --tinta: #12100c;
  --tinta-2: #1b1813;
  --tinta-3: #26221b;
  --linea-osc: rgba(246, 240, 229, .1);
  --crema: #f6f0e5;
  --crema-2: rgba(246, 240, 229, .72);
  --crema-3: rgba(246, 240, 229, .5);
  --papel: #f7f4ee;
  --papel-2: #efe9dd;
  --texto: #1c1812;
  --texto-2: #5d564b;
  --oro: #c9a86a;
  --oro-osc: #8a6421;
  /* tramos del índice: de «con mucho margen» a «muy bien preparada» */
  --t0: #c4553a;
  --t1: #d9a441;
  --t2: #8fa85a;
  --t3: #2f7d5b;
  --sin-leer: #3b352c;
  --sin-web: #a3977f;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radio: 14px;
  --panel: 440px;
  --barra: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--sans);
  background: var(--tinta);
  color: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- estructura */
.app {
  display: grid;
  grid-template-columns: var(--panel) 1fr;
  grid-template-rows: var(--barra) 1fr;
  grid-template-areas: "barra barra" "panel mapa";
  height: 100dvh;
}
.barra {
  grid-area: barra;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px 0 24px;
  border-bottom: 1px solid var(--linea-osc);
  background: var(--tinta);
  position: relative; z-index: 5;
}
.marca { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.marca__nombre { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.marca__sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--crema-3); }
.barra__dato { font-size: 13px; color: var(--crema-2); margin-left: auto; white-space: nowrap; }
.barra__dato strong { color: var(--crema); font-weight: 600; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.boton:active { transform: scale(.98); }
.boton--oro { background: var(--oro); color: var(--tinta); }
.boton--oro:hover { background: #d6b77c; box-shadow: 0 6px 22px rgba(201, 168, 106, .28); }
.boton--linea { background: transparent; color: var(--crema); box-shadow: inset 0 0 0 1px rgba(246, 240, 229, .25); }
.boton--linea:hover { box-shadow: inset 0 0 0 1px var(--oro); }
.boton--ancho { width: 100%; min-height: 50px; font-size: 15px; }
.boton__precio { font-weight: 500; opacity: .75; }

.panel {
  grid-area: panel;
  position: relative;
  overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(201, 168, 106, .09), transparent 60%),
    var(--tinta);
  border-right: 1px solid var(--linea-osc);
  scrollbar-width: thin; scrollbar-color: var(--tinta-3) transparent;
}
.panel__dentro { padding: 24px 28px 36px; }

.mapa { grid-area: mapa; position: relative; background: var(--papel); }
#mapa { position: absolute; inset: 0; }

/* ---------------------------------------------------------------- inicio */
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro);
}
.etiqueta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 4px rgba(201, 168, 106, .18); }
.titular {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(28px, 2.7vw, 36px); line-height: 1.06; margin: 14px 0 12px;
}
.titular em { font-style: italic; color: var(--oro); font-weight: 500; }
.entradilla { font-size: 14.5px; line-height: 1.55; color: var(--crema-2); margin: 0 0 18px; }

.buscador { position: relative; }
.buscador__caja {
  display: flex; align-items: center; gap: 10px;
  background: var(--crema); color: var(--texto);
  border-radius: 14px; padding: 0 14px; height: 56px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .35);
  transition: box-shadow .2s;
}
.buscador__caja:focus-within { box-shadow: 0 0 0 3px rgba(201, 168, 106, .55), 0 12px 32px rgba(0, 0, 0, .35); }
.buscador__icono { flex: none; width: 20px; height: 20px; color: var(--texto-2); }
.buscador input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: 500 16px var(--sans); color: var(--texto);
}
.buscador input::placeholder { color: #8b8377; font-weight: 400; }
.sugerencias {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10;
  list-style: none; margin: 0; padding: 6px;
  background: var(--crema); color: var(--texto); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
  max-height: 380px; overflow-y: auto;
}
.sugerencia {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.sugerencia[aria-selected="true"], .sugerencia:hover { background: var(--papel-2); }
.sugerencia__punto { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sugerencia__punto--g4 { background: #fff; box-shadow: inset 0 0 0 2px var(--sin-leer); }
.sugerencia__punto--g5 { background: var(--sin-web); }
.sugerencia__punto--g6 { background: #e9e2d4; box-shadow: inset 0 0 0 1px #b3a791; }
.sugerencia__texto { min-width: 0; }
.sugerencia__nombre { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugerencia__nombre mark { background: rgba(201, 168, 106, .35); color: inherit; border-radius: 2px; }
.sugerencia__lugar { display: block; font-size: 12.5px; color: var(--texto-2); }
.sugerencia--vacia { cursor: default; display: block; font-size: 14px; line-height: 1.5; color: var(--texto-2); }
.sugerencia--vacia:hover { background: transparent; }
.sugerencia--vacia a { color: var(--oro-osc); font-weight: 600; }
.buscador__ayuda { font-size: 12.5px; color: var(--crema-3); margin: 10px 2px 0; }

.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0 0; background: var(--linea-osc); border-radius: var(--radio); overflow: hidden; }
.cifra { background: var(--tinta-2); padding: 13px 14px; }
.cifra__num { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.cifra__txt { font-size: 12px; line-height: 1.35; color: var(--crema-2); margin-top: 6px; }
.nota-fuente { font-size: 12px; line-height: 1.55; color: var(--crema-3); margin: 14px 0 0; }

.como { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: paso; }
.como li { counter-increment: paso; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--linea-osc); font-size: 13.5px; line-height: 1.45; color: var(--crema-2); }
.como li::before { content: counter(paso); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--oro); box-shadow: inset 0 0 0 1px rgba(201, 168, 106, .45); }
.como strong { color: var(--crema); font-weight: 600; }

/* ---------------------------------------------------------------- lectura (animación) */
.lectura { padding-top: 6px; }
.lectura__nombre { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; margin: 14px 0 6px; }
.lectura__aviso { font-size: 13px; color: var(--crema-3); margin: 0 0 22px; }
.pasos { list-style: none; margin: 0; padding: 0; }
.paso { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--linea-osc); opacity: .35; transition: opacity .35s; }
.paso.activo, .paso.hecho { opacity: 1; }
.paso__icono { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--crema-3); }
.paso.activo .paso__icono { box-shadow: inset 0 0 0 1.5px var(--oro); }
.paso.activo .paso__icono::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--oro); animation: girar .8s linear infinite; }
.paso.hecho .paso__icono { background: var(--oro); box-shadow: none; }
.paso.hecho .paso__icono::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--tinta); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.paso__texto { flex: 1; min-width: 0; font-size: 15px; }
.paso__dato { flex: none; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--crema-2); font-variant-numeric: tabular-nums; }
.saltar { margin-top: 18px; background: none; border: 0; padding: 6px 0; font-size: 13px; color: var(--crema-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- diagnóstico */
.volver { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--crema-2); cursor: pointer; }
.volver:hover { color: var(--crema); }
.ficha__cabeza { margin: 14px 0 22px; }
.ficha__nombre { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 10px 0 8px; }
.ficha__lugar { font-size: 13.5px; line-height: 1.5; color: var(--crema-2); margin: 0; }
.ficha__lugar a { color: var(--oro); text-decoration: none; word-break: break-all; }
.ficha__lugar a:hover { text-decoration: underline; }

.nota {
  display: grid; grid-template-columns: 116px 1fr; gap: 20px; align-items: center;
  padding: 20px; border-radius: var(--radio); background: var(--tinta-2); box-shadow: inset 0 0 0 1px var(--linea-osc);
}
.anillo { position: relative; width: 116px; height: 116px; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo__fondo { fill: none; stroke: var(--tinta-3); stroke-width: 9; }
.anillo__valor { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.anillo__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anillo__num b { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.anillo__num span { font-size: 11px; color: var(--crema-3); margin-top: 2px; }
.nota__nivel { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.nota__nivel i { width: 10px; height: 10px; border-radius: 50%; }
.nota__puesto { font-size: 13.5px; line-height: 1.55; color: var(--crema-2); margin: 8px 0 0; }
.nota__puesto strong { color: var(--crema); font-weight: 600; }

.bloque { margin-top: 28px; }
.bloque__titulo { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--crema-3); margin: 0 0 12px; }
.bloque__texto { font-size: 14px; line-height: 1.6; color: var(--crema-2); margin: 0; }
.bloque__texto strong { color: var(--crema); }
.bloque__texto--sep { margin: 14px 0 0; }

.histo { position: relative; height: 92px; display: flex; align-items: flex-end; gap: 3px; padding-top: 22px; }
.histo__barra { flex: 1; background: var(--tinta-3); border-radius: 2px 2px 0 0; min-height: 2px; }
.histo__barra.tu { background: var(--oro); }
.histo__marca { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--oro); white-space: nowrap; }
.histo__eje { display: flex; justify-content: space-between; font-size: 11px; color: var(--crema-3); margin-top: 6px; }

.barras { display: grid; gap: 14px; }
.barra-b__cab { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.barra-b__cab span:last-child { font-variant-numeric: tabular-nums; color: var(--crema-2); }
.barra-b__cab b { color: var(--crema); font-weight: 600; }
.barra-b__pista { position: relative; height: 8px; border-radius: 99px; background: var(--tinta-3); }
.barra-b__valor { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transition: width 1s var(--ease); }
.barra-b__media { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--crema-2); border-radius: 2px; }
.leyenda-media { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--crema-3); margin-top: 12px; }
.leyenda-media i { width: 2px; height: 12px; background: var(--crema-2); }

.fallos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fallo { padding: 14px 16px; border-radius: 12px; background: var(--tinta-2); box-shadow: inset 0 0 0 1px var(--linea-osc); }
.fallo__titulo { font-size: 14.5px; font-weight: 600; margin: 0 0 4px; }
.fallo__titulo { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fallo__tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e48a72; }
.fallo__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t0); }
.fallo--aviso .fallo__tag { color: var(--t1); }
.fallo--aviso .fallo__tag::before { background: var(--t1); }
.fallo__por { font-size: 13.5px; line-height: 1.55; color: var(--crema-2); margin: 0; }

.idiomas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.idioma { text-align: center; padding: 10px 0 8px; border-radius: 10px; background: var(--tinta-2); box-shadow: inset 0 0 0 1px var(--linea-osc); }
.idioma b { display: block; font-size: 14px; letter-spacing: .04em; }
.idioma span { display: block; font-size: 10.5px; color: var(--crema-3); margin-top: 3px; }
.idioma.si { background: rgba(201, 168, 106, .14); box-shadow: inset 0 0 0 1px rgba(201, 168, 106, .55); }
.idioma.si b { color: var(--oro); }
.idioma.no b { color: var(--crema-3); text-decoration: line-through; text-decoration-color: rgba(246, 240, 229, .3); }

.zona { padding: 18px; border-radius: var(--radio); background: var(--tinta-2); box-shadow: inset 0 0 0 1px var(--linea-osc); }
.embudo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.embudo div { font-size: 12px; line-height: 1.35; color: var(--crema-2); }
.embudo b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--crema); margin-bottom: 4px; }
.fila-zona { position: relative; padding-top: 26px; margin-bottom: 4px; }
.fila-zona__marcas { display: flex; gap: 2px; height: 22px; align-items: flex-end; }
.fila-zona__marcas i { flex: 1; min-width: 2px; height: 14px; border-radius: 2px; opacity: .75; }
.fila-zona__marcas i.tu { height: 22px; opacity: 1; box-shadow: 0 0 0 2px var(--crema); }
.fila-zona__marcas { overflow: hidden; }
.fila-zona__barra { position: relative; display: flex; gap: 2px; height: 14px; margin-top: 8px; }
.fila-zona__barra span { min-width: 3px; border-radius: 3px; opacity: .8; }
.fila-zona__aguja { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 3px; background: var(--crema); box-shadow: 0 0 0 2px var(--tinta-2); }
.fila-zona { overflow: visible; }
.fila-zona__tu { position: absolute; top: 0;  white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--oro);
  padding: 2px 8px; border-radius: 99px; background: rgba(201, 168, 106, .14); }
.fila-zona__eje { display: flex; justify-content: space-between; font-size: 11px; color: var(--crema-3); margin-top: 6px; }
.pila-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--crema-2); }
.pila-leyenda i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.detalle { margin-top: 28px; border-top: 1px solid var(--linea-osc); }
.detalle summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.detalle summary::-webkit-details-marker { display: none; }
.detalle summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--oro); }
.detalle[open] summary::after { content: "–"; }
.grupo { margin-bottom: 18px; }
.grupo__titulo { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--crema-3); margin: 0 0 6px; }
.comp { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linea-osc); font-size: 13.5px; line-height: 1.45; }
.comp__estado { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; }
.comp__estado.ok { background: var(--t3); }
.comp__estado.aviso { background: var(--t1); }
.comp__estado.mal { background: var(--t0); }
.comp__prueba { display: block; font-size: 12.5px; color: var(--crema-3); margin-top: 2px; word-break: break-word; }

.oferta {
  margin-top: 30px; padding: 24px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(201, 168, 106, .16), rgba(201, 168, 106, .04) 60%), var(--tinta-2);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 106, .35);
}
.oferta__titulo { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; margin: 10px 0 8px; }
.oferta__texto { font-size: 14px; line-height: 1.6; color: var(--crema-2); margin: 0 0 16px; }
.oferta__lista { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.oferta__lista li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; }
.oferta__lista li::before { content: ""; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: rgba(201, 168, 106, .25); box-shadow: inset 0 0 0 4px var(--oro); }
.precio { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.precio__num { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; }
.precio__antes { font-size: 16px; color: var(--crema-3); text-decoration-thickness: 1.5px; }
.promo { display: inline-block; margin: 6px 0 12px; padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: var(--oro); color: var(--tinta); }
.precio__nota { font-size: 12.5px; line-height: 1.55; color: var(--crema-3); margin: 0 0 18px; }
.precio__nota strong { color: var(--crema-2); font-weight: 600; }
.gratis { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(47, 125, 91, .18); box-shadow: inset 0 0 0 1px rgba(143, 168, 90, .4); font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.gratis b { color: #b9d48a; }
.oferta__botones { display: grid; gap: 10px; }
.oferta__firma { font-size: 12.5px; color: var(--crema-3); margin: 14px 0 0; text-align: center; }

.limites { font-size: 12px; line-height: 1.6; color: var(--crema-3); margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--linea-osc); }
.limites a { color: var(--crema-2); }

.alerta { padding: 20px; border-radius: var(--radio); background: rgba(196, 85, 58, .14); box-shadow: inset 0 0 0 1px rgba(196, 85, 58, .45); }
.alerta__titulo { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; margin: 0 0 8px; }
.alerta p { font-size: 14px; line-height: 1.6; color: var(--crema-2); margin: 0; }
.alerta p + p { margin-top: 8px; }
.alerta--neutra { background: var(--tinta-2); box-shadow: inset 0 0 0 1px var(--linea-osc); }

.aparecer { animation: aparecer .55s var(--ease) both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- mapa: capas encima */
.leyenda {
  position: absolute; right: 16px; bottom: 34px; z-index: 2;
  background: rgba(247, 244, 238, .94); color: var(--texto);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 14px; padding: 14px 16px; width: 252px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 14px 36px rgba(28, 24, 18, .16);
}
.leyenda__boton { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin: 0 0 10px; border: 0; background: none; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); text-align: left; }
.leyenda__boton::after { content: "–"; margin-left: auto; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.leyenda__puntos { display: none; gap: 3px; }
.leyenda__puntos i { width: 8px; height: 8px; border-radius: 50%; }
.leyenda__puntos i:nth-child(1) { background: var(--t3); }
.leyenda__puntos i:nth-child(2) { background: var(--t2); }
.leyenda__puntos i:nth-child(3) { background: var(--t1); }
.leyenda__puntos i:nth-child(4) { background: var(--t0); }
.leyenda.plegada { width: auto; padding: 10px 14px; }
.leyenda.plegada .leyenda__boton { margin: 0; }
.leyenda.plegada .leyenda__boton::after { content: "+"; margin-left: 4px; }
.leyenda.plegada .leyenda__puntos { display: inline-flex; }
.leyenda.plegada .leyenda__cuerpo { display: none; }
.leyenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.leyenda li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.leyenda li span:last-child { margin-left: auto; font-size: 12px; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.leyenda i { flex: none; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.leyenda i.leyenda__g4 { background: #fff; box-shadow: inset 0 0 0 2px var(--sin-leer); }
.leyenda i.leyenda__g5 { width: 8px; height: 8px; margin: 0 1.5px; background: var(--sin-web); box-shadow: none; }
.leyenda i.leyenda__g6 { width: 8px; height: 8px; margin: 0 1.5px; background: #e9e2d4; box-shadow: inset 0 0 0 1px #b3a791; }
.leyenda__pie { font-size: 11.5px; line-height: 1.45; color: var(--texto-2); margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(28, 24, 18, .08); }
.leyenda__plegar { display: none; }

.cartel {
  position: absolute; left: 16px; top: 66px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: rgba(18, 16, 12, .86); color: var(--crema);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: 8px 14px 8px 10px; font-size: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: opacity .3s;
}
.cartel i { width: 8px; height: 8px; border-radius: 50%; background: var(--oro); animation: latir 1.6s ease-in-out infinite; }
@keyframes latir { 50% { opacity: .35; } }

.buscador__ayuda a { color: var(--oro); font-weight: 600; }
.tipos {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(247, 244, 238, .94); box-shadow: 0 10px 28px rgba(28, 24, 18, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none;
}
.tipos:empty { display: none; }
.tipo { flex: none; border: 0; border-radius: 999px; padding: 7px 13px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--texto-2); white-space: nowrap; }
.tipo span { font-weight: 500; opacity: .7; margin-left: 2px; }
.tipo:hover { color: var(--texto); }
.tipo.activo { background: var(--tinta); color: var(--crema); }
.cargando { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: var(--papel); color: var(--texto-2); font-size: 14px; transition: opacity .5s; }
.cargando.fuera { opacity: 0; pointer-events: none; }
.error-mapa { color: var(--texto); max-width: 320px; text-align: center; line-height: 1.5; }

/* marcador del restaurante elegido */
.elegido { position: relative; width: 26px; height: 26px; }
.elegido__pulso { position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--oro); animation: pulso 2s var(--ease) infinite; }
.elegido__punto { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.elegido__punto--hueco { border-color: var(--sin-leer); }
.elegido__rotulo {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--tinta); color: var(--crema); border-radius: 10px; padding: 7px 10px 7px 12px;
  font-size: 13px; font-weight: 600; box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.elegido__rotulo::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--tinta); }
.elegido__rotulo b { font-family: var(--serif); font-size: 15px; padding: 1px 7px; border-radius: 6px; color: var(--tinta); }
@keyframes pulso { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ventanita al tocar un vecino */
.maplibregl-popup-content { border-radius: 12px !important; padding: 12px 14px !important; font-family: var(--sans); box-shadow: 0 12px 30px rgba(28, 24, 18, .2) !important; }
.vecino { min-width: 190px; color: var(--texto); }
.vecino__nombre { font-size: 14.5px; font-weight: 700; margin: 0 0 2px; padding-right: 14px; }
.vecino__lugar { font-size: 12px; color: var(--texto-2); margin: 0 0 8px; }
.vecino__tramo { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.vecino__tramo i { width: 9px; height: 9px; border-radius: 50%; }
.vecino__tramo i.vecino__hueco { background: #fff; box-shadow: inset 0 0 0 2px var(--sin-leer); }
.vecino__tramo i.vecino__gris--g5 { background: var(--sin-web); }
.vecino__tramo i.vecino__gris--g6 { background: #e9e2d4; box-shadow: inset 0 0 0 1px #b3a791; }
.vecino__ver { display: block; width: 100%; margin-top: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--tinta); color: var(--crema); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vecino__ver:hover { background: var(--tinta-3); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(247, 244, 238, .55) !important; color: rgba(28, 24, 18, .55); box-shadow: none; }
.maplibregl-ctrl-attrib.maplibregl-compact-show { background: rgba(247, 244, 238, .85) !important; }
.maplibregl-ctrl-attrib a { color: rgba(28, 24, 18, .6) !important; }
.maplibregl-ctrl-attrib-button { opacity: .45; transform: scale(.8); }

/* ---------------------------------------------------------------- tablet y móvil */
@media (max-width: 1100px) {
  :root { --panel: 380px; }
  .barra__dato { display: none; }
  .marca__sub { display: none; }
  .barra .boton { margin-left: auto; }
}
@media (max-width: 820px) {
  :root { --barra: 54px; }
  body { overflow: auto; }
  .app { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  .barra { order: 0; }
  .mapa { order: 1; }
  .panel { order: 2; flex: 1; }
  .barra { position: sticky; top: 0; padding: 0 16px; gap: 12px; }
  .barra .boton { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .boton__precio { display: none; }
  /* el mapa manda; el panel asoma abajo con el buscador y sube al deslizar */
  /* asoma solo el buscador (unos 170 px): el mapa ocupa el resto y el panel sube al deslizar */
  .mapa { position: sticky; top: var(--barra); height: calc(100vh - var(--barra) - 128px); height: calc(100dvh - var(--barra) - 128px); z-index: 1; }
  .panel { position: relative; z-index: 2; overflow: visible; border-right: 0; border-radius: 22px 22px 0 0; margin-top: -22px; min-height: 70vh; box-shadow: 0 -14px 34px rgba(0, 0, 0, .3); }
  .panel::before { content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(246, 240, 229, .25); }
  .panel__dentro { padding: 26px 16px 48px; }
  .inicio { display: flex; flex-direction: column; }
  .inicio .buscador { order: -1; margin-bottom: 22px; }
  .inicio .etiqueta { order: 0; }
  .titular { font-size: 28px; }
  .cifras { grid-template-columns: 1fr; }
  .cifra { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; }
  .cifra__txt { margin: 0; }
  .leyenda { right: 10px; bottom: 28px; width: auto; max-width: calc(100% - 20px); padding: 10px 12px; }
  .leyenda.plegada { padding: 8px 12px; }
  .leyenda { top: 10px; bottom: auto; }
  .mapa .maplibregl-ctrl-top-right { display: none; }
  .cartel { top: auto; bottom: 30px; max-width: calc(100% - 20px); }
  .cartel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .leyenda ul { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .leyenda li span:last-child, .leyenda__pie { display: none; }
  .leyenda li { font-size: 12px; }
  .cartel { left: 10px; font-size: 12px; }
  .tipos { top: auto; bottom: 74px; left: 10px; transform: none; max-width: calc(100% - 20px); }
  .tipo { padding: 6px 11px; font-size: 12px; }
  .nota { grid-template-columns: 96px 1fr; padding: 16px; gap: 16px; }
  .anillo { width: 96px; height: 96px; }
  .anillo__num b { font-size: 33px; }
  .ficha__nombre { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- dentro de la portada (?embed=1) */
.embebida .app { grid-template-rows: 1fr; grid-template-areas: "panel mapa"; }
.embebida .barra { display: none; }
.embebida .panel__dentro { padding-top: 22px; }

/* pie del panel: legales y preferencias de cookies (las coloca measurement-consent.js) */
.pie-app { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 18px 28px 26px; border-top: 1px solid var(--linea-osc); font-size: 12px; }
.pie-app a, .pie-app button { color: var(--crema-3); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pie-app a:hover, .pie-app button:hover { color: var(--crema); }
.embebida .pie-app { display: none; }
@media (max-width: 820px) { .pie-app { padding: 18px 16px 30px; } }
.embebida .inicio .titular, .embebida .inicio .entradilla { display: none; }
.embebida .inicio .buscador { margin-top: 14px; }
@media (max-width: 820px) {
  /* dentro de la portada no hay barra: el mapa pega arriba y deja ver el panel */
  .embebida .mapa { top: 0; height: calc(100vh - 128px); height: calc(100dvh - 128px); }
}

.deslizar { display: none; }
@media (max-width: 820px) {
  .inicio .deslizar { order: -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: -8px 0 36px;
    font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--crema-3); }
  .inicio .deslizar::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) translateY(2px);
    animation: subir 1.8s var(--ease) infinite; }
  .inicio .buscador { margin-bottom: 14px; }
  .buscador__ayuda { margin-top: 8px; }
  .panel::before { width: 48px; height: 5px; margin-left: -24px; background: rgba(246, 240, 229, .35); }
}
@keyframes subir { 50% { transform: rotate(45deg) translate(-3px, -1px); } }
.tipo--plegado span { font-size: 10px; margin-left: 4px; opacity: .8; }

/* precio tachado: una sola raya que cruza «49 €» y «+ IVA» a la misma altura, en vez del tachado del navegador */
.precio-promo { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.tachado { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 2px 6px; line-height: 1; }
.tachado b, .plan .tachado b, .plan--destacado .plan__precio .tachado b { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1;
  color: rgba(246, 240, 229, .42); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.tachado small { font-size: 15px; font-weight: 500; color: rgba(246, 240, 229, .42); position: relative; top: 2px; }
/* la raya: recta, por el centro de las cifras, de punta a punta */
.tachado::after { content: ""; position: absolute; left: 0; right: 0; top: 56%; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: var(--oro, #c9a86a); }
.precio { margin-bottom: 10px; }
.gratis-ahora { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: var(--oro); color: var(--tinta); }

@media (max-width: 820px) {
  .measurement-panel { left: 10px !important; right: 10px !important; bottom: 10px !important; padding: 14px 16px !important; font-size: 13px !important; max-width: none !important; }
  .measurement-panel p { font-size: 12.5px !important; line-height: 1.45 !important; margin: 0 0 6px !important; }
  .measurement-actions { gap: 8px !important; margin-top: 8px !important; }
  .measurement-actions button { padding: 9px 10px !important; font-size: 13px !important; min-height: 0 !important; }
}
