/* ==========================================================================
   Sevilla Te Quiere · sistema de diseño
   Mobile first. Rojo de marca #E30917, noche (ink) + papel (paper).
   Display: Cormorant (serif, cursiva para el acento) · UI: Montserrat ·
   Firma: Petit Formal Script ("te quiere").
   ========================================================================== */

:root {
	--red: #E30917;
	--red-ink: #B4000D;            /* texto rojo sobre papel (AA) */
	--red-glow: rgba(227, 9, 23, .45);
	--rose: #FFCAD4;
	--albero: #E2A23B;
	--ink: #0E0B0B;
	--ink-2: #171212;
	--ink-3: #241C1B;
	--paper: #F7F1E8;
	--paper-2: #EFE5D8;
	--cream: #FBF8F3;

	/* Superficies (tema claro por defecto en páginas interiores) */
	--bg: var(--paper);
	--fg: #1A1414;
	--muted: #6E615C;
	--surface: #FFFFFF;
	--surface-2: var(--paper-2);
	--line: rgba(26, 20, 20, .12);
	--line-strong: rgba(26, 20, 20, .24);
	--accent: var(--red-ink);

	--f-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
	--f-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-script: "Petit Formal Script", "Cormorant", cursive;

	--fs-xs: clamp(.72rem, .7rem + .1vw, .78rem);
	--fs-sm: clamp(.84rem, .82rem + .12vw, .92rem);
	--fs-md: clamp(1rem, .96rem + .2vw, 1.08rem);
	--fs-lg: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
	--fs-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
	--fs-2xl: clamp(2.2rem, 1.6rem + 3vw, 4rem);
	--fs-3xl: clamp(2.8rem, 1.8rem + 5vw, 6.2rem);
	--fs-4xl: clamp(3.4rem, 2rem + 8vw, 9.5rem);

	--r-sm: 12px;
	--r-md: 18px;
	--r-lg: 26px;
	--r-xl: 34px;
	--r-pill: 999px;
	--gap: clamp(8px, .7vw, 12px);
	--pad: clamp(16px, 4vw, 48px);
	--maxw: 1320px;
	--readw: 68ch;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--sh-1: 0 1px 2px rgba(14, 11, 11, .06), 0 6px 20px rgba(14, 11, 11, .06);
	--sh-2: 0 20px 60px -20px rgba(14, 11, 11, .35);
	--topbar-h: 76px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: var(--ink);
		--fg: #F3ECE4;
		--muted: #B3A79F;
		--surface: var(--ink-2);
		--surface-2: var(--ink-3);
		--line: rgba(243, 236, 228, .12);
		--line-strong: rgba(243, 236, 228, .24);
		--accent: #FF4A55;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: var(--ink); --fg: #F3ECE4; --muted: #B3A79F; --surface: var(--ink-2); --surface-2: var(--ink-3);
	--line: rgba(243, 236, 228, .12); --line-strong: rgba(243, 236, 228, .24); --accent: #FF4A55; color-scheme: dark;
}

/* Transiciones entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ----------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--fg);
	font: 400 var(--fs-md)/1.65 var(--f-ui); letter-spacing: .005em;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 em, h2 em, h3 em, .tile__t em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; text-wrap: pretty; }
.h3 { font-size: var(--fs-xl); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }
.serif-i { font-family: var(--f-display); font-style: italic; }
.kicker { font: 600 var(--fs-xs)/1.3 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; }
.kicker--light { color: rgba(255, 255, 255, .82); }
.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.read { width: min(100% - 2 * var(--pad), var(--readw)); margin-inline: auto; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.i--lg { width: 2.2rem; height: 2.2rem; }
.img-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ink-3), var(--ink)); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; }

/* --------------------------------------------------------------- Botones */
.btn {
	--b: var(--fg); display: inline-flex; align-items: center; gap: .55rem;
	padding: .85rem 1.3rem; border-radius: var(--r-pill); border: 1px solid transparent;
	font: 600 var(--fs-sm)/1 var(--f-ui); letter-spacing: .02em; text-decoration: none;
	transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn--red:hover { background: #c70613; box-shadow: 0 16px 40px -12px var(--red-glow); }
.btn--dark { background: var(--fg); color: var(--bg); }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--fg); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: .6rem 1rem; font-size: var(--fs-xs); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); }
.icon-btn--light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font: 600 var(--fs-xs)/1 var(--f-ui); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip img { width: 20px; height: 20px; }
.date-chip { display: inline-block; padding: .3rem .55rem; border-radius: 8px; background: var(--red); color: #fff; font: 700 var(--fs-xs)/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

/* ------------------------------------------------------------------ Logo */
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo__sym { width: auto; height: 34px; }
.logo__word { font: 800 1.15rem/1 var(--f-ui); letter-spacing: -.02em; color: #fff; }
.logo__word b { color: var(--red); font-weight: 800; }

/* ---------------------------------------------------------------- Topbar */
.topbar { position: fixed; inset: 10px 10px auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; transition: transform .5s var(--ease); }
.topbar.is-hidden { transform: translateY(-120%); }
.topbar__pill {
	pointer-events: auto; display: flex; align-items: center; gap: .5rem; width: min(100%, 980px);
	padding: 8px 8px 8px 16px; border-radius: var(--r-pill);
	background: rgba(14, 11, 11, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
	box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .6);
}
.topbar__brand { margin-right: auto; text-decoration: none; }
.topbar__brand .logo__sym { height: 30px; }
.topbar__nav { display: none; gap: .2rem; }
.topbar__nav a { padding: .55rem .85rem; border-radius: var(--r-pill); font: 600 var(--fs-sm)/1 var(--f-ui); text-decoration: none; color: rgba(255, 255, 255, .85); transition: background .2s, color .2s; }
.topbar__nav a:hover, .topbar__nav a[aria-current] { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar__menu, .pill-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.1rem; border-radius: var(--r-pill); border: 0; background: var(--red); color: #fff; font: 600 var(--fs-sm)/1 var(--f-ui); }
.topbar__menu:hover, .pill-btn:hover { background: #c70613; }
.main { display: block; }
body:not(.is-bento):not(.is-fullmap) .main { padding-top: calc(var(--topbar-h) + 8px); }
@media (min-width: 900px) { .topbar__nav { display: flex; } }

/* ------------------------------------------------------------------ Menú */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #fff; overflow-y: auto; clip-path: circle(0% at calc(100% - 48px) 40px); transition: clip-path .8s var(--ease-io); }
.menu[hidden] { display: block; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 48px) 40px); visibility: visible; }
.menu__inner { min-height: 100%; display: flex; flex-direction: column; padding: 18px var(--pad) 28px; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__nav { display: flex; flex-direction: column; margin: auto 0; padding: 4vh 0; }
.menu__link {
	display: flex; align-items: baseline; gap: 1rem; padding: .35rem 0; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08);
	font: 400 clamp(2rem, 1.2rem + 4.2vw, 4.6rem)/1.1 var(--f-display); letter-spacing: -.01em;
	opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .2s;
	transition-delay: calc(.12s + var(--i) * .05s);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link:hover { color: var(--red); font-style: italic; }
.menu__link .i { width: .6em; height: .6em; margin-left: auto; opacity: .4; transition: transform .4s var(--ease), opacity .2s; }
.menu__link:hover .i { transform: rotate(45deg); opacity: 1; }
.menu__n { font: 600 var(--fs-xs)/1 var(--f-ui); color: var(--red); letter-spacing: .1em; min-width: 2ch; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.menu__foot .script { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); color: var(--red); margin: 0; }
.menu__links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: var(--fs-sm); }
.menu__links a { display: inline-flex; gap: .4rem; align-items: center; text-decoration: none; opacity: .8; }
.menu__links a:hover { opacity: 1; }
body.menu-open { overflow: hidden; }

/* ===================================================================== BENTO */
.is-bento { background: var(--ink); color: #fff; --accent: #FF4A55; }
.bento {
	display: grid; gap: var(--gap); padding: var(--gap);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(150px, auto);
	grid-template-areas:
		"hero hero"
		"ley ley"
		"map map"
		"age age"
		"rut blog"
		"love love"
		"socio socio"
		"insta insta";
}
.tile {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
	border-radius: var(--r-lg); background: var(--ink-2); color: #fff; text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .06);
	opacity: 0; transform: translateY(24px) scale(.985);
	animation: tile-in 1s var(--ease) forwards; animation-delay: calc(.08s + var(--d, 0) * .07s);
	--mx: 50%; --my: 50%;
}
@keyframes tile-in { to { opacity: 1; transform: none; } }
.tile::after { /* luz que sigue al ratón */
	content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .14), transparent 45%);
}
.tile:hover::after { opacity: 1; }
.tile__media { position: absolute; inset: 0; z-index: -1; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a.tile:hover .tile__media img { transform: scale(1.06); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 11, 0) 30%, rgba(14, 11, 11, .82) 100%); }
.tile__in { padding: clamp(16px, 1.6vw, 26px); position: relative; z-index: 2; }
.tile__in--bottom { margin-top: auto; }
.tile__in--glass { margin-top: auto; margin: auto 10px 10px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(14, 11, 11, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08); }
.tile__t { font: 500 clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem)/1 var(--f-display); margin: 0; }
.tile__t--xl { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 4rem); }
.tile__t--sm { font-size: clamp(1.3rem, 1rem + .8vw, 1.75rem); line-height: 1.08; }
.tile__meta { margin: .5rem 0 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); display: flex; align-items: center; gap: .4rem; }
.tile__meta b { color: #fff; }
.tile__go {
	position: absolute; top: 12px; right: 12px; z-index: 4; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink);
	transform: scale(.85); opacity: .9; transition: transform .5s var(--ease), background .2s, color .2s;
}
.tile__go .i { width: 18px; height: 18px; transition: transform .5s var(--ease); }
a.tile:hover .tile__go { transform: scale(1); background: var(--red); color: #fff; }
a.tile:hover .tile__go .i { transform: rotate(45deg); }
.tile__go--static { position: static; flex: none; }
.tile__quote { margin: .6rem 0 0; max-width: 46ch; font: italic 400 var(--fs-lg)/1.3 var(--f-display); color: rgba(255, 255, 255, .88); min-height: 2.6em; transition: opacity .5s; }
.tile__list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.tile__list li::before { content: "♥"; color: var(--red); margin-right: .45rem; font-size: .8em; }
.tile__more { margin: auto 18px 16px; display: inline-flex; align-items: center; gap: .4rem; font: 600 var(--fs-sm)/1 var(--f-ui); text-decoration: none; color: #fff; }
.tile__more:hover { color: var(--red); }

/* Hero */
.tile--hero { grid-area: hero; min-height: min(88svh, 760px); background: var(--ink); }
.tile--hero .tile__media::after { background: linear-gradient(180deg, rgba(14, 11, 11, .55) 0%, rgba(14, 11, 11, .05) 30%, rgba(14, 11, 11, .25) 55%, rgba(14, 11, 11, .92) 100%); }
.tile__media--kb img { object-position: 50% 35%; animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero { display: flex; flex-direction: column; height: 100%; flex: 1; padding: 14px; }
.hero__top { display: flex; align-items: center; justify-content: space-between; }
.hero__logo .logo__sym { height: 40px; }
.hero__body { margin-top: auto; padding: 0 6px 6px; }
.hero__title { margin: 0 0 .6rem; line-height: .86; }
.hero__w1 { display: block; font: 400 italic clamp(5.2rem, 24vw, 9.5rem)/.86 var(--f-display); letter-spacing: -.025em; }
.hero__w2 { display: block; font-size: clamp(2.3rem, 10vw, 4.4rem); color: var(--red); margin: -.05em 0 0 .08em; text-shadow: 0 6px 30px rgba(0, 0, 0, .4); line-height: 1.3; }
.hero__lead { max-width: 34ch; font-size: var(--fs-md); color: rgba(255, 255, 255, .86); margin-bottom: .9rem; }
.sunset { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .55rem .9rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: var(--fs-xs); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sunset .i { color: var(--albero); }

/* Leyendas (carrusel de fotos) */
.tile--leyendas { grid-area: ley; min-height: 420px; }
.tile__slides .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.tile__slides .slide.is-on { opacity: 1; }
.tile__slides .slide img { animation: kb 18s ease-in-out infinite alternate; }

/* Mapa */
.tile--mapa { grid-area: map; min-height: 380px; background: #E9E3DA; color: #fff; }
.tile--mapa .tile__media::after { display: none; }
.minimap { position: absolute; inset: 0; }
.minimap__ph { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #efe9e0, #d9d1c5); }
.minimap .maplibregl-canvas { filter: saturate(.85); }
.minimap .maplibregl-ctrl-attrib { font-size: 9px; opacity: .7; }
.tile--mapa .kicker { color: #FF8A92; }

/* Rutas, agenda, love, blog, socio, insta */
.tile--rutas { grid-area: rut; min-height: 360px; }
.tile--agenda { grid-area: age; background: linear-gradient(160deg, #2A0A0D, var(--ink-2) 60%); }
.mini-agenda { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 6px; }
.mini-agenda a { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: center; padding: 10px; border-radius: var(--r-sm); text-decoration: none; background: rgba(255, 255, 255, .04); transition: background .2s; }
.mini-agenda a:hover { background: rgba(255, 255, 255, .1); }
.mini-agenda .date-chip { grid-row: span 2; align-self: start; min-width: 4.6rem; text-align: center; }
.mini-agenda__t { font-weight: 600; font-size: var(--fs-sm); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-agenda__l { font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile--love { grid-area: love; min-height: 260px; background: radial-gradient(circle at 20% 0%, rgba(227, 9, 23, .5), transparent 55%), var(--ink-3); }
.love-rot { position: relative; flex: 1; min-height: 150px; margin: 0 18px; overflow: hidden; }
.love-rot__item { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.love-rot__item.is-on { opacity: 1; transform: none; }
.love-rot__item p { font: italic 400 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.2 var(--f-display); margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.love-rot__item footer { font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }
.tile--blog { grid-area: blog; min-height: 280px; }
.tile--socio { grid-area: socio; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(110deg, #0f3b2a, #12305f); min-height: 96px; }
.socio__logo { width: 130px; height: auto; flex: none; }
.socio__t { margin: 0; font-size: var(--fs-sm); line-height: 1.3; flex: 1; }
.socio__t b { color: #fff; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--red); }
.tile--insta { grid-area: insta; flex-direction: row; align-items: center; justify-content: center; gap: .6rem; background: linear-gradient(135deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); font-weight: 700; min-height: 84px; }
.tile--insta .i { transition: transform .6s var(--ease); }
.tile--insta:hover .i { transform: rotate(-8deg) scale(1.1); }

/* Tablet */
@media (min-width: 640px) {
	.bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-areas:
			"hero hero hero hero"
			"ley ley map map"
			"rut age age love"
			"blog insta socio socio";
	}
	.tile--hero { min-height: 72svh; }
	.tile--love .love-rot__item p { -webkit-line-clamp: 5; }
}

/* Escritorio: 100 % × 100 % sin scroll */
@media (min-width: 1024px) and (min-height: 620px) {
	.is-bento, .is-bento body { height: 100%; }
	.is-bento .main { height: 100dvh; }
	.bento {
		height: 100dvh; overflow: hidden;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: repeat(6, minmax(0, 1fr));
		grid-template-areas:
			"hero hero hero hero ley ley ley ley map map map map"
			"hero hero hero hero ley ley ley ley map map map map"
			"hero hero hero hero ley ley ley ley map map map map"
			"hero hero hero hero rut rut age age love love blog blog"
			"hero hero hero hero rut rut age age love love blog blog"
			"hero hero hero hero rut rut age age socio socio insta insta";
	}
	.tile, .tile--hero, .tile--leyendas, .tile--mapa, .tile--rutas, .tile--love, .tile--blog, .tile--socio, .tile--insta { min-height: 0; }
	.tile--socio { padding: 10px 14px; gap: 10px; }
	.socio__logo { width: 104px; }
	.socio__t { font-size: var(--fs-xs); }
	.tile--insta { flex-direction: row; }
	.tile--insta .i--lg { width: 1.6rem; height: 1.6rem; }
	.love-rot { margin: 0 16px; min-height: 0; }
	.love-rot__item p { font-size: clamp(1.05rem, .6rem + .9vw, 1.5rem); -webkit-line-clamp: 4; }
	.tile--rutas .tile__list li:nth-child(n+3) { display: none; }
	.mini-agenda li:nth-child(n+4) { display: none; }
}
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 760px) {
	.mini-agenda li:nth-child(n+3) { display: none; }
	.tile--rutas .tile__list { display: none; }
	.tile__quote { display: none; }
}
@media (min-width: 1440px) and (min-height: 620px) {
	.bento { --gap: 12px; }
}

/* ============================================================ Páginas: cabecera */
.phead { width: min(100% - 2 * var(--pad), var(--maxw)); margin: clamp(24px, 6vw, 80px) auto clamp(24px, 4vw, 56px); }
.phead__t { font-size: var(--fs-3xl); font-weight: 400; max-width: 16ch; }
.phead__lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.phead--center { text-align: center; }
.phead--center .phead__t, .phead--center .phead__lead { margin-inline: auto; }
.crumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ===================================================== Leyendas: archivo */
.legend-list { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto clamp(48px, 8vw, 120px); display: grid; gap: clamp(40px, 7vw, 110px); counter-reset: ley; }
.legend-row { display: grid; gap: clamp(18px, 3vw, 48px); align-items: center; text-decoration: none; counter-increment: ley; }
.legend-row__img { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4/5; background: var(--surface-2); }
.legend-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.legend-row:hover .legend-row__img img { transform: scale(1.05); }
.legend-row__n { font: italic 300 clamp(4rem, 3rem + 6vw, 9rem)/.8 var(--f-display); color: var(--accent); opacity: .9; }
.legend-row__n::before { content: counter(ley, decimal-leading-zero); }
.legend-row h2 { font-size: var(--fs-2xl); font-weight: 400; margin: .3rem 0 .8rem; }
.legend-row__q { font: italic 400 var(--fs-lg)/1.35 var(--f-display); color: var(--muted); border-left: 2px solid var(--red); padding-left: 1rem; margin-bottom: 1.2rem; }
.legend-row__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
@media (min-width: 860px) {
	.legend-row { grid-template-columns: 1fr 1.05fr; }
	.legend-row:nth-child(even) .legend-row__img { order: 2; }
	.legend-row__img { aspect-ratio: 5/6; }
}

/* ======================================================= Ficha editorial */
.story-hero { position: relative; min-height: min(92svh, 900px); display: flex; align-items: flex-end; color: #fff; margin-top: calc(-1 * (var(--topbar-h) + 8px)); overflow: hidden; }
.story-hero__img { position: absolute; inset: 0; z-index: -1; }
.story-hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 2.2s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.story-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 11, .55), rgba(14, 11, 11, .1) 35%, rgba(14, 11, 11, .88)); }
.story-hero__in { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto; padding-bottom: clamp(28px, 6vw, 80px); }
.story-hero h1 { font-size: var(--fs-3xl); font-weight: 400; max-width: 18ch; }
.story-hero .crumbs { color: rgba(255, 255, 255, .75); }
.story-hero .kicker { color: #FF8A92; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.facts .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.story-quote { width: min(100% - 2 * var(--pad), 960px); margin: clamp(40px, 7vw, 100px) auto; text-align: center; font: italic 400 var(--fs-2xl)/1.15 var(--f-display); text-wrap: balance; }
.story-quote::before { content: "“"; display: block; font-size: 2em; line-height: .5; color: var(--red); }
.prose { font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); line-height: 1.75; }
.prose > * { width: min(100% - 2 * var(--pad), var(--readw)); margin-inline: auto; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.8em; }
.prose > p:first-of-type::first-letter { float: left; font: 400 4.6em/.8 var(--f-display); color: var(--red); margin: .08em .1em 0 0; }
.prose strong { font-weight: 650; }
.prose blockquote { border-left: 3px solid var(--red); padding: .2em 0 .2em 1.2em; font: italic 400 var(--fs-lg)/1.4 var(--f-display); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--red); }
.prose figure, .prose .wp-block-image { width: min(100% - 2 * var(--pad), 1040px); margin: 2.4em auto; }
.prose img { border-radius: var(--r-lg); }
.prose a { color: var(--accent); }
.visit { width: min(100% - 2 * var(--pad), var(--maxw)); margin: clamp(40px, 6vw, 90px) auto; display: grid; gap: var(--gap); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.visit__txt { padding: clamp(22px, 4vw, 48px); }
.visit__map { min-height: 300px; position: relative; }
.visit__map .map { position: absolute; inset: 0; }
@media (min-width: 860px) { .visit { grid-template-columns: 1fr 1.1fr; } .visit__map { min-height: 420px; } }
.faq { width: min(100% - 2 * var(--pad), var(--readw)); margin: clamp(40px, 6vw, 80px) auto; }
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .4s var(--ease); color: var(--accent); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--muted); }
.next { width: min(100% - 2 * var(--pad), var(--maxw)); margin: clamp(40px, 6vw, 90px) auto; }
.next__h { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.next__h h2 { font-size: var(--fs-xl); margin: 0; }

/* Tarjetas */
.cards { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__b { padding: 16px 18px 20px; display: grid; gap: .4rem; }
.card__t { font: 500 var(--fs-lg)/1.15 var(--f-display); margin: 0; }
.card__x { font-size: var(--fs-sm); color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: var(--fs-xs); color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card .date-chip { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card--tall .card__img { aspect-ratio: 3/4; }

/* =========================================================== Rutas: ficha */
.route { display: grid; gap: 0; }
.route__map { position: sticky; top: 0; height: 46svh; z-index: 2; border-bottom: 1px solid var(--line); }
.route__map .map { position: absolute; inset: 0; }
.route__list { padding: clamp(18px, 3vw, 40px) var(--pad) 40px; }
.route__stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.stops { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.stop { position: relative; padding: 0 0 2.2rem 3.6rem; counter-increment: stop; transition: opacity .4s; }
.stop::before { content: counter(stop); position: absolute; left: 0; top: -.15rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); font: 700 var(--fs-sm)/1 var(--f-ui); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.stop::after { content: ""; position: absolute; left: 1.22rem; top: 2.6rem; bottom: .2rem; width: 1.5px; background: repeating-linear-gradient(var(--line-strong) 0 6px, transparent 6px 11px); }
.stop:last-child::after { display: none; }
.stop.is-active::before { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.12); }
.stop h3 { font-size: var(--fs-lg); margin: 0 0 .35rem; }
.stop p { color: var(--muted); margin: 0 0 .5rem; }
.stop a { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
@media (min-width: 960px) {
	.route { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
	.route__map { order: 2; top: calc(var(--topbar-h) + 8px); height: calc(100svh - var(--topbar-h) - 24px); margin: 0 12px 12px 0; border-radius: var(--r-xl); overflow: hidden; border: 0; }
	.route__list { padding-left: max(var(--pad), (100vw - var(--maxw)) / 2); }
}

/* Marcadores numerados */
.num-pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; border: 3px solid #fff; font: 700 13px/1 var(--f-ui); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.num-pin.is-active { background: var(--red); transform: scale(1.25); }

/* ============================================================= Agenda */
.agenda-filters { position: sticky; top: calc(var(--topbar-h) + 4px); z-index: 5; width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto 1.5rem; display: flex; gap: .4rem; overflow-x: auto; padding: .4rem 0; scrollbar-width: none; }
.agenda-filters::-webkit-scrollbar { display: none; }
.agenda-filters .chip { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.month { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto clamp(40px, 6vw, 80px); }
.month__t { font: italic 400 var(--fs-2xl)/1 var(--f-display); text-transform: capitalize; margin-bottom: 1.2rem; display: flex; align-items: baseline; gap: .8rem; }
.month__t small { font: 600 var(--fs-xs)/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.event { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.event:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.event__d { display: grid; place-content: center; text-align: center; border-radius: var(--r-md); background: var(--red); color: #fff; aspect-ratio: 1; }
.event__d b { font: 500 2rem/1 var(--f-display); }
.event__d span { font: 700 .66rem/1.2 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; }
.event__t { font: 500 var(--fs-lg)/1.15 var(--f-display); margin: 0 0 .25rem; }
.event__x { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event__img { display: none; }
.events { display: grid; gap: 12px; }
@media (min-width: 760px) {
	.events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.event { grid-template-columns: 84px 1fr 120px; }
	.event__img { display: block; border-radius: var(--r-md); overflow: hidden; }
	.event__img img { width: 100%; height: 100%; object-fit: cover; }
}
.is-hidden-f { display: none !important; }
.notice { font-size: var(--fs-xs); color: var(--muted); border-left: 2px solid var(--albero); padding-left: .8rem; }

/* ========================================================= Mapa completo */
.is-fullmap { overflow: hidden; }
.fullmap { position: relative; height: 100svh; display: block; }
.fullmap__map { position: absolute; inset: 0; overflow: hidden; }
.fullmap__map .map { position: absolute; inset: 0; }
.fullmap__side {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 44%; display: flex; flex-direction: column;
	background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .2); transition: height .5s var(--ease);
}
.fullmap__side.is-expanded { height: 86%; }
.fullmap__side.is-collapsed { height: 126px; }
.fullmap__side.is-dragging { transition: none; }
.sheet-handle { flex: none; width: 100%; height: 26px; border: 0; background: none; position: relative; touch-action: none; }
.sheet-handle::before { content: ""; position: absolute; left: 50%; top: 9px; width: 46px; height: 5px; margin-left: -23px; border-radius: 5px; background: var(--line-strong); }
.fullmap__head { padding: 0 16px 8px; touch-action: none; }
.fullmap__head h1 { font-size: var(--fs-xl); margin: 0 0 .6rem; }
.fullmap__search { display: flex; gap: .5rem; }
.fullmap__search input, .fullmap__search select { flex: 1; min-width: 0; padding: .65rem .95rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-sm); }
.fullmap__search select { flex: 0 1 42%; appearance: none; -webkit-appearance: none; }
.sectors { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 16px .5rem; scrollbar-width: none; flex: none; }
.sectors::-webkit-scrollbar { display: none; }
.sectors .chip { padding: .32rem .7rem .32rem .35rem; }
.sectors .chip img { width: 24px; height: 24px; }
.fullmap__count { padding: 0 16px 6px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin: 0; }
.fullmap__list { flex: 1; overflow-y: auto; padding: 0 8px 20px; overscroll-behavior: contain; }
.place { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-md); text-decoration: none; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.place:hover, .place.is-active { background: var(--surface); }
.place img { width: 44px; height: 44px; }
.place__t { font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; display: block; }
.place__s { font-size: var(--fs-xs); color: var(--muted); display: block; }
.place__z { font-size: .68rem; color: var(--muted); white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.map-top { position: absolute; z-index: 8; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: .5rem; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-top .topbar__pill { width: auto; }
.map-tools { position: absolute; z-index: 5; right: 12px; top: 74px; display: grid; gap: .4rem; }
.map-tools .icon-btn { box-shadow: var(--sh-1); }
.map-tools .icon-btn[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.map-marker { width: 38px; height: 38px; cursor: pointer; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); transition: transform .25s var(--ease); }
.map-marker:hover, .map-marker.is-active { transform: scale(1.25); z-index: 3; }
.maplibregl-popup-content { border-radius: 12px; font-family: var(--f-ui); }
@media (min-width: 900px) {
	.fullmap { display: grid; grid-template-columns: 420px minmax(0, 1fr); grid-template-rows: 100svh; }
	.fullmap__side { min-height: 0; overflow: hidden; }
	.fullmap__map { position: relative; }
	.fullmap__side { position: relative; height: auto !important; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line); padding-top: 84px; }
	.sheet-handle { display: none; }
	.map-top { right: auto; width: calc(420px - 24px); }
	.map-tools { top: 14px; }
}

/* ========================================================= Comercio local */
.sector-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.sector { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.sector:hover { transform: translateY(-3px); border-color: var(--c, var(--red)); }
.sector img { width: 52px; height: 52px; }
.sector b { display: block; font-weight: 600; }
.sector span { font-size: var(--fs-xs); color: var(--muted); }
.split { width: min(100% - 2 * var(--pad), var(--maxw)); margin: clamp(40px, 6vw, 90px) auto; display: grid; gap: clamp(20px, 4vw, 60px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.band { background: var(--ink); color: #fff; --accent: #FF4A55; padding: clamp(48px, 8vw, 120px) 0; }
.band .muted { color: rgba(255, 255, 255, .7); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat b { display: block; font: 400 var(--fs-3xl)/1 var(--f-display); color: var(--accent); }
.stat span { font-size: var(--fs-sm); }

/* =============================================================== Comercio */
.biz { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto clamp(40px, 6vw, 80px); display: grid; gap: var(--gap); }
.biz__card { padding: clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.biz__icon { width: 84px; height: 84px; margin-bottom: 1rem; }
.biz__card h1 { font-size: var(--fs-2xl); }
.biz__rows { display: grid; gap: .6rem; margin: 1.2rem 0; }
.biz__rows a, .biz__rows span { display: inline-flex; gap: .5rem; align-items: center; }
.biz__map { min-height: 340px; border-radius: var(--r-xl); overflow: hidden; position: relative; }
.biz__map .map { position: absolute; inset: 0; }
@media (min-width: 900px) { .biz { grid-template-columns: 1fr 1.2fr; } }

/* =========================================================== Mensajes */
.love-form { width: min(100% - 2 * var(--pad), 760px); margin: 0 auto clamp(40px, 6vw, 80px); padding: clamp(20px, 4vw, 40px); border-radius: var(--r-xl); background: var(--ink); color: #fff; display: grid; gap: .9rem; position: relative; overflow: hidden; }
.love-form::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(227, 9, 23, .5), transparent 60%); pointer-events: none; }
.love-form .row { display: grid; gap: .9rem; }
@media (min-width: 640px) { .love-form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; }
.field input, .field textarea, .field select { width: 100%; padding: .85rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font-size: var(--fs-md); font-weight: 400; letter-spacing: 0; }
.love-form .field input, .love-form .field textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.4em; font-size: var(--fs-sm); margin: 0; }
.form-msg.is-err { color: #FF8A92; }
.wall { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto clamp(48px, 8vw, 120px); columns: 1; column-gap: 14px; }
@media (min-width: 640px) { .wall { columns: 2; } }
@media (min-width: 1024px) { .wall { columns: 3; } }
.note { break-inside: avoid; margin: 0 0 14px; padding: 22px 22px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.note:nth-child(3n+2) { background: #FFF1F3; }
.note:nth-child(5n+3) { background: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note:nth-child(3n+2) { background: #2a1518; } }
.note p { font: italic 400 var(--fs-lg)/1.3 var(--f-display); margin: 0 0 .8rem; }
.note footer { font-size: var(--fs-xs); opacity: .75; display: flex; justify-content: space-between; gap: .5rem; }
.note .script { font-size: 1.05rem; opacity: 1; color: var(--red); }
.note.is-new { animation: pop .8s var(--ease); outline: 2px solid var(--red); }

/* ================================================================ Blog */
.feature { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto clamp(30px, 5vw, 60px); display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.feature__img { aspect-ratio: 16/10; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.04); }
.feature__b { padding: clamp(20px, 4vw, 48px); align-self: center; }
.feature__b h2 { font-size: var(--fs-2xl); font-weight: 400; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.3fr 1fr; } .feature__img { aspect-ratio: auto; min-height: 460px; } }
.cats { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto 1.4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.post-head { width: min(100% - 2 * var(--pad), 980px); margin: clamp(24px, 5vw, 64px) auto 1.6rem; }
.post-head h1 { font-size: var(--fs-3xl); font-weight: 400; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.post-cover { width: min(100% - 2 * var(--pad), 1200px); margin: 0 auto clamp(24px, 4vw, 56px); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.pagination { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 2rem auto 4rem; display: flex; gap: .4rem; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--line-strong); text-decoration: none; padding: 0 .8rem; }
.pagination .current { background: var(--fg); color: var(--bg); }
.cta-insta { width: min(100% - 2 * var(--pad), var(--readw)); margin: 3rem auto; padding: 22px; border-radius: var(--r-lg); display: flex; gap: 1rem; align-items: center; background: linear-gradient(135deg, rgba(245, 133, 41, .12), rgba(221, 42, 123, .12), rgba(81, 91, 212, .12)); border: 1px solid var(--line); }
.cta-insta p { margin: 0; }

/* =============================================================== Pie */
.foot { background: var(--ink); color: #F3ECE4; padding: clamp(48px, 8vw, 110px) 0 24px; margin-top: clamp(48px, 8vw, 120px); --accent: #FF4A55; }
.foot a { text-decoration: none; }
.foot__big { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.4rem; }
.foot__claim { margin: 0; font-size: clamp(3rem, 1.6rem + 7vw, 8.5rem); line-height: .9; }
.foot__claim .script { color: var(--red); font-size: .5em; display: inline-block; transform: translateY(-.2em); }
.foot__grid { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot__grid nav { display: grid; gap: .55rem; align-content: start; font-size: var(--fs-sm); }
.foot__grid nav a { opacity: .8; }
.foot__grid nav a:hover { opacity: 1; color: var(--red); }
.foot__h { font: 600 var(--fs-xs)/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin: 0 0 .6rem; }
.foot__about { font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); max-width: 32ch; margin-top: 1rem; }
.foot__alcentro { display: inline-block; margin-bottom: 1rem; }
.foot__alcentro img { width: 180px; }
.foot__inst { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding: 1.6rem 0; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }
.foot__inst img { height: 34px; width: auto; }
.foot__legal { width: min(100% - 2 * var(--pad), var(--maxw)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: var(--fs-xs); color: rgba(255, 255, 255, .55); }
.foot__legal a:hover, .foot__legal button:hover { color: #fff; }
.foot .btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ============================================================ Consent */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-width: 420px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: var(--sh-2); border: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-sm); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .8rem; }
.consent__btns { display: flex; gap: .5rem; justify-content: flex-end; }
.consent .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ========================================================== Revelados */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.split-w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--w) * 60ms); }
.is-split .split-w > span { transform: none; }

/* 404 */
.lost { min-height: 80svh; display: grid; place-content: center; text-align: center; padding: var(--pad); }
.lost h1 { font-size: var(--fs-4xl); font-style: italic; font-weight: 300; }
.lost .script { color: var(--red); font-size: var(--fs-xl); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	[data-reveal], .tile { opacity: 1; transform: none; }
	.split-w > span { transform: none; }
}
@media print { .topbar, .menu, .consent, .foot { display: none; } }

/* Ajustes */
html:has(body.is-bento) { background: var(--ink); }
.prose--flush > *, .prose--plain > * { width: auto; }
.prose--plain { width: min(100% - 2 * var(--pad), var(--readw)); margin-inline: auto; }
.prose--flush > p:first-of-type::first-letter, .prose--plain > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.place__heart { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.2rem; }
.route__list .prose--flush { font-size: var(--fs-md); }
.tile__in--top { padding-bottom: 8px; }
.tile--love .tile__more { margin-top: 8px; color: rgba(255, 255, 255, .85); }
.tile--love .tile__more .i { color: var(--red); }
@media (min-width: 1024px) and (min-height: 620px) {
	.tile--socio { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 12px 52px 12px 16px; }
	.tile--socio .tile__go--static { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) scale(.85); }
	.tile--love .love-rot__item p { -webkit-line-clamp: 3; }
}
.tile__media .minimap, .visit__map .map, .biz__map .map, .route__map .map, .fullmap__map .map { position: absolute; inset: 0; }
@media (max-width: 1023px) { .love-rot { min-height: 110px; } }
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 760px) {
	.tile--blog .kicker { display: none; }
	.tile--blog .tile__t--sm { font-size: clamp(1.1rem, .8rem + .6vw, 1.35rem); }
}
@media (min-width: 1024px) and (min-height: 1000px) {
	.mini-agenda li:nth-child(4) { display: block; }
}

/* Filtro de sectores: neutro por defecto, el elegido invertido con aro de su color */
.sectors__l { display: none; margin: .7rem 16px 0; font: 600 var(--fs-xs)/1 var(--f-ui); color: var(--muted); }
.sectors { padding-right: 32px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.sectors .chip { flex: none; min-height: 38px; padding: .3rem .75rem .3rem .4rem; background: var(--surface); color: var(--fg); border-color: var(--line-strong); transition: background .2s, color .2s, box-shadow .2s; }
.sectors .chip[data-all] { padding-left: .85rem; }
.sectors .chip small { font: 500 var(--fs-xs)/1 var(--f-ui); color: var(--muted); }
.sectors .chip:hover { border-color: var(--fg); }
.sectors .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c, var(--fg)); }
.sectors .chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
@media (min-width: 900px) {
	.sectors__l { display: block; }
	.sectors { flex-wrap: wrap; overflow: visible; padding: .6rem 16px .8rem; -webkit-mask-image: none; mask-image: none; }
}

/* Popup del mapa: encima del punto */
.stq-pop { z-index: 6; }
.stq-pop .maplibregl-popup-content { padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--fg); box-shadow: var(--sh-2); font-family: var(--f-ui); }
.stq-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--surface); }
.stq-pop .maplibregl-popup-close-button { width: 28px; height: 28px; top: 4px; right: 4px; font-size: 18px; color: var(--muted); border-radius: 50%; }
.pop__h { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding-right: 18px; }
.pop__h img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.pop h2 { font: 600 var(--fs-sm)/1.2 var(--f-ui); letter-spacing: 0; margin: 0 0 .15rem; }
.pop p { font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); margin: 0; }
.pop__a { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.pop__a .btn { padding: .45rem .7rem; }
.pop__a .btn--ghost { color: var(--fg); }

/* Contact Form 7 */
.love-form .wpcf7-form { display: grid; gap: .9rem; position: relative; }
.love-form .hidden-fields-container { display: none; }
.wpcf7-form-control-wrap { display: block; }
.love-form select { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.love-form select option { color: #1A1414; }
.love-form .wpcf7-list-item { margin: 0; }
.love-form .wpcf7-list-item label { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); }
.love-form .wpcf7-list-item a { color: #fff; }
.love-form .wpcf7-submit { justify-self: start; border: 0; cursor: pointer; }
.love-form .wpcf7-submit:disabled { opacity: .5; }
.wpcf7-not-valid-tip { display: block; margin-top: .3rem; font-size: var(--fs-xs); font-weight: 500; color: #FF8A92; }
.wpcf7-response-output { margin: 0; font-size: var(--fs-sm); }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.aborted .wpcf7-response-output, .wpcf7-form.spam .wpcf7-response-output { color: #FF8A92; }
.wpcf7-spinner { display: none; }
.wpcf7-form.submitting .wpcf7-spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: stq-spin .8s linear infinite; }
@keyframes stq-spin { to { transform: rotate(360deg); } }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.love-empty { font: italic 400 var(--fs-lg)/1.3 var(--f-display); margin: 0; color: rgba(255, 255, 255, .85); }

/* Los avisos de error no mueven el formulario: si el botón salta al desaparecer un aviso, el clic en "Enviar" se pierde. */
.love-form .wpcf7-form, .love-form .row { row-gap: 1.55rem; }
.wpcf7-form-control-wrap { position: relative; }
.wpcf7-not-valid-tip { position: absolute; left: 2px; right: 0; top: 100%; margin-top: 3px; font-size: .7rem; line-height: 1.15; }
.field textarea { height: 150px; min-height: 110px; }
.field select { line-height: 1.65; }
