/*
 * fotoMap · estilos. Sin preprocesador ni compilación: este fichero es el que se sirve.
 * Diseño: bocetos del 2026-11-05 (docs/diseno/BOCETOS_2026-11-05.png), hoja de estilo del boceto 15.
 * Primero el móvil; desde 768 px, barra lateral en vez de la barra de abajo (boceto 16, tableta).
 */

/* ── Tipografía: Poppins, servida desde aquí (licencia OFL en fonts/OFL.txt) ─────────────────── */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
	/* Identidad corporativa (manual del 13-11-2026, aplicación del dueño): el rosa del anagrama para botones principales
	   y elementos activos; el marrón antracita del logotipo para textos y titulares; fondo blanco */
	--rosa: #f11461;
	--rosa-oscuro: #c81052;
	--rosa-claro: #f88ab0;
	--rosa-tenue: #fde3ec;
	--rosa-velo: #fef1f6;
	--amarillo: #ffc107;
	--amarillo-oscuro: #e6a800;
	--amarillo-tenue: #fff3cf;
	/* Colores de cada tipo de sitio (dueño, 12-11): naturaleza verde, ciudad el rosa, «Todo» violeta (neutro) */
	--verde: #45c2b1;
	--verde-oscuro: #1f7a6e;
	--verde-tenue: #dff4f1;
	--violeta: #cf9ae3;
	--fondo: #ffffff;
	--papel: #ffffff;
	--marfil: #faf7f3; /* superficies secundarias */
	--tinta: #372f2a;
	--tinta-2: #6b625c;
	--tinta-3: #9c938c;
	--linea: #ede7e2;
	--gris: #f5f1ec;
	--rojo: #e5322d;
	--radio: 16px;
	--radio-grande: 24px;
	--sombra: 0 1px 3px rgba(55, 47, 42, .07), 0 4px 16px rgba(55, 47, 42, .08);
	--sombra-alta: 0 4px 10px rgba(55, 47, 42, .10), 0 16px 40px rgba(55, 47, 42, .18);
	--letra: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	--barra: 64px;
	--lateral: 0px;
	--abajo: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 15px/1.5 var(--letra);
	color: var(--tinta);
	background: var(--fondo);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
code { font-size: .9em; }
.solo-lectores { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sin-js { padding: 24px; text-align: center; }

/* Iconos del sprite (img/iconos.svg): trazo del color del texto */
.i {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -.25em;
}
.i-lleno { fill: currentColor; }
.i-rosa { color: var(--rosa); }
.i-punto { width: .95em; height: .95em; color: var(--rosa); vertical-align: -.12em; }

/* Avisos fijos: web en pruebas (FOTOMAP_AVISO_PRUEBAS) y pantallas de muestra */
.aviso-pruebas {
	position: relative;
	z-index: 60;
	padding: 5px max(14px, env(safe-area-inset-left));
	background: var(--amarillo-tenue);
	color: #6b5200;
	font-size: 12px;
	line-height: 1.35;
	text-align: center;
}
.aviso-muestra {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 12px 16px 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--rosa-velo);
	color: var(--rosa-oscuro);
	font-size: 13px;
	line-height: 1.4;
}
.aviso-muestra .i { margin-top: 1px; }
.aviso-flotante {
	position: fixed;
	z-index: 90;
	left: 50%;
	bottom: calc(var(--barra) + var(--abajo) + 16px);
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 14px;
	background: var(--tinta);
	color: #fff;
	font-size: 14px;
	box-shadow: var(--sombra-alta);
}

/* ── Botones, pastillas y etiquetas (boceto 15) ──────────────────────────────────────────────── */
.boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: background .15s, transform .1s;
}
.boton:active { transform: scale(.98); }
.boton-rosa { background: var(--rosa); color: #fff; }
.boton-rosa:hover { background: var(--rosa-oscuro); }
.boton-amarillo { background: var(--amarillo); color: var(--tinta); }
.boton-amarillo:hover { background: var(--amarillo-oscuro); }
.boton-amarillo-suave { background: var(--amarillo-tenue); color: var(--tinta); }
.boton-rosa-suave { background: var(--rosa-tenue); color: var(--rosa-oscuro); }
.boton-blanco { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton-blanco:hover { box-shadow: inset 0 0 0 1.5px var(--rosa-claro); }
.boton-negro { background: #111; color: #fff; }
.boton-ancho { display: flex; width: 100%; }

.boton-icono {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--papel);
	color: var(--tinta);
	box-shadow: var(--sombra);
	text-decoration: none;
}
.boton-icono .i { width: 22px; height: 22px; }
.boton-icono-rosa { color: var(--rosa); }
.boton-icono-plano { background: transparent; box-shadow: none; width: 40px; height: 40px; }
.boton-icono-plano:hover { background: var(--gris); }
.boton-icono-oscuro { background: rgba(20, 12, 18, .58); color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.boton-icono-oscuro:hover { background: rgba(20, 12, 18, .75); }

.enlace-rosa { padding: 0; border: 0; background: none; color: var(--rosa); font-weight: 600; text-decoration: none; }
.enlace-rosa:hover { text-decoration: underline; }
.enlace-simple { padding: 10px; border: 0; background: none; font-weight: 500; color: var(--tinta-2); }

.pastilla {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 15px;
	border: 0;
	border-radius: 999px;
	background: var(--papel);
	color: var(--tinta);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: inset 0 0 0 1px var(--linea);
}
.pastilla .i { width: 17px; height: 17px; color: var(--rosa); }
.pastilla[aria-pressed="true"] { background: var(--rosa); color: #fff; box-shadow: none; font-weight: 600; }
.pastilla[aria-pressed="true"] .i { color: #fff; }
.pastilla-amarilla[aria-pressed="true"] { background: var(--amarillo); color: var(--tinta); }
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; }
.pastillas-iguales { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; }
.pastillas-iguales .pastilla { justify-content: center; background: var(--gris); box-shadow: none; }
.pastillas-iguales .pastilla[aria-pressed="true"] { background: var(--rosa); }
.pastillas-iguales .pastilla-amarilla[aria-pressed="true"] { background: var(--amarillo); }
.contador {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--rosa);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.etiqueta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--rosa-velo);
	color: var(--tinta);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}
.etiqueta .i { width: 16px; height: 16px; color: var(--rosa); }
.etiqueta:hover { background: var(--rosa-tenue); }

.tipo-sitio { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.tipo-naturaleza { background: var(--verde-tenue); color: var(--verde-oscuro); }
.tipo-ciudad { background: var(--rosa-tenue); color: var(--rosa-oscuro); }

/* Nota: estrellas + media + número de opiniones (decisión del dueño, 2026-11-06) */
.nota { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.nota small { color: var(--tinta-2); font-weight: 400; font-size: 13px; }
.nota-estrella { width: 1.05em; height: 1.05em; color: var(--amarillo); stroke: var(--amarillo-oscuro); stroke-width: 1; }

/* A cuánta gente le gusta (ADR-0017): «♥ 94 % · 128 votos» en listas y tarjetas; el voto, en la ficha */
.gusto { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-weight: 700; }
.gusto small { color: var(--tinta-2); font-weight: 400; font-size: 13px; }
.gusto-corazon { width: 1.05em; height: 1.05em; color: var(--rosa); fill: currentColor; }
.ficha-gusta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ficha-gusta p { flex: 1 1 100%; margin: 0; font-weight: 700; }
.ficha-gusta p small { margin-left: 4px; color: var(--tinta-2); font-weight: 400; }
.ficha-gusta .boton-voto { display: inline-flex; gap: 6px; width: auto; height: 40px; padding: 0 14px; font-weight: 700; font-size: 15px; opacity: .85; }
.ficha-gusta .boton-voto .i { width: 20px; height: 20px; }
.ficha-gusta .boton-voto[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--rosa-tenue); }
.ficha-gusta .boton-voto-no { background: var(--gris); color: var(--tinta); }
.ficha-gusta .boton-voto-no[aria-pressed="true"] { background: #4a4a4a; color: #fff; box-shadow: 0 0 0 3px #d6d6d6; }
.estrellas { position: relative; display: inline-block; flex: none; line-height: 0; vertical-align: -.15em; }
.estrellas-fondo, .estrellas-llenas { display: inline-flex; gap: 1px; white-space: nowrap; }
.estrellas-llenas { position: absolute; top: 0; left: 0; overflow: hidden; }
.estrellas .i { width: 1.05em; height: 1.05em; stroke-width: 1; }
.estrellas-fondo .i { color: #e7dfe2; stroke: #d9cfd3; }
.estrellas-llenas .i { color: var(--amarillo); stroke: var(--amarillo-oscuro); }
.estrellas-pequenas { font-size: 13px; }

.avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 17px;
}
.avatar-grande { width: 76px; height: 76px; font-size: 30px; }

.burbuja-icono {
	display: inline-grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--rosa-velo);
	color: var(--rosa);
}
.burbuja-icono .i { width: 46px; height: 46px; }
.burbuja-pequena { width: 48px; height: 48px; }
.burbuja-pequena .i { width: 22px; height: 22px; }

/* ── Estructura: barra lateral (≥768) y barra de abajo (móvil) ──────────────────────────────── */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.app-cuerpo { flex: 1; min-width: 0; }
.lateral { display: none; }
.barra-inferior {
	position: fixed;
	z-index: 50;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	/* Tantas columnas como pestañas (6 desde «Desliza», 16-11) */
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	height: calc(var(--barra) + var(--abajo));
	padding-bottom: var(--abajo);
	background: var(--papel);
	box-shadow: 0 -1px 0 var(--linea), 0 -4px 18px rgba(55, 47, 42, .05);
}
.barra-inferior a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--tinta-2);
	font-size: 11px;
	font-weight: 500;
	text-decoration: none;
	/* Idiomas (18-11): «Want to go» partía en dos líneas; en una sola, un poco más prieta si no cabe */
	white-space: nowrap;
	letter-spacing: -.01em;
	min-width: 0;
}
html[lang="en"] .barra-inferior a { font-size: 10.5px; letter-spacing: -.02em; }
.barra-inferior .i { width: 24px; height: 24px; }
.barra-inferior [aria-current="page"] { color: var(--rosa); font-weight: 600; }
.barra-inferior [aria-current="page"] .i { fill: var(--rosa-tenue); }
body.con-barra .app-cuerpo { padding-bottom: calc(var(--barra) + var(--abajo)); }

/* Cabecera de pantalla: flecha, título, acciones */
.cabecera-pagina {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 56px;
	padding: 8px 0;
}
.cabecera-pagina h1, .cabecera-pagina h2 { font-size: 20px; flex: 1; }
.cabecera-acciones { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.pagina {
	max-width: 640px;
	margin: 0 auto;
	padding: 6px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));
}
.pagina-ancha { max-width: 900px; }
.subtitulo-pagina { margin: -6px 0 18px 46px; color: var(--tinta-2); font-size: 14px; }
.subtitulo-pagina a { color: var(--rosa); text-decoration: none; font-weight: 500; }
.titulo-seccion { font-size: 16px; margin: 22px 0 10px; }
.titulo-grupo { margin: 22px 0 6px; font-size: 15px; color: var(--rosa); }
/* Si no caben título y enlace, el enlace baja entero (antes se partían los dos en dos líneas a 360 px) */
.seccion-cabecera { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.seccion-cabecera > .titulo-seccion { flex: none; }
.pie-fijo {
	position: sticky;
	bottom: 0;
	margin: 24px -16px 0;
	padding: 12px 16px calc(12px + var(--abajo));
	background: linear-gradient(rgba(255, 248, 245, 0), var(--fondo) 30%);
}
body.con-barra .pie-fijo { bottom: calc(var(--barra) + var(--abajo)); padding-bottom: 12px; }

/* ── Explorar: el mapa a pantalla completa ──────────────────────────────────────────────────── */
body.pagina-mapa { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
body.pagina-mapa .app { flex: 1; min-height: 0; }
body.pagina-mapa .app-cuerpo { display: flex; flex-direction: column; }
.explorador { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mapa { position: absolute; inset: 0; background: #e9efe4; }

.mapa-arriba {
	position: absolute;
	z-index: 20;
	top: 0;
	left: 0;
	right: 0;
	padding: 12px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
	pointer-events: none;
}
.mapa-arriba > * { pointer-events: auto; }
.busqueda {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 6px 0 16px;
	border-radius: 999px;
	background: var(--papel);
	box-shadow: var(--sombra);
}
.busqueda > .i { width: 20px; height: 20px; color: var(--tinta); }
.busqueda input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	background: none;
	font-size: 15px;
	outline: none;
}
.busqueda input::placeholder { color: var(--tinta-3); }
.busqueda input::-webkit-search-cancel-button { display: none; }
.busqueda:focus-within { box-shadow: var(--sombra), inset 0 0 0 2px var(--rosa); }
.busqueda-borrar { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; }
.busqueda-borrar:hover { background: var(--gris); }
.tipos {
	display: flex;
	gap: 8px;
	margin: 10px -12px 0;
	padding: 2px 12px 8px;
	overflow-x: auto;
	scrollbar-width: none;
}
.tipos::-webkit-scrollbar { display: none; }
.tipos .pastilla { box-shadow: var(--sombra); }
.tipos .pastilla[aria-pressed="true"] { box-shadow: var(--sombra); }
/* Todo / Naturaleza / Ciudad con el color de sus círculos del mapa (12-11). Sobre violeta y verde, texto oscuro: el
   blanco no se lee bien en colores tan claros */
.tipos .pastilla-todo[aria-pressed="true"] { background: var(--violeta); color: var(--tinta); }
.tipos .pastilla-naturaleza[aria-pressed="true"] { background: var(--verde); color: var(--tinta); }
.tipos .pastilla-ciudad[aria-pressed="true"] { background: var(--rosa); color: #fff; }
.punto-tipo { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); }
.pastilla-ciudad .punto-tipo { background: var(--rosa); }
.tipos .pastilla[aria-pressed="true"] .punto-tipo { background: #fff; }

/* Controles del mapa: encima de la hoja */
.mapa-controles {
	position: absolute;
	z-index: 15;
	right: max(12px, env(safe-area-inset-right));
	bottom: calc(var(--hoja-alto, 300px) + 30px);
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: bottom .25s;
}
.solo-ancho { display: none !important; }
.explorador[data-hoja="lleno"] .mapa-controles, .explorador.con-previa .mapa-controles { opacity: 0; pointer-events: none; }

/* Marcadores: la foto en un marco blanco con pico; el punto de color dice el tipo */
.pin { display: block; cursor: pointer; text-decoration: none; }
.pin-foto {
	position: relative;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 3px solid #fff;
	border-radius: 12px;
	background: #cfd8c4;
	box-shadow: 0 2px 8px rgba(55, 47, 42, .28);
	transition: transform .15s, border-color .15s;
	transform-origin: 50% 100%;
}
/* Siempre el mismo tamaño, recortada (12-11): fuera del flujo, para que una foto vertical que entra con el carrusel no
   estire el marco (medía 44×68) */
.pin-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }
.pin-foto::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10px;
	width: 0;
	height: 0;
	margin-left: -7px;
	border: 7px solid transparent;
	border-top-color: #fff;
	border-bottom: 0;
}
.pin-foto::before {
	content: "";
	position: absolute;
	z-index: 1;
	right: -6px;
	bottom: -6px;
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--verde);
}
.pin-ciudad .pin-foto::before { background: var(--rosa); }
.pin-foto.sin-foto { color: var(--tinta-2); }
.pin-foto.sin-foto .i { width: 22px; height: 22px; }
.pin:hover .pin-foto, .pin.activo .pin-foto { transform: scale(1.12); }
.pin.activo .pin-foto { border-color: var(--rosa); }
.pin.activo .pin-foto::after { border-top-color: var(--rosa); }
/* En el ordenador, el doble (dueño: 75 px el 12-11, 100 px el 15-11). El mapa pide casillas de 144
   en vez de 72 (BuscadorSitios::CASILLA_ANCHA), así que no se amontonan más que en el móvil */
@media (min-width: 768px) {
	.pin-foto { width: 100px; height: 100px; border-width: 4px; border-radius: 16px; }
	.pin-foto img { border-radius: 12px; }
	.pin-foto::after { bottom: -13px; margin-left: -9px; border-width: 9px 9px 0; }
	.pin-foto::before { right: -7px; bottom: -7px; width: 18px; height: 18px; }
	.pin-foto.sin-foto .i { width: 30px; height: 30px; }
}
.mi-posicion {
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--rosa);
	box-shadow: 0 0 0 6px rgba(241, 20, 97, .18), 0 1px 4px rgba(0, 0, 0, .3);
}

/* Hoja de fotos (móvil): tres alturas. A asomada, B media (tira de fotos), C llena (rejilla) */
.hoja {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	height: calc(100% - 118px);
	border-radius: var(--radio-grande) var(--radio-grande) 0 0;
	background: var(--papel);
	box-shadow: 0 -6px 24px rgba(55, 47, 42, .12);
	transform: translateY(calc(100% - var(--hoja-alto, 300px)));
	transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	touch-action: pan-y;
}
.hoja.arrastrando { transition: none; }
.explorador[data-hoja="asomada"] { --hoja-alto: 84px; }
.explorador[data-hoja="medio"] { --hoja-alto: 300px; }
.explorador[data-hoja="lleno"] .hoja { transform: translateY(0); }
.explorador.con-previa .hoja { transform: translateY(100%); }
.hoja-asa {
	display: grid;
	place-items: center;
	flex: none;
	height: 22px;
	padding: 0;
	border: 0;
	background: none;
	cursor: grab;
	touch-action: none;
}
.hoja-asa span { width: 40px; height: 5px; border-radius: 3px; background: var(--rosa); }
.hoja-cabecera {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	flex: none;
	padding: 0 16px 10px;
	touch-action: none;
}
.hoja-cabecera h2 { font-size: 17px; }
.hoja-cabecera p { color: var(--tinta-2); font-size: 13px; }
.hoja-alternar { margin: -6px -6px 0 0; }
.hoja-alternar .i { transform: rotate(180deg); transition: transform .2s; }
.explorador[data-hoja="lleno"] .hoja-alternar .i { transform: none; }
.hoja-cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 24px; }
.explorador[data-hoja="medio"] .hoja-cuerpo { overflow: hidden; }
.explorador[data-hoja="medio"] .tarjetas {
	display: flex;
	gap: 12px;
	margin: 0 -16px;
	padding: 0 16px 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 16px;
	scrollbar-width: none;
}
.explorador[data-hoja="medio"] .tarjetas::-webkit-scrollbar { display: none; }
.explorador[data-hoja="medio"] .tarjeta { flex: 0 0 152px; scroll-snap-align: start; }
.explorador[data-hoja="medio"] .tarjeta-foto { aspect-ratio: 4 / 3; }

/* Tarjetas de sitio (boceto 15) */
.tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.tarjeta { display: flex; flex-direction: column; gap: 5px; min-width: 0; text-decoration: none; color: inherit; }
.tarjeta-foto {
	display: grid;
	place-items: center;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: var(--radio);
	background: var(--gris);
	color: var(--tinta-3);
}
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
/* Carrusel de miniaturas (fm.carrusel): la nueva entra encima con un fundido y después se quita la vieja */
[data-fotos] { position: relative; }
[data-fotos] img.carrusel-entra { position: absolute; inset: 0; animation: carrusel-entra .7s ease both; }
@keyframes carrusel-entra { from { opacity: 0; } to { opacity: 1; } }
.tarjeta-foto .i { width: 34px; height: 34px; }
.tarjeta:hover .tarjeta-foto img, .tarjeta.activa .tarjeta-foto img { transform: scale(1.04); }
.tarjeta.activa .tarjeta-foto { box-shadow: 0 0 0 3px var(--rosa); }
.tarjeta-nombre {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
}
.tarjeta-detalle { color: var(--tinta-2); font-size: 12px; }
.tarjeta .nota { font-size: 14px; }
.tarjetas-rejilla { margin-top: 12px; }
.carrusel {
	display: flex;
	gap: 12px;
	margin: 0 -16px;
	padding: 0 16px 6px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding: 0 16px;
	scrollbar-width: thin;
}
.carrusel .tarjeta { flex: 0 0 156px; scroll-snap-align: start; }
.carrusel .tarjeta-foto { aspect-ratio: 4 / 3; }

/* Esqueleto de carga (boceto 14) */
.esqueleto .tarjeta-foto, .esqueleto-linea, .esqueleto-bloque {
	background: linear-gradient(90deg, #f3eef0 25%, #faf6f7 50%, #f3eef0 75%);
	background-size: 200% 100%;
	animation: brillo 1.3s infinite linear;
}
.esqueleto-linea { display: block; height: 12px; border-radius: 6px; }
.esqueleto-linea.corta { width: 45%; }
.esqueleto-bloque { display: block; height: 92px; border-radius: 14px; }
@keyframes brillo { to { background-position: -200% 0; } }

/* Estados (boceto 14) */
.estado {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 28px 20px;
	text-align: center;
}
.estado-icono { width: 58px; height: 58px; stroke-width: 1.6; color: var(--tinta); }
.estado-rosa .estado-icono { color: var(--rosa); }
.estado-rojo .estado-icono { color: var(--rojo); }
.estado h2 { font-size: 18px; }
.estado p { max-width: 280px; color: var(--tinta-2); font-size: 14px; }
.estado .boton { margin-top: 8px; min-width: 180px; min-height: 46px; }
.estado-cargando { align-items: stretch; gap: 10px; text-align: left; }
.estado-cargando p { color: var(--tinta-3); text-align: center; }
.pagina-estado { display: grid; place-items: center; min-height: 70vh; }

/* Capa sobre todo (ubicación denegada) */
.capa {
	position: fixed;
	z-index: 80;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(20, 10, 16, .45);
}
.capa-caja { width: 100%; max-width: 360px; border-radius: var(--radio-grande); background: var(--papel); box-shadow: var(--sombra-alta); }

/* Vista previa de un marcador */
.vista-previa {
	position: absolute;
	z-index: 40;
	left: 12px;
	right: 12px;
	bottom: 12px;
	overflow: hidden;
	border-radius: var(--radio-grande);
	background: var(--papel);
	box-shadow: var(--sombra-alta);
	animation: subir .22s ease-out;
}
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }
.vista-previa-foto { position: relative; display: block; aspect-ratio: 16 / 10; max-height: 34vh; width: 100%; background: var(--gris); }
.vista-previa-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vista-previa-foto.sin-foto { display: grid; place-items: center; aspect-ratio: auto; height: 96px; color: var(--tinta-3); }
.vp-cerrar { position: absolute; top: 12px; left: 12px; }
.vp-acciones { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.vista-previa-cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.vista-previa-cuerpo h3 { font-size: 20px; }
.vp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--tinta-2); font-size: 13px; }
.vista-previa-cuerpo .nota { font-size: 18px; }
.vista-previa-cuerpo .boton { margin-top: 6px; }

/* Panel de resultados del buscador (boceto 5): a pantalla completa en el móvil */
.panel-busqueda {
	position: fixed;
	z-index: 45;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	overflow-y: auto;
	padding: 74px 16px calc(var(--barra) + var(--abajo) + 20px);
	background: var(--papel);
}
.mapa-arriba .busqueda { z-index: 46; }
.explorador.buscando .tipos { visibility: hidden; }
.panel-busqueda-pagina { position: static; padding: 4px 0 24px; background: none; }
.busqueda-pagina { margin: 14px 0 8px; box-shadow: none; background: var(--papel); border: 1.5px solid var(--linea); }
.busqueda-pagina:focus-within { box-shadow: none; border-color: var(--rosa); }
.seccion-busqueda h2 { margin: 18px 0 6px; font-size: 15px; }
.seccion-busqueda ul { margin: 0; padding: 0; list-style: none; }
.fila-busqueda {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 8px 4px;
	border: 0;
	border-radius: 12px;
	background: none;
	text-align: left;
	text-decoration: none;
	color: inherit;
}
.fila-busqueda:hover, .fila-busqueda:focus-visible { background: var(--rosa-velo); }
.fila-busqueda > .i { width: 20px; height: 20px; color: var(--tinta-2); }
.fila-foto { flex: none; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--gris); }
.fila-foto-grande { width: 60px; height: 60px; border-radius: 12px; }
.fila-foto.sin-foto { display: grid; place-items: center; color: var(--tinta-3); }
.fila-foto.sin-foto .i { width: 22px; height: 22px; }
.fila-texto { display: flex; flex-direction: column; min-width: 0; }
.fila-texto b { font-weight: 600; }
.fila-texto small { color: var(--tinta-2); font-size: 13px; }
.busqueda-vacia { padding: 24px 4px; color: var(--tinta-2); }

/* Filtros (boceto 6): pantalla completa en el móvil */
.filtros {
	position: fixed;
	z-index: 70;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--papel);
}
.filtros .cabecera-pagina { padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); }
.filtros-cuerpo { flex: 1; overflow-y: auto; padding: 0 16px 20px; }
.grupo-filtros { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.grupo-filtros legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.baldosas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.baldosa {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 84px;
	padding: 10px 6px;
	border: 0;
	border-radius: var(--radio);
	background: var(--gris);
	color: var(--tinta);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
}
.baldosa .i { width: 26px; height: 26px; color: var(--rosa); }
.baldosa:hover { background: var(--rosa-velo); }
.baldosa[aria-pressed="true"] { background: var(--amarillo); font-weight: 600; }
.baldosa[aria-pressed="true"] .i { color: var(--tinta); }
.filtros.plegado .grupo-filtros[data-grupo]:not(.principal), .filtros.plegado .baldosa.de-mas { display: none; }
.ver-mas { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font-weight: 600; }
.ver-mas[aria-expanded="true"] .i { transform: rotate(180deg); }
.filtros-pie { padding: 12px 16px calc(12px + var(--abajo)); box-shadow: 0 -1px 0 var(--linea); }

/* ── Bienvenida (boceto 1) ──────────────────────────────────────────────────────────────────── */
.bienvenida { position: fixed; z-index: 100; inset: 0; background: var(--papel); }
.bienvenida:focus { outline: none; }
.bienvenida-paso {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	padding: max(16px, env(safe-area-inset-top)) 20px calc(24px + var(--abajo));
	text-align: center;
}
.bienvenida[data-paso="0"] [data-paso="0"], .bienvenida[data-paso="1"] [data-paso="1"], .bienvenida[data-paso="2"] [data-paso="2"],
.bienvenida[data-paso="3"] [data-paso="3"], .bienvenida[data-paso="4"] [data-paso="4"] { display: flex; animation: aparecer .3s ease-out; }
@keyframes aparecer { from { opacity: 0; } }
.bienvenida-portada {
	justify-content: flex-end;
	color: #fff;
	background: linear-gradient(170deg, #b0127c 0%, #f11461 38%, #ff7a59 70%, #ffb347 100%);
	overflow: hidden;
}
.bienvenida-fondo { position: absolute; inset: 42% 0 0; width: 100%; height: 58%; object-fit: cover; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.bienvenida-marca { position: absolute; top: 18%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px; }
.bienvenida-marca p { max-width: 260px; font-size: 16px; font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.bienvenida-portada .boton { position: relative; min-width: 200px; margin-bottom: 18px; color: var(--rosa); font-weight: 700; }
.bienvenida-progreso { position: relative; width: 90px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.bienvenida-progreso span { display: block; width: 30%; height: 100%; background: #fff; border-radius: 3px; }
.bienvenida .credito { position: absolute; right: 10px; bottom: calc(6px + var(--abajo)); max-width: 70%; color: rgba(255, 255, 255, .85); font-size: 10px; text-align: right; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.bienvenida-saltar { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: 14px; padding: 6px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; }
.bienvenida-foto { position: relative; flex: 1 1 55%; width: calc(100% + 40px); margin: calc(-1 * max(16px, env(safe-area-inset-top))) -20px 0; overflow: hidden; background: var(--gris); }
.bienvenida-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bienvenida-foto .credito { bottom: 8px; }
.bienvenida-texto { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 10px; max-width: 320px; padding: 22px 0 8px; text-align: left; align-self: stretch; margin: 0 auto; }
.bienvenida-texto h2 { font-size: 26px; }
.bienvenida-texto p { color: var(--tinta-2); font-size: 15px; }
.bienvenida-puntos { display: flex; gap: 6px; margin: 4px 0 16px; }
.bienvenida-puntos span { width: 8px; height: 8px; border-radius: 4px; background: var(--linea); transition: width .2s; }
.bienvenida-puntos .activo { width: 22px; background: var(--rosa); }
.bienvenida-paso > .boton { width: 100%; max-width: 320px; }
.bienvenida-ubicacion { justify-content: center; gap: 16px; }
.bienvenida-ubicacion h2 { font-size: 24px; max-width: 280px; }
.bienvenida-ubicacion p { max-width: 290px; color: var(--tinta-2); }
.bienvenida-ubicacion .boton { margin-top: 14px; }

/* ── Ficha del sitio (boceto 7) ─────────────────────────────────────────────────────────────── */
.ficha { position: relative; }
.ficha-portada { position: relative; margin: 0; height: 44vh; min-height: 260px; max-height: 420px; background: var(--gris); }
/* Solo el enlace de la foto, por su clase: con «.ficha-portada a» se estiraban la flecha, el corazón y «Sube tu foto» */
.ficha-portada-enlace { display: block; height: 100%; }
.ficha-portada img, .ficha-portada video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ficha-portada.sin-foto { display: grid; place-items: center; height: 200px; min-height: 0; color: var(--tinta-3); }
.ficha-portada.sin-foto > .i { width: 56px; height: 56px; }
.ficha-botones {
	position: absolute;
	top: max(14px, env(safe-area-inset-top));
	left: 14px;
	right: 14px;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}
.ficha-botones > *, .ficha-botones > span > * { pointer-events: auto; }
/* Solo los dos grupos (izquierda y derecha): con «.ficha-botones span» caía también en el avatar del autor */
.ficha-botones > span { display: flex; gap: 10px; min-width: 0; }
.contador-fotos { position: absolute; right: 14px; bottom: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(20, 12, 18, .6); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.contador-fotos .i { width: 18px; height: 18px; }
.contador-fotos:hover { background: rgba(20, 12, 18, .8); }
.miniaturas { display: none; }
.ficha-hoja {
	position: relative;
	margin-top: -26px;
	padding: 22px max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
	border-radius: var(--radio-grande) var(--radio-grande) 0 0;
	background: var(--papel);
}
.ficha-cabecera { display: flex; flex-direction: column; gap: 6px; }
.ficha-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--tinta-2); font-size: 13.5px; }
.ficha-nota { display: inline-flex; margin-top: 4px; text-decoration: none; font-size: 22px; }
.ficha-nota .estrellas { font-size: 20px; }
.ficha-nota small { font-size: 14px; }
.ficha-nota-vacia { font-size: 14px; color: var(--tinta-2); }
.datos { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.datos li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--gris);
	font-size: 13px;
	font-weight: 600;
}
.datos .i { width: 17px; height: 17px; }
.ficha-texto { margin-top: 16px; font-size: 15px; line-height: 1.6; }
.ficha-texto p + p { margin-top: 10px; }
.ficha-situacion { display: flex; align-items: stretch; gap: 10px; margin-top: 18px; }
.mini-mapa { flex: 1; height: 120px; overflow: hidden; border-radius: var(--radio); background: #e9efe4; cursor: pointer; }
.ficha-situacion .boton { flex: none; align-self: center; min-height: 46px; padding: 10px 18px; }
.pin-simple { display: block; width: 30px; height: 38px; background: url("../img/marca/anagrama.png?v=2") center / contain no-repeat; }
.ficha-ciudad .ficha-situacion { flex-direction: column; }
.ficha-ciudad .mini-mapa { flex: none; height: 150px; }
.ficha-ciudad .ficha-situacion .boton { align-self: flex-start; }
.han-estado { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--tinta-2); font-size: 14px; }
.ficha-acciones {
	position: sticky;
	z-index: 20;
	bottom: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 20px calc(-1 * max(18px, env(safe-area-inset-right))) 0 calc(-1 * max(18px, env(safe-area-inset-left)));
	padding: 10px 16px calc(10px + var(--abajo));
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 -1px 0 var(--linea);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
/* En una línea siempre: a 360 px «He estado aquí» se partía y dejaba el ✓ suelto */
.ficha-acciones .boton { padding: 12px 8px; gap: 6px; white-space: nowrap; font-size: clamp(14px, 4vw, 16px); }
.ficha-acciones form { display: flex; }
.ficha-acciones #quiero-ir[aria-pressed="true"] { background: var(--rosa-oscuro, #b3004c); }
.ficha-acciones #quiero-ir[aria-pressed="true"] .i { fill: currentColor; }
.boton-amarillo.marcado { box-shadow: inset 0 0 0 2px var(--amarillo-oscuro); }
.perfil-vacio { margin: 4px 0 16px; padding: 14px; border-radius: 14px; background: var(--gris); color: var(--tinta-2); font-size: 14px; }
.perfil-cuenta { margin: 4px 0 12px; color: var(--tinta-2); font-size: 13px; }
.entrar-legal { margin-top: 18px; max-width: 320px; color: var(--tinta-3); font-size: 12px; }
.entrar-legal a { color: var(--rosa); }
.texto-legal h2 { margin: 22px 0 8px; font-size: 16px; }
.texto-legal ul { margin: 0; padding-left: 20px; }
.texto-legal li { margin-bottom: 8px; }
.texto-legal p, .texto-legal li { color: var(--tinta-2); font-size: 14.5px; line-height: 1.6; }
.menu-lista form { margin: 0; }
.ficha-opiniones { padding: 6px 0 24px; }
.cercanos { padding: 0 max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left)); background: var(--papel); }
/* La raya, en la cabecera entera (en el título medía lo que el texto y quedaba descolgada) */
.cercanos .seccion-cabecera { padding-top: 18px; border-top: 1px solid var(--linea); }
.cercanos .titulo-seccion { margin-top: 0; }
.creditos { padding: 18px max(18px, env(safe-area-inset-right)) 32px max(18px, env(safe-area-inset-left)); background: var(--papel); color: var(--tinta-3); font-size: 12px; }
.creditos h2 { font-size: 13px; color: var(--tinta-2); margin-bottom: 4px; }
.creditos ul { margin: 0; padding-left: 16px; }
.pie-legal { margin: 0; padding: 0 max(18px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: var(--papel); color: var(--tinta-3); font-size: 12px; }
.pie-legal a { color: inherit; }
/* Pie legal con sus enlaces (16-11) */
footer.pie-legal { padding-top: 14px; border-top: 1px solid var(--linea); line-height: 1.5; }
.pie-legal nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 6px; }
.pie-legal nav a { text-decoration: none; }
.pie-legal nav a:hover { text-decoration: underline; }
.pie-legal p { margin: 0; }
.pie-idiomas { display: flex; gap: 12px; margin-bottom: 6px; }
.pie-idiomas [aria-current] { font-weight: 600; text-decoration: none; }
.creditos a { color: inherit; }
body.pagina-ficha { background: var(--papel); }

/* Opiniones (boceto 9) */
.lista-opiniones { margin: 0; padding: 0; list-style: none; }
.opinion { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--linea); }
.opinion:first-child { border-top: 0; }
.opinion-cuerpo { min-width: 0; flex: 1; }
.opinion-cabecera { display: flex; align-items: center; gap: 6px; }
.opinion-meta { color: var(--tinta-3); font-size: 12px; margin-bottom: 6px; }
.opinion-cuerpo p:not(.opinion-cabecera):not(.opinion-meta) { font-size: 14.5px; line-height: 1.55; }
.opinion-cuerpo p + p:not(.opinion-meta) { margin-top: 6px; }
.traducida { font-style: italic; }
.sin-opiniones { color: var(--tinta-2); padding: 6px 0 14px; }
.ficha-opiniones .boton { margin-top: 10px; }
.resumen-opiniones { padding: 4px 0 14px; border-bottom: 1px solid var(--linea); }
.nota-grande { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; font-weight: 500; color: var(--tinta-2); }
.nota-grande b { font-size: 34px; color: var(--tinta); }
.nota-grande .estrellas { font-size: 24px; }
.reparto { margin: 12px 0 0; padding: 0; list-style: none; }
.reparto li { display: grid; grid-template-columns: 34px 1fr 42px; align-items: center; gap: 10px; padding: 3px 0; font-size: 13px; }
.reparto-n { display: inline-flex; align-items: center; gap: 3px; color: var(--tinta-2); font-weight: 600; }
.reparto-n .i { width: 14px; height: 14px; color: var(--amarillo); stroke: var(--amarillo-oscuro); stroke-width: 1; }
.barra { height: 10px; border-radius: 5px; background: var(--gris); overflow: hidden; }
.barra span { display: block; height: 100%; border-radius: 5px; background: var(--amarillo); }
.reparto-pct { text-align: right; color: var(--tinta-2); }

/* Formularios (escribir opinión, proponer) */
.formulario { display: flex; flex-direction: column; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo-etiqueta { font-weight: 600; font-size: 15px; padding: 0; }
.campo input[type="text"], .campo textarea, .selector select {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid var(--linea);
	border-radius: 14px;
	background: var(--papel);
	font-size: 15px;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo textarea:focus, .selector select:focus { outline: none; border-color: var(--rosa); }
.selector { position: relative; display: block; }
.selector select { appearance: none; padding-right: 44px; }
.selector .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
/* Elegir nota: cinco estrellas grandes. En el HTML van de 5 a 1 y se pintan al revés, así «la marcada y las que
   quedan a su izquierda» es «la marcada y sus hermanas de después» (~), sin JavaScript */
.elegir-estrellas { margin: 0; padding: 0; border: 0; }
.elegir-estrellas legend { font-weight: 600; margin-bottom: 10px; }
.estrellas-entrada { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.estrellas-entrada input { position: absolute; opacity: 0; pointer-events: none; }
.estrellas-entrada label { cursor: pointer; line-height: 0; }
.estrellas-entrada .i { width: 44px; height: 44px; color: #e7dfe2; stroke: #d9cfd3; stroke-width: 1; transition: transform .12s, color .12s; }
.estrellas-entrada input:checked ~ label .i,
.estrellas-entrada label:hover .i,
.estrellas-entrada label:hover ~ label .i { color: var(--amarillo); stroke: var(--amarillo-oscuro); }
.estrellas-entrada input:checked + label .i { transform: scale(1.1); }
.estrellas-entrada input:focus-visible + label { outline: 3px solid var(--rosa); outline-offset: 2px; border-radius: 8px; }
.nombre-nota { margin-top: 4px; color: var(--tinta-2); font-weight: 600; font-size: 14px; }
.subir-fotos { display: flex; flex-wrap: wrap; gap: 10px; }
.subir-fotos img, .subir-fotos video, .subir-mas { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.subir-fotos-grande img, .subir-fotos-grande video, .subir-fotos-grande .subir-mas { width: 96px; height: 96px; }
.subir-mas { display: grid; place-items: center; background: var(--gris); color: var(--rosa); cursor: pointer; }
.subir-mas .i { width: 26px; height: 26px; }
.subir-mas:focus-within { outline: 3px solid var(--rosa); outline-offset: 2px; }
/* Subir foto (fotos de la gente) */
.casilla { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rosa); flex: none; }
.aviso-formulario { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fde7ef; color: #8a0b3c; font-weight: 600; }
.nota-formulario { margin: 0; color: var(--tinta-2); font-size: .9em; }
/* Foto de la semana: portada (hoja del mapa) y su página */
.foto-semana { position: relative; display: block; overflow: hidden; border-radius: var(--radio); margin-bottom: 16px; color: #fff; text-decoration: none; background: var(--gris); aspect-ratio: 16 / 9; }
.foto-semana img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-semana-texto { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(20, 0, 14, .78)); display: flex; flex-direction: column; gap: 2px; }
.foto-semana-texto small { text-transform: uppercase; letter-spacing: .06em; font-size: .72em; font-weight: 700; color: #ffd84d; }
.foto-semana-texto b { font-size: 1.05em; }
.foto-semana-grande { aspect-ratio: auto; max-height: 72vh; }
.foto-semana-grande img { max-height: 72vh; }

/* Proponer (boceto 10) */
.proponer { display: flex; flex-direction: column; min-height: calc(100dvh - var(--barra) - 60px); }
.proponer-cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 0 6px; }
.paso { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.progreso { flex-basis: 100%; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--gris); overflow: hidden; }
.progreso span { display: block; height: 100%; width: 20%; background: var(--rosa); transition: width .25s; }
.proponer-paso { flex: 1; padding-top: 14px; }
.proponer-paso > h2 { font-size: 24px; margin-bottom: 6px; }
.proponer-paso > p { color: var(--tinta-2); margin-bottom: 18px; }
.mapa-elegir { position: relative; height: 46vh; min-height: 260px; margin-bottom: 14px; overflow: hidden; border-radius: var(--radio); }
.mapa-elegir-mapa { position: absolute; inset: 0; background: #e9efe4; }
.mapa-elegir-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--rosa); pointer-events: none; }
.mapa-elegir-pin .i { width: 42px; height: 42px; stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.proponer-enviado { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.proponer-enviado > p { max-width: 280px; margin: 0; }
.burbuja-ok { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--amarillo); }
.burbuja-ok .i { width: 54px; height: 54px; stroke-width: 2.4; }
.proponer-enviado h2 { font-size: 28px; }
.nota-muestra { font-size: 13px; color: var(--rosa-oscuro) !important; }
.proponer[data-paso="5"] .pie-fijo { display: none; }
.pie-fijo-con-barra { margin-top: auto; }

/* Entrar (boceto 11) */
.entrar { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 400px; padding-top: 40px; text-align: center; }
.entrar-logo { width: 230px; height: auto; margin-bottom: 18px; }
.entrar h1 { font-size: 20px; }
.entrar > p { color: var(--tinta-2); max-width: 280px; }
.entrar-botones { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 22px 0 10px; }
.entrar-botones .i { width: 22px; height: 22px; }
.entrar-pie { color: var(--tinta-2); }
body.pagina-entrar { background: var(--papel); }

/* Perfil, Quiero ir, avisos, ajustes (bocetos 12 y 13) */
.perfil-cabecera { display: flex; align-items: center; gap: 16px; padding: 18px 0 8px; }
.perfil-cabecera h1 { font-size: 22px; }
.nivel { display: flex; align-items: center; gap: 6px; color: var(--tinta-2); font-size: 14px; }
.perfil-cabecera .cabecera-acciones { align-self: flex-start; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 14px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.cifras div { display: flex; flex-direction: column-reverse; align-items: center; }
.cifras div + div { border-left: 1px solid var(--linea); }
.cifras dt { color: var(--tinta-2); font-size: 13px; }
.cifras dd { margin: 0; font-size: 20px; font-weight: 700; }
.menu-lista { margin: 0 0 20px; padding: 0; list-style: none; }
.menu-lista li + li { border-top: 1px solid var(--linea); }
.menu-lista a, .menu-lista button {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 4px;
	border: 0;
	background: none;
	text-align: left;
	text-decoration: none;
	font-size: 15px;
}
.menu-lista a:hover, .menu-lista button:hover { background: var(--rosa-velo); }
.menu-lista span { flex: 1; display: flex; flex-direction: column; }
.menu-lista small { color: var(--tinta-2); font-size: 13px; }
.menu-lista .i { width: 22px; height: 22px; color: var(--tinta-2); }
.menu-lista .flecha { width: 18px; height: 18px; color: var(--tinta-3); }
.menu-lista-doble b { font-weight: 600; }
.menu-lista-doble .i:first-child { color: var(--rosa); }
.menu-lista .peligro button, .menu-lista .peligro .i { color: var(--rojo); }
.numero-boceto { flex: none !important; display: inline-grid !important; place-items: center; min-width: 38px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--rosa-tenue); color: var(--rosa-oscuro); font-size: 12px; font-weight: 700; }
.pestanas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.pestanas button { min-height: 42px; border: 0; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); font-weight: 600; }
.pestanas [aria-selected="true"] { background: var(--rosa); color: #fff; box-shadow: none; }
.listas { margin: 0 0 18px; padding: 0; list-style: none; }
.lista-fila { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; }
.lista-foto { flex: none; width: 84px; height: 60px; overflow: hidden; border-radius: 12px; background: var(--gris); }
.lista-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lista-texto { flex: 1; display: flex; flex-direction: column; }
.lista-texto small { color: var(--tinta-2); font-size: 13px; }
.lista-fila .flecha { color: var(--tinta-3); }
.avisos { margin: 0; padding: 0; list-style: none; }
.avisos a { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; text-decoration: none; }
.aviso-texto { display: flex; flex-direction: column; font-size: 14px; color: var(--tinta-2); }
.aviso-texto b { color: var(--tinta); font-size: 15px; }
.aviso-texto small { color: var(--tinta-3); margin-top: 2px; }
.estados-muestra { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.estados-muestra > * { border-radius: var(--radio-grande); background: var(--papel); box-shadow: var(--sombra); }
.estados-muestra .estado-cargando { padding: 20px; }

/* ── Galería (boceto 8): negra, a pantalla completa ─────────────────────────────────────────── */
body.pagina-galeria { background: #000; color: #fff; overflow: hidden; }
body.pagina-galeria .aviso-pruebas { display: none; }
.galeria { position: fixed; inset: 0; display: flex; flex-direction: column; }
.galeria-arriba {
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: max(14px, env(safe-area-inset-top)) 14px 14px;
	background: linear-gradient(rgba(0, 0, 0, .5), transparent);
}
.galeria-contador { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 600; font-size: 14px; }
.galeria-acciones { display: flex; gap: 10px; }
/* touch-action: none, para que el pellizco y el arrastre del zoom lleguen a galeria.js */
.galeria-escenario { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
.galeria-foto { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; }
.galeria-foto img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; will-change: transform; }
/* Vídeos (ADR-0012): como la foto, pero sin zoom (tienen sus controles) */
.galeria-foto video { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #000; }
/* Miniatura de un vídeo: un ▶ encima */
a.es-video { position: relative; }
a.es-video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27white%27 d=%27M8 5l11 7-11 7z%27/%3E%3C/svg%3E") 55% 50% / 14px no-repeat; pointer-events: none; }
.galeria.con-zoom .galeria-foto img { cursor: grab; }
.galeria.con-zoom .galeria-flecha { display: none; }
.galeria.con-zoom .galeria-abajo { opacity: .25; transition: opacity .2s; }
.galeria-flecha { position: absolute; top: 50%; z-index: 2; display: none; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.galeria-anterior { left: 16px; }
.galeria-siguiente { right: 16px; }
.galeria-abajo { padding: 14px 16px calc(14px + var(--abajo)); background: linear-gradient(transparent, rgba(0, 0, 0, .65) 30%); }
.galeria-voto { display: flex; align-items: center; gap: 12px; }
.galeria-voto p { flex: 1; font-weight: 600; font-size: 16px; }
.galeria-voto p small { display: block; color: rgba(255, 255, 255, .7); font-weight: 400; font-size: 13px; }
.boton-voto { display: grid; place-items: center; width: 58px; height: 46px; padding: 0; border: 0; border-radius: 16px; opacity: .78; transition: opacity .15s, transform .12s, box-shadow .15s; }
.boton-voto .i { width: 24px; height: 24px; }
.boton-voto:hover { opacity: 1; }
.boton-voto[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px #fff; transform: scale(1.06); }
.boton-voto[aria-pressed="true"] .i { fill: currentColor; }
/* No me gusta (ADR-0011): más discreto que los otros dos, pero a mano */
.boton-voto-no { width: 46px; background: rgba(255, 255, 255, .14); color: #fff; }
.boton-voto-no[aria-pressed="true"] { background: #4a4a4a; }
.galeria-credito { margin: 10px 0 12px; color: rgba(255, 255, 255, .75); font-size: 13px; }
/* Crédito de una foto subida por una persona: avatar y nick, a su ficha (12-11) */
.credito-persona { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.credito-persona b { font-weight: 700; }
.credito-persona:hover b { text-decoration: underline; }
.galeria-credito .credito-persona { color: #fff; font-size: 14px; }
.autor-portada { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 52vw; height: 44px; padding: 0 14px 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 999px; background: rgba(20, 12, 18, .58); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.autor-portada:hover { background: rgba(20, 12, 18, .75); }
/* Ficha de una persona: sus fotos */
.fotos-persona { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 24px; padding: 0; list-style: none; }
.fotos-persona a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radio); color: #fff; text-decoration: none; }
.fotos-persona img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotos-persona-pie { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.fotos-persona-pie b { font-size: 13px; line-height: 1.25; }
.fotos-persona-pie small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: .9; }
.fotos-persona-pie .i { width: 14px; height: 14px; }
.galeria-credito a { color: inherit; }
.galeria-miniaturas { display: flex; gap: 8px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.galeria-miniaturas a { display: block; width: 58px; height: 58px; overflow: hidden; border-radius: 10px; opacity: .65; }
.galeria-miniaturas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria-miniaturas [aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 3px var(--rosa-claro); }
.galeria-miniaturas [aria-current="true"] img { padding: 3px; border-radius: 10px; }

/* ── Marketing y SEO (2026-11-06): miga de pan, luz para la foto, «Para tu post», Descubre ──────────── */
.migas { display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--tinta-3); font-size: 12.5px; }
.migas a { color: var(--tinta-2); text-decoration: none; }
.migas a:hover { color: var(--rosa); text-decoration: underline; }

.luz { margin-top: 6px; }
.titulo-seccion small { margin-left: 6px; color: var(--tinta-3); font-weight: 500; font-size: 13px; }
.luz-horas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.luz-horas li { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; background: var(--amarillo-tenue); }
.luz-horas li:nth-child(3) { background: #e8eefc; }
.luz-horas .i { width: 22px; height: 22px; color: #b37a00; }
.luz-horas li:nth-child(3) .i { color: #3f5fb5; }
.luz-horas span { display: flex; flex-direction: column; font-size: 12px; color: var(--tinta-2); }
.luz-horas b { color: var(--tinta); font-size: clamp(13px, 3.6vw, 15px); white-space: nowrap; }
.luz-horas small { font-size: 11px; color: var(--tinta-3); }
.luz-consejo { display: flex; gap: 8px; margin-top: 10px; color: var(--tinta-2); font-size: 13.5px; line-height: 1.5; }
.luz-consejo .i { margin-top: 2px; color: var(--rosa); }

.para-post { margin-top: 6px; padding: 14px; border-radius: var(--radio); background: var(--rosa-velo); }
.para-post .titulo-seccion { margin-top: 0; }
.hashtags { color: var(--rosa-oscuro); font-size: 13.5px; font-weight: 500; line-height: 1.7; word-spacing: 2px; }
.para-post-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.para-post-botones .boton { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.para-post-nota { margin-top: 8px; color: var(--tinta-2); font-size: 12.5px; }
.para-post-nota a { color: var(--rosa); font-weight: 700; }

/* Subir una foto (12-11, más protagonismo): la pastilla sobre la portada y la tarjeta (bajo la foto en el ordenador,
   tras el resumen en el móvil) */
.subir-en-foto { position: absolute; left: 14px; bottom: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--rosa); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 12px rgba(0, 0, 0, .28); }
.subir-en-foto .i { width: 18px; height: 18px; }
.subir-en-foto:hover { background: var(--rosa-oscuro); }
.subir-cta { display: flex; align-items: center; gap: 14px; margin: 16px 0 6px; padding: 14px 16px; border: 2px dashed var(--rosa-claro); border-radius: var(--radio); background: var(--rosa-velo); color: var(--tinta); text-decoration: none; transition: background .15s, border-color .15s; }
.subir-cta:hover { background: var(--rosa-tenue); border-color: var(--rosa); }
.subir-cta-icono { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rosa); color: #fff; }
.subir-cta-icono .i { width: 24px; height: 24px; }
.subir-cta-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.subir-cta-texto b { font-size: 15.5px; line-height: 1.3; }
.subir-cta-texto small { color: var(--tinta-2); font-size: 13px; }
.subir-cta-boton { flex: none; min-height: 42px; padding: 8px 18px; font-size: 14px; }
.subir-cta-ancha { display: none; }
@media (max-width: 420px) {
	.subir-cta-boton { display: none; } /* en un móvil estrecho, la tarjeta entera es el botón */
}

.hoja-enlaces { padding: 18px 0 6px; font-size: 13.5px; color: var(--tinta-2); line-height: 1.7; }
.hoja-enlaces .enlace-rosa { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.hoja-enlaces p a { color: var(--tinta); }
.explorador[data-hoja="medio"] .hoja-enlaces { display: none; }

.descubre .migas { margin: 8px 0 10px; }
.descubre-cabecera { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.descubre-cabecera h1 { font-size: 26px; }
.descubre-cabecera p { color: var(--tinta-2); max-width: 640px; }
.descubre-cabecera .boton { min-height: 44px; padding: 10px 20px; }
.descubre-tipos { display: flex; gap: 8px; margin: 0 -16px 18px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.descubre-tipos .pastilla { text-decoration: none; }
.descubre-tipos .pastilla small { color: var(--tinta-3); font-weight: 600; }
.descubre-tipos [aria-current="page"] { background: var(--rosa); color: #fff; box-shadow: none; }
.descubre-tipos [aria-current="page"] small { color: rgba(255, 255, 255, .8); }
.ranking { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ranking-fila { position: relative; display: flex; gap: 14px; padding: 10px; border-radius: var(--radio); background: var(--papel); box-shadow: var(--sombra); text-decoration: none; }
.ranking-fila:hover { box-shadow: var(--sombra-alta); }
.ranking-n { position: absolute; z-index: 1; top: 4px; left: 4px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--rosa); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.ranking-foto { flex: none; display: grid; place-items: center; width: 116px; height: 116px; overflow: hidden; border-radius: 12px; background: var(--gris); color: var(--tinta-3); }
.ranking-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ranking-texto { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ranking-texto b { font-size: 16px; line-height: 1.25; }
.ranking-texto small { color: var(--tinta-2); font-size: 12.5px; }
.ranking-texto .nota { font-size: 14px; }
.ranking-resumen { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--tinta-2); font-size: 13px; line-height: 1.45; }
.descubre-mas { margin-top: 14px; color: var(--tinta-2); }
.descubre-mas a { color: var(--rosa); }
.descubre-zonas ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.descubre-zonas a { display: inline-flex; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); font-size: 14px; font-weight: 500; text-decoration: none; }
.descubre-zonas a small { color: var(--tinta-3); }
.descubre-zonas [aria-current="page"] { background: var(--rosa-tenue); box-shadow: none; }
.ideas { margin-top: 20px; }
.ideas ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ideas a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); font-size: 14px; text-decoration: none; }
@media (min-width: 768px) {
	.ranking { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.descubre-tipos { margin: 0 0 18px; padding: 2px 0 6px; flex-wrap: wrap; }
}

/* MapLibre: atribución discreta y sin el borde del control */
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { z-index: 5; }
.explorador .maplibregl-ctrl-bottom-right { bottom: calc(var(--hoja-alto, 300px) - 4px); transition: bottom .25s; }
.explorador[data-hoja="lleno"] .maplibregl-ctrl-bottom-right { bottom: 0; }

/* ── Desde 768 px: barra lateral (boceto 16) ────────────────────────────────────────────────── */
@media (min-width: 768px) {
	:root { --lateral: 216px; }
	body.con-barra .app-cuerpo { padding-bottom: 0; }
	.barra-inferior { display: none; }
	.aviso-flotante { bottom: 24px; }
	body.con-barra .pie-fijo { bottom: 0; padding-bottom: calc(12px + var(--abajo)); }
	.lateral {
		position: sticky;
		top: 0;
		z-index: 50;
		display: flex;
		flex-direction: column;
		gap: 4px;
		flex: 0 0 var(--lateral);
		height: 100vh;
		height: 100dvh;
		padding: 22px 14px;
		background: var(--papel);
		box-shadow: 1px 0 0 var(--linea);
	}
	body.pagina-mapa .lateral { position: static; height: auto; }
	.lateral-marca { display: block; padding: 0 10px 22px; }
	.lateral-marca img { display: block; height: 37px; width: auto; }
	.lateral-enlace {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 11px 12px;
		border-radius: 14px;
		color: var(--tinta-2);
		font-weight: 500;
		text-decoration: none;
	}
	.lateral-enlace .i { width: 22px; height: 22px; }
	.lateral-enlace:hover { background: var(--gris); color: var(--tinta); }
	.lateral-enlace[aria-current="page"] { background: var(--rosa-velo); color: var(--rosa); font-weight: 600; }

	.pagina { padding-top: 18px; }
	.aviso-muestra { max-width: 640px; margin: 16px auto 0; }
	.pagina-ancha ~ .aviso-muestra, .pagina-ancha { max-width: 900px; }
	.solo-ancho { display: inline-grid !important; }

	/* Explorar: mapa en el centro y la lista de sitios a la derecha */
	/* La fila mide lo que la pantalla (minmax(0, 1fr)): sin esto crece con la columna de fotos y el mapa se estira a
	   miles de px, con su centro muy por debajo de lo que se ve (medido el 12-11: 3.971 px en una ventana de 900) */
	.explorador { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); }
	.mapa { position: relative; inset: auto; grid-column: 1; grid-row: 1; height: 100%; }
	.mapa-arriba { right: 380px; padding: 16px 16px 0; max-width: calc(100% - 380px); }
	.busqueda { max-width: 460px; }
	.tipos { margin: 10px 0 0; padding: 2px 0 8px; }
	.mapa-controles { right: calc(380px + 16px); bottom: 24px; }
	.explorador[data-hoja] .mapa-controles, .explorador.con-previa .mapa-controles { opacity: 1; pointer-events: auto; }
	.hoja {
		position: relative;
		grid-column: 2;
		grid-row: 1;
		height: 100%;
		border-radius: 0;
		box-shadow: -1px 0 0 var(--linea);
		transform: none !important;
	}
	.hoja-asa, .hoja-alternar { display: none; }
	.hoja-cabecera { padding: 22px 20px 12px; }
	.hoja-cuerpo { padding: 0 20px 24px; overflow-y: auto !important; }
	.explorador[data-hoja] .tarjetas { display: grid; margin: 0; padding: 0; overflow: visible; }
	.explorador[data-hoja] .tarjeta { flex: none; }
	.explorador[data-hoja] .tarjeta-foto { aspect-ratio: 1 / 1; }
	.explorador .maplibregl-ctrl-bottom-right { bottom: 0 !important; right: 380px; }
	.vista-previa { left: auto; right: calc(380px + 76px); bottom: 24px; width: 360px; }
	.panel-busqueda {
		position: absolute;
		top: 72px;
		left: 16px;
		right: auto;
		bottom: auto;
		width: min(460px, calc(100% - 32px));
		max-height: min(70vh, calc(100dvh - 150px));
		padding: 6px 14px 14px;
		border-radius: var(--radio-grande);
		box-shadow: var(--sombra-alta);
	}
	.panel-busqueda-pagina { position: static; width: auto; max-height: none; padding: 4px 0 24px; box-shadow: none; }
	.explorador.buscando .tipos { visibility: visible; }
	.filtros {
		left: auto;
		width: 420px;
		box-shadow: var(--sombra-alta);
	}
	.capa-caja { max-width: 400px; }

	/* Ficha: foto con miniaturas a la izquierda, datos a la derecha */
	body.pagina-ficha { background: var(--fondo); }
	.ficha { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 24px 28px 0; align-items: start; }
	.ficha-fotos { position: sticky; top: 24px; }
	.ficha-portada { height: auto; max-height: none; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; border-radius: var(--radio-grande); }
	.ficha-botones { top: 14px; }
	.subir-cta-ancha { display: flex; margin-top: 18px; padding: 18px 20px; }
	.subir-cta-movil { display: none; }
	.subir-en-foto { bottom: 14px; }
	.contador-fotos { bottom: 14px; }
	.miniaturas { display: flex; gap: 8px; margin: 10px 0 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: thin; }
	.miniaturas a { display: block; width: 76px; height: 58px; overflow: hidden; border-radius: 10px; }
	.miniaturas img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
	.miniaturas a:hover img { transform: scale(1.06); }
	.ficha-hoja { margin: 0; padding: 26px; border-radius: var(--radio-grande); box-shadow: var(--sombra); }
	.ficha-cabecera h1 { font-size: 28px; }
	.ficha-acciones { position: static; margin: 20px 0 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.cercanos, .creditos { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; background: none; }
	.cercanos .seccion-cabecera { border: 0; }
	.carrusel { margin: 0; padding: 0 0 8px; }
	.carrusel .tarjeta { flex-basis: 190px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	:root { --lateral: 84px; }
	.lateral { padding: 18px 8px; align-items: center; }
	.lateral-marca { padding: 0 0 18px; }
	.lateral-marca img { height: 40px; width: 33px; object-fit: cover; object-position: left; }
	.lateral-enlace { flex-direction: column; gap: 4px; width: 100%; padding: 9px 4px; font-size: 11px; text-align: center; }
	.explorador { grid-template-columns: minmax(0, 1fr) 320px; }
	.mapa-arriba { right: 320px; max-width: calc(100% - 320px); }
	.mapa-controles { right: calc(320px + 16px); }
	.explorador .maplibregl-ctrl-bottom-right { right: 320px; }
	.vista-previa { right: calc(320px + 76px); width: 320px; }
	.ficha { grid-template-columns: 1fr; padding: 20px; }
	.ficha-fotos { position: static; }
}

@media (min-width: 1280px) {
	.explorador { grid-template-columns: minmax(0, 1fr) 440px; }
	.mapa-arriba { right: 440px; max-width: calc(100% - 440px); }
	.mapa-controles { right: calc(440px + 16px); }
	.explorador .maplibregl-ctrl-bottom-right { right: 440px; }
	.vista-previa { right: calc(440px + 76px); }
	.explorador[data-hoja] .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.galeria-flecha { display: grid; }
}

@media (hover: hover) and (min-width: 768px) {
	.galeria-flecha { display: grid; }
}

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

/* ── Gamificación (12-11, ADR-0013): destellos, niveles, insignias, ranking, avisos ── */
.barra-inferior a, .lateral-enlace { position: relative; }
.punto-aviso { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--rosa); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.lateral-enlace .punto-aviso { position: static; margin-left: auto; }
.premio { display: inline-block; padding: 1px 7px; border-radius: 10px; background: var(--amarillo-tenue); color: var(--tinta); font-size: 12px; font-weight: 700; white-space: nowrap; }
.subir-premio { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 14px; border-radius: var(--radio); background: var(--rosa-velo); font-size: 14px; }
.subir-premio .i { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.avatar-nivel { box-shadow: 0 0 0 2px var(--papel), 0 0 0 4px var(--amarillo); }
.avatar-nivel-4, .avatar-nivel-5 { box-shadow: 0 0 0 2px var(--papel), 0 0 0 4px var(--rosa); }
.avatar-nivel-6, .avatar-nivel-7 { box-shadow: 0 0 0 2px var(--papel), 0 0 0 4px var(--amarillo-oscuro), 0 0 12px var(--amarillo); }

.barra-nivel { height: 10px; border-radius: 5px; background: var(--gris); overflow: hidden; }
.barra-nivel span { display: block; height: 100%; min-width: 4px; border-radius: 5px; background: linear-gradient(90deg, var(--rosa), var(--amarillo)); }
.logros .titulo-seccion { margin-top: 8px; }
.logros-cifras { margin: 8px 0 14px; color: var(--tinta-2); font-size: 14px; }
.logros-cifras b { color: var(--tinta); }
.logros-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.insignias { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.insignia { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--radio); background: var(--papel); box-shadow: 0 0 0 1px var(--linea); text-align: center; }
.insignia b { font-size: 12px; line-height: 1.2; }
.insignia small { color: var(--tinta-3); font-size: 11px; }
.insignia-icono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--rosa-tenue); color: var(--rosa-oscuro); }
.insignia-icono .i { width: 22px; height: 22px; }
.insignia-bronce .insignia-icono { background: #f3dcc8; color: #8a4b1e; }
.insignia-plata .insignia-icono { background: #e4e7ec; color: #4b5563; }
.insignia-oro .insignia-icono { background: var(--amarillo); color: var(--tinta); }
.insignia-bloqueada { opacity: .55; }
.insignia-bloqueada .insignia-icono { background: var(--gris); color: var(--tinta-3); }
.historial { margin: 0; padding: 0; list-style: none; }
.historial li { display: grid; grid-template-columns: 64px 1fr; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: 14px; }
.historial b { color: var(--rosa-oscuro); }
.historial .historial-menos { color: var(--rojo); }
.historial small { grid-column: 2; color: var(--tinta-3); font-size: 12px; }

.pestanas-ranking { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 10px; padding-bottom: 2px; }
.pestanas-ranking a { flex: none; padding: 6px 12px; border-radius: 16px; background: var(--gris); color: var(--tinta-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.pestanas-ranking [aria-current="page"] { background: var(--rosa); color: #fff; }
.ranking-intro { color: var(--tinta-2); font-size: 14px; }
.ranking-yo { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; padding: 12px 14px; border-radius: var(--radio); background: var(--rosa-velo); font-size: 14px; }
.ranking-yo p { margin: 0; }
.ranking-yo small { color: var(--tinta-2); }
.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 8px 0 16px; padding: 0; list-style: none; }
.podio li { min-width: 0; }
.podio li a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: var(--radio-grande); background: var(--papel); box-shadow: var(--sombra); text-align: center; text-decoration: none; color: inherit; }
.podio li b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.podio small { color: var(--tinta-3); font-size: 11px; }
.podio-1 { order: 2; }
.podio-2 { order: 1; }
.podio-3 { order: 3; }
.podio-1 a { padding-top: 22px; background: linear-gradient(180deg, var(--amarillo-tenue), var(--papel)); }
.podio-puesto { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gris); font-size: 13px; font-weight: 700; }
.podio-1 .podio-puesto { background: var(--amarillo); }
.podio-destellos { font-weight: 700; color: var(--rosa-oscuro); font-size: 14px; }
.ranking-lista { margin: 0; padding: 0; list-style: none; }
.ranking-lista a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--linea); text-decoration: none; color: inherit; }
.ranking-puesto { width: 26px; color: var(--tinta-3); font-weight: 600; text-align: right; }
.ranking-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-nombre small { color: var(--tinta-3); }
.ranking-destellos { font-weight: 700; color: var(--rosa-oscuro); white-space: nowrap; }
.ranking-mio a { background: var(--rosa-velo); border-radius: 8px; }
.como-se-gana { margin-top: 26px; font-size: 14px; }
.como-se-gana ul { padding-left: 18px; }
.como-se-gana li { margin: 4px 0; }
.como-se-gana-nota { color: var(--tinta-3); font-size: 13px; }

.sin-foto-nota { margin: -4px 0 8px; color: var(--tinta-3); font-size: 13px; }
.sin-foto-lista { margin: 0 0 8px; padding: 0; list-style: none; }
.sin-foto-lista a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); text-decoration: none; color: inherit; }
.sin-foto-hueco { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--gris); color: var(--tinta-3); object-fit: cover; }
.sin-foto-texto { flex: 1; min-width: 0; }
.sin-foto-texto b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sin-foto-texto small { color: var(--tinta-3); font-size: 12px; }
.sin-foto-lista .boton { flex: none; padding: 8px 14px; }

.aviso-nuevo { background: var(--rosa-velo); border-radius: 10px; }

.celebracion { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(55, 47, 42, .45); }
.celebracion:not([open]) { display: none; }
.celebracion-caja { width: min(420px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: 22px 20px 18px; border-radius: var(--radio-grande); background: var(--papel); box-shadow: var(--sombra-alta); text-align: center; animation: celebrar .35s ease-out; }
.celebracion-chispa { margin: 0; font-size: 40px; line-height: 1; color: var(--amarillo-oscuro); }
.celebracion h2 { margin: 6px 0 12px; font-size: 19px; }
.celebracion-ganados { margin: 0 0 12px; padding: 0; list-style: none; }
.celebracion-ganados li { padding: 6px 0; font-size: 15px; }
.celebracion-ganados b { color: var(--rosa-oscuro); }
.celebracion-nivel, .celebracion-insignia { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; }
.celebracion-nota { margin: 10px 0; color: var(--tinta-2); font-size: 14px; }
.celebracion .barra-nivel { margin: 14px 0 0; }
.celebracion-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
@keyframes celebrar { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

/* «Qué ver en…» (ADR-0014) */
.que-ver-fecha { margin: -4px 0 0; color: var(--tinta-3); }
.que-ver-capital, .que-ver-tipo { margin-top: 8px; }
.descubre .titulo-seccion { margin-top: 26px; }
.que-ver-faq h3 { margin: 18px 0 4px; font-size: 16px; }
.que-ver-faq p { margin: 0; color: var(--tinta-2); max-width: 720px; }
.que-ver-faq a, .descubre-mas a { color: var(--rosa-oscuro); }
.ficha-mas-tipos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 12px; font-size: 14px; }

/* Quiero ir (fase 2 de «Desliza», 16-11): la lista con su mapa */
.quiero-vacio { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 0; }
.quiero-vacio p { margin: 0; }
.quiero-cuantos { margin: 4px 0 12px; font-weight: 700; }
.quiero-cuantos small { font-weight: 400; color: var(--tinta-2); }
.quiero-mapa { height: 240px; border-radius: 16px; overflow: hidden; background: var(--gris); margin-bottom: 14px; }
.quiero-lista { list-style: none; margin: 0; padding: 0; }
.quiero-lista li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--linea); }
.quiero-fila { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 10px 0; color: inherit; text-decoration: none; }
.quiero-foto { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--gris); }
.quiero-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiero-texto { display: flex; flex-direction: column; min-width: 0; }
.quiero-texto b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiero-texto small { color: var(--tinta-2); font-size: 13px; }
.quiero-km { color: var(--rosa-oscuro) !important; font-weight: 600; }
.quiero-mas { margin: 16px 0; }
.que-ver-botones { display: flex; flex-wrap: wrap; gap: 10px; }

/* Quiénes somos (16-11) */
.qs { max-width: 900px; margin: 0 auto; padding-bottom: 0; }
.qs-hero { position: relative; overflow: hidden; border-radius: 0 0 18px 18px; min-height: 340px; display: flex; align-items: flex-end; background: var(--rosa-oscuro); }
.qs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%); }
.qs-hero-texto { position: relative; z-index: 1; padding: 28px 20px 40px; color: #fff; }
.qs-hero-texto h1 { margin: 4px 0 10px; font-size: clamp(26px, 6vw, 40px); line-height: 1.15; color: #fff; }
.qs-hero-texto p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 36em; }
.qs-hero .qs-antetitulo { color: #fff; opacity: .9; }
.qs-hero-credito { position: absolute; z-index: 1; right: 10px; bottom: 8px; max-width: calc(100% - 20px); color: rgba(255,255,255,.8); font-size: 11px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-antetitulo { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rosa); }
.qs-seccion { padding: 30px 18px 6px; }
.qs-seccion h2 { margin: 4px 0 12px; font-size: 22px; line-height: 1.25; }
.qs-seccion p, .qs-lista li { color: var(--tinta-2); font-size: 15.5px; line-height: 1.65; }
.qs-seccion p { margin: 0 0 12px; }
.qs-seccion a { color: var(--rosa-oscuro); }
.qs-lista { margin: 0; padding-left: 20px; }
.qs-lista li { margin-bottom: 8px; }
.qs-destacado { padding: 14px 16px; border-left: 4px solid var(--rosa); border-radius: 0 12px 12px 0; background: var(--rosa-velo); color: var(--tinta) !important; font-weight: 500; }
.qs-carta { margin: 24px 12px 0; padding: 26px 18px 18px; border-radius: 18px; background: var(--rosa-velo); }
.qs-carta blockquote { margin: 16px 0; padding: 0 0 0 16px; border-left: 4px solid var(--rosa); font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--tinta); }
.qs-firma-arriba { display: flex; align-items: center; gap: 10px; font-size: 14px !important; }
.qs-firma-arriba img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.qs-firma { margin-top: 18px; font-weight: 700; color: var(--tinta) !important; }
.qs-firma span { font-weight: 400; color: var(--tinta-3); font-size: 14px; }
.qs-autor { display: grid; gap: 18px; grid-template-columns: 1fr; }
.qs-autor-foto { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--rosa-claro); }
.qs-autor h3 { margin: 18px 0 8px; font-size: 16px; }
.qs-redes a { font-weight: 600; }
.qs-medios { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.qs-medios a { display: block; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 12px; color: var(--tinta) !important; text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.qs-medios a:hover { border-color: var(--rosa-claro); }
.qs-medios span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--rosa); }
.qs-fichas { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.qs-ficha { padding: 14px; border: 1px solid var(--linea); border-radius: 12px; }
.qs-ficha span { display: block; font-size: 12px; color: var(--tinta-3); margin-bottom: 4px; }
.qs-ficha b { font-size: 14.5px; line-height: 1.35; }
.qs-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.qs-acciones .boton { color: inherit; }
.qs-acciones .boton-rosa { color: #fff !important; }
.qs-nota { font-size: 13px !important; color: var(--tinta-3) !important; }
.qs-cierre { margin: 30px 12px 24px; padding: 28px 18px; border-radius: 18px; background: var(--rosa); color: #fff; text-align: center; }
.qs-cierre h2 { margin: 0 0 6px; color: #fff; font-size: 22px; }
.qs-cierre p { margin: 0 0 16px; }
.qs-cierre .boton { background: #fff; color: var(--rosa-oscuro); }
@media (min-width: 700px) {
	.qs-hero { min-height: 420px; }
	.qs-hero-texto { padding: 40px 36px 52px; }
	.qs-seccion { padding: 36px 36px 6px; }
	.qs-carta { margin: 28px 24px 0; padding: 32px 36px 24px; }
	.qs-autor { grid-template-columns: 180px 1fr; align-items: start; }
	.qs-fichas { grid-template-columns: repeat(4, 1fr); }
	.qs-cierre { margin: 36px 24px 28px; }
}

/* «Quiero ir» (ADR-0020): el marcador relleno cuando el sitio está en la lista */
[data-quiero-ir][aria-pressed="true"] .i { fill: currentColor; }
