/* Metro: señalética, azulejo y plano */
:root {
  --tile: #f3f6f8;
  --grout: #dfe6ea;
  --paper: #ffffff;
  --ink: #141e55;
  --ink-2: #36416f;
  --ink-3: #555f86;
  --rule: #cdd5e1;
  --yellow: #ffcd00;
  --corr: #c2561a;
  --guimard: #2d5a43;
  --cream: #f1e7c4;
  --r-plate: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-plate: 0 1px 2px rgb(20 30 85 / 0.10), 0 6px 18px -6px rgb(20 30 85 / 0.22);
  --shadow-lift: 0 2px 4px rgb(20 30 85 / 0.10), 0 18px 40px -14px rgb(20 30 85 / 0.35);
  --font: "Albert Sans", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 88px;
  scrollbar-color: var(--ink) var(--tile);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--tile);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23f5f8fa'/%3E%3Cstop offset='1' stop-color='%23f0f3f5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='120' height='60' fill='%23eaeef1'/%3E%3Crect x='1' y='1' width='118' height='28' rx='5' fill='url(%23g)'/%3E%3Crect x='-59' y='31' width='118' height='28' rx='5' fill='url(%23g)'/%3E%3Crect x='61' y='31' width='118' height='28' rx='5' fill='url(%23g)'/%3E%3C/svg%3E");
  background-size: 132px 66px;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.1; }
p, li, figcaption, blockquote, summary { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2.5rem, 1320px); margin-inline: auto; }
section { position: relative; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-plate); }
.skip-link:focus { top: 1rem; }

.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.h2--inv { color: #fff; }
.lede { margin-top: 1rem; max-width: 58ch; color: var(--ink-2); font-size: 1.125rem; }

/* Buttons: placas */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font: 700 1.0625rem/1 var(--font); letter-spacing: -0.005em;
  border-radius: var(--r-plate); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.btn:active { transform: scale(0.96); }
.btn i { font-size: 1.15em; }
.btn--ink { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px rgb(255 255 255 / .9), var(--shadow-plate); }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-plate); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--sm { min-height: 44px; padding: .6rem 1.05rem; font-size: 1rem; }
.btn--line { background: var(--ink); color: #fff; margin-top: 1.5rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover, .btn--line:hover { background: #22307a; }
  .btn--ghost:hover { background: var(--yellow); }
  .btn--yellow:hover { background: #fff; }
}

/* Line bullets */
.bullet {
  --c: var(--ink); --on: #fff;
  display: inline-grid; place-items: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--c); color: var(--on);
  font: 800 .95rem/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.bullet--lg { width: 3.25rem; height: 3.25rem; font-size: 1.5rem; }

.plaque {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .01em;
  border-radius: var(--r-plate);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px #fff, var(--shadow-plate);
  padding: .55rem 1.1rem;
}

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .94); box-shadow: 0 1px 0 var(--rule); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgb(255 255 255 / .82); backdrop-filter: blur(10px) saturate(1.2); } }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; }
.logo__plate {
  background: var(--cream); color: var(--guimard);
  padding: .3rem .85rem .35rem; border-radius: 999px 999px 10px 10px / 18px 18px 10px 10px;
  box-shadow: inset 0 0 0 2px var(--guimard), inset 0 0 0 4px var(--cream), inset 0 0 0 5px rgb(45 90 67 / .5);
}
.logo__word { font-family: "Macondo", var(--font); font-size: 1.2rem; line-height: 1.15; white-space: nowrap; }
.logo__sig { font-size: .72rem; font-weight: 600; color: var(--ink-3); padding-left: .9rem; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-weight: 600; text-decoration: none; padding: .7rem 0; display: inline-block; background: linear-gradient(var(--ink), var(--ink)) left 88% / 0 2px no-repeat; transition: background-size 220ms var(--ease-out); }
@media (hover: hover) { .nav ul a:hover { background-size: 100% 2px; } }
.menu-btn { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; min-height: min(calc(100dvh - 72px), 780px); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero__t { font-size: clamp(2.9rem, 1.2rem + 5.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.plate-word {
  display: inline-block; background: var(--ink); color: #fff; padding: .02em .22em .08em; margin-top: .08em;
  border-radius: 10px; box-shadow: inset 0 0 0 .06em var(--ink), inset 0 0 0 .1em #fff, var(--shadow-lift);
}
.hero__sub { margin-top: 1.6rem; max-width: 34ch; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--ink-2); line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
.hmap { width: 100%; height: 100%; overflow: visible; }
.hl { fill: none; stroke: var(--c); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.hs { fill: #fff; stroke: var(--ink); stroke-width: 3.5; }
.hhub path { stroke: var(--ink); stroke-width: 30; stroke-linecap: round; }
.hhub .hhub__in { stroke: #fff; stroke-width: 22; }
.hero__cite { position: absolute; left: 60%; top: 36%; font-size: 1.05rem; padding: .45rem .95rem; }
.hero__photo {
  position: absolute; left: -2%; bottom: 3%; width: 46%; margin: 0;
  background: var(--ink); padding: 7px; border-radius: 9px; box-shadow: var(--shadow-lift);
}
.hero__photo img { border-radius: 3px; aspect-ratio: 4 / 3; object-fit: cover; outline: 1px solid rgb(255 255 255 / .12); outline-offset: -1px; }

@media (prefers-reduced-motion: no-preference) {
  .hl { stroke-dasharray: 1; animation: draw 1100ms var(--ease-in-out) both; animation-delay: calc(150ms + var(--i) * 110ms); }
  .hs { animation: pop 380ms var(--ease-out) both; animation-delay: calc(900ms + var(--i) * 40ms); transform-box: fill-box; transform-origin: center; }
  .hhub, .hero__cite { animation: fade 420ms var(--ease-out) both; animation-delay: 1000ms; }
  .hero__photo { animation: rise 700ms var(--ease-out) both; animation-delay: 500ms; }
  .intro-played .hl { animation-delay: calc(1250ms + var(--i) * 110ms); }
  .intro-played .hs { animation-delay: calc(2000ms + var(--i) * 40ms); }
  .intro-played .hhub, .intro-played .hero__cite { animation-delay: 2100ms; }
  .intro-played .hero__photo { animation-delay: 1500ms; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Intro: puertas de vagón */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 90; animation: intro-out 220ms linear 1500ms forwards; cursor: pointer; }
.intro__car { position: absolute; inset: 0; display: flex; }
.intro__leaf {
  width: 50%; height: 100%; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #d9dfe5, #eef2f5 45%, #d4dbe2);
  animation-duration: 820ms; animation-timing-function: var(--ease-in-out); animation-delay: 620ms; animation-fill-mode: forwards;
}
.intro__leaf--l { animation-name: leaf-l; box-shadow: inset -7px 0 0 #2a3240; }
.intro__leaf--r { animation-name: leaf-r; box-shadow: inset 7px 0 0 #2a3240; }
.intro__win {
  position: absolute; top: 14%; bottom: 34%; left: 16%; right: 16%; border-radius: 22px;
  background: linear-gradient(160deg, #1d2a6b, #0e1640);
  box-shadow: inset 0 0 0 6px #2a3240, inset 0 0 0 9px #9aa6b4;
  display: grid; place-items: center;
}
.intro__leaf--l .intro__win span { justify-self: end; margin-right: 1.2rem; }
.intro__leaf--r .intro__win span { justify-self: start; margin-left: 1.2rem; }
.intro__win span { color: #fff; font-weight: 800; letter-spacing: -0.035em; font-size: clamp(2rem, 7vw, 6rem); animation: fade 360ms var(--ease-out) 80ms both; }
.intro__skip {
  position: absolute; right: 1.25rem; bottom: 1.25rem; min-height: 44px; padding: .6rem 1.2rem;
  font: 700 1rem/1 var(--font); color: #fff; background: var(--ink); border: 0; border-radius: var(--r-plate);
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #fff; cursor: pointer;
}
.intro__skip:active { transform: scale(.96); }
.intro__skip:focus-visible { outline-color: var(--yellow); }
.intro.is-skipped { animation: intro-out 160ms linear forwards; }
@keyframes leaf-l { to { transform: translateX(-101%); } }
@keyframes leaf-r { to { transform: translateX(101%); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

/* Dos redes */
.redes { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.redes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.75rem; }
.door { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.75rem; align-items: end; text-decoration: none; color: inherit; border-radius: 14px; }
.door--b { margin-top: clamp(0rem, 6vw, 5.5rem); }
.door__frame {
  position: relative; display: block; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 12px 12px 4px 4px;
  background: #0e1640; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1), 0 0 0 8px #c8d0d8, 0 0 0 10px var(--ink), var(--shadow-lift);
}
.door__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door__leaf {
  position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden;
  transition: transform 620ms var(--ease-in-out);
}
.door__leaf--l { left: 0; transform: translateX(-14%); box-shadow: inset -5px 0 0 #2a3240; }
.door__leaf--r { right: 0; transform: translateX(14%); box-shadow: inset 5px 0 0 #2a3240; }
.door__win {
  position: absolute; top: 9%; bottom: 36%; left: 18%; right: 18%; border-radius: 16px;
  box-shadow: 0 0 0 400px #dfe5ea, inset 0 0 0 4px #2a3240, inset 0 0 0 6px #9aa6b4;
  background: linear-gradient(160deg, rgb(255 255 255 / .18), rgb(20 30 85 / .15) 60%);
}
@media (hover: hover) and (pointer: fine) {
  .door:hover .door__leaf--l { transform: translateX(-72%); }
  .door:hover .door__leaf--r { transform: translateX(72%); }
}
.door:focus-visible .door__leaf--l { transform: translateX(-72%); }
.door:focus-visible .door__leaf--r { transform: translateX(72%); }
.door:active .door__frame { transform: scale(.985); }
.door__txt { display: flex; flex-direction: column; gap: .6rem; padding-bottom: .5rem; }
.door__h { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.door__net { align-self: flex-start; background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem; padding: .3rem .7rem; border-radius: var(--r-plate); }
.door__p { color: var(--ink-2); text-wrap: pretty; }
.door__bullets { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }

/* Plano */
.plano { padding-block: clamp(3rem, 6vw, 5rem); }
.plano__head { max-width: 760px; }
.plano__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2.25rem; align-items: start; }
.plano__mapcol { position: sticky; top: 88px; }
.net { display: inline-flex; padding: 4px; gap: 4px; background: var(--paper); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-plate); }
.net__b {
  min-height: 44px; padding: .5rem 1.1rem; border: 0; border-radius: var(--r-plate); cursor: pointer;
  font: 700 1rem/1 var(--font); color: var(--ink); background: transparent;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.net__b[aria-pressed="true"] { background: var(--ink); color: #fff; }
.net__b:active { transform: scale(.96); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.js .plano[data-net="abc"] .chips[data-net="tem"], .js .plano[data-net="tem"] .chips[data-net="abc"] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .3rem .95rem .3rem .3rem;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--paper); color: var(--ink);
  font: 600 .95rem/1.15 var(--font); text-align: left;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: box-shadow 180ms ease, background-color 180ms ease, transform 160ms var(--ease-out);
}
.chip .bullet { width: 2.1rem; height: 2.1rem; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--ink), var(--shadow-plate); }
@media (hover: hover) { .chip:hover { box-shadow: inset 0 0 0 2px var(--ink); } }
.chip__t { max-width: 22ch; }

.plano__map {
  margin-top: 1.25rem; background: var(--paper); border-radius: 12px; padding: clamp(.5rem, 1.5vw, 1.25rem);
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-plate);
}
.plano__svg { width: 100%; height: auto; display: block; }
.seine { fill: none; stroke: #d3e6f1; stroke-width: 30; stroke-linecap: round; }
.seine-label { font: italic 600 15px var(--font); fill: #6d93ad; letter-spacing: .08em; }
.ml { cursor: pointer; transition: opacity 260ms ease; }
.ml__path { fill: none; stroke: var(--c); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.ml__case { fill: none; stroke: #fff; stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; }
.ml__hit { fill: none; stroke: transparent; stroke-width: 34; stroke-linecap: round; }
.st circle { fill: #fff; stroke: var(--ink); stroke-width: 3.5; transition: r 220ms var(--ease-out); }
.st text { font: 700 16px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.plano[data-active] .ml:not(.is-active) { opacity: .2; }
.plano[data-active] .ml:not(.is-active).is-peek { opacity: .6; }
.ml.is-active .st circle { r: 9; }
.ml.is-active .st text { opacity: 1; }
.no-js-labels .st text { opacity: 1; }
.hub circle { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.hub rect { fill: var(--ink); }
.hub text { font: 800 15px var(--font); fill: #fff; text-anchor: middle; }
.ml.is-active.ml--ping .ml__path { animation: ping 520ms var(--ease-out); }
@keyframes ping { from { stroke-width: 18; } }

.fichas { display: grid; gap: 1.5rem; }
.ficha {
  background: var(--paper); border-radius: 12px; padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-plate);
}
.js .ficha:not(.is-active) { display: none; }
.ficha.is-enter { animation: ficha-in 320ms var(--ease-out); }
@keyframes ficha-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.ficha__head { display: flex; gap: 1rem; align-items: flex-start; margin-top: .4rem; }
.ficha__head h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); font-weight: 800; letter-spacing: -0.025em; }
.ficha__meta { margin-top: .4rem; color: var(--ink-3); font-weight: 600; font-size: .95rem; }
.ficha__fig { margin: 1.25rem 0 0; }
.ficha__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-plate); outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.ficha__quote { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.ficha__sth { margin-top: 1.5rem; font-size: 1rem; font-weight: 700; color: var(--ink-3); }
.strip { list-style: none; margin: .75rem 0 0; padding: 0; position: relative; }
.strip::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 8px; border-radius: 4px; background: var(--c); }
.strip li { position: relative; padding: .3rem 0 .3rem 2.25rem; font-weight: 600; }
.strip li::before { content: ""; position: absolute; left: 5px; top: .62rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3.5px var(--ink); }
.strip li:first-child, .strip li:last-child { font-weight: 800; }
.ficha.is-enter .strip li { animation: fade 300ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 50ms); }

/* A medida */
.obras { padding-block: clamp(2rem, 5vw, 4rem); }
.obras__plate {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: center;
  background: var(--ink); color: #fff; border-radius: 14px; padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: inset 0 0 0 6px var(--ink), inset 0 0 0 9px rgb(255 255 255 / .85), var(--shadow-lift);
  overflow: hidden;
}
.obras__plate::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
}
.obras__p { margin-top: 1rem; font-size: 1.25rem; line-height: 1.45; color: #fff; max-width: 34ch; }
.obras__tags { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.obras__tags li { padding: .35rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); font-weight: 600; font-size: .95rem; }
.obras__svg { width: 100%; height: auto; overflow: visible; }
.obras__track { fill: none; stroke: rgb(255 255 255 / .22); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .03 .02; }
.obras__draw { fill: none; stroke: var(--yellow); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: .38; }
.obras__svg circle { fill: var(--ink); stroke: #fff; stroke-width: 4; }
.obras__svg circle.obras__q { stroke-dasharray: 4 4; stroke: rgb(255 255 255 / .7); }
.obras__svg text { font: 700 17px var(--font); fill: #fff; }
.obras__note { position: absolute; right: clamp(1.75rem, 4vw, 3.5rem); bottom: 2rem; font-size: .9rem; color: #c9cfe6; font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .js .obras__draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease-in-out) 200ms; }
  .js .obras.is-in .obras__draw { stroke-dashoffset: .38; }
}

/* Correspondencia */
.corr { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.corr__tabs { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.plaque--tab {
  min-height: 52px; padding: .6rem 1.3rem; border: 0; cursor: pointer; font: 700 1.15rem/1 var(--font);
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-plate);
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.plaque--tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px #fff, var(--shadow-plate); }
.plaque--tab:active { transform: scale(.96); }
.corr__stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2rem; align-items: center; }
.corr__diagram { position: relative; background: var(--paper); border-radius: 12px; padding: 3.5rem 0 1.5rem; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-plate); overflow: hidden; }
.corr__diagram svg { width: 100%; height: auto; display: block; }
.cl { fill: none; stroke-width: 20; stroke-linecap: butt; stroke-linejoin: round; transition: opacity 260ms ease, stroke-width 260ms var(--ease-out), stroke 260ms ease; cursor: pointer; }
.cl[data-idx="0"] { stroke: var(--l0, #704B1C); }
.cl[data-idx="1"] { stroke: var(--l1, #003CA6); }
.cl[data-idx="2"] { stroke: var(--l2, #FF7E2E); }
.corr__diagram[data-sel] .cl { opacity: .22; }
.corr__diagram[data-sel="0"] .cl[data-idx="0"], .corr__diagram[data-sel="1"] .cl[data-idx="1"], .corr__diagram[data-sel="2"] .cl[data-idx="2"] { opacity: 1; stroke-width: 26; }
.cap { fill: #fff; stroke: var(--ink); stroke-width: 7; }
.corr__name { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); font-size: 1.1rem; white-space: nowrap; }
.corr__panels { display: grid; }
.js .corr__panel:not(.is-active) { display: none; }
.corr__panel + .corr__panel { margin-top: 2rem; }
.js .corr__panel + .corr__panel { margin-top: 0; }
.corr__lines { display: flex; flex-wrap: wrap; gap: .5rem; }
.lchip {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem 1rem .45rem .5rem;
  border: 0; border-radius: 999px; cursor: pointer; font: 700 1rem/1 var(--font);
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.lchip__sw { width: 1.6rem; height: .7rem; border-radius: 999px; background: var(--c); }
.lchip[aria-pressed="true"] { background: var(--c); color: var(--on); box-shadow: none; }
.lchip[aria-pressed="true"] .lchip__sw { background: currentColor; opacity: .5; }
.lchip:active { transform: scale(.96); }
.corr__board { margin-top: 1.25rem; display: grid; }
.tale { padding: 1.5rem 1.6rem 1.75rem; background: var(--paper); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-plate); }
.js .tale { grid-area: 1 / 1; transition: opacity 240ms ease, transform 240ms var(--ease-out), filter 240ms ease; }
.js .tale:not(.is-on) { opacity: 0; transform: translateY(6px); filter: blur(3px); pointer-events: none; visibility: hidden; }
.tale + .tale { margin-top: 1rem; }
.js .tale + .tale { margin-top: 0; }
.tale__h { font-size: 1rem; }
.tale__pill { display: inline-block; background: var(--c); color: var(--on); padding: .3rem .8rem; border-radius: 999px; font-size: .95rem; font-weight: 800; }
.tale__t { margin-top: 1rem; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }

/* Sobre mí */
.yo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(4rem, 8vw, 7rem); }
.yo__frames { position: relative; padding-bottom: 12%; }
.poster { margin: 0; background: #1b1f2a; padding: 10px; border-radius: 8px; box-shadow: inset 0 0 0 2px #3b4152, var(--shadow-lift); }
.poster--guide { width: 78%; }
.poster__slot {
  aspect-ratio: 4 / 5; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .5rem; padding-top: 22% !important;
  background: repeating-linear-gradient(0deg, #edf1f4 0 35px, #dde4e9 35px 36px), #edf1f4; color: var(--ink-2); text-align: center; padding: 1rem;
}
.poster__slot i { font-size: 2.6rem; color: var(--ink); }
.poster__slot-t { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.poster__slot-s { font-size: .9rem; font-weight: 600; background: var(--yellow); color: var(--ink); padding: .2rem .6rem; border-radius: var(--r-plate); }
.poster--dog { position: absolute; right: 0; bottom: 0; width: 48%; background: var(--ink); }
.poster__img { border-radius: 3px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.poster--grupo { margin-top: 2.25rem; max-width: 900px; }
.poster--grupo img { border-radius: 3px; width: 100%; height: auto; }
.poster--grupo figcaption { color: #fff; font-size: .9rem; font-weight: 600; padding: .6rem .3rem .2rem; }
.poster--dog img { border-radius: 3px; aspect-ratio: 1; object-fit: cover; }
.poster--dog figcaption { color: #fff; font-size: .85rem; font-weight: 600; padding: .6rem .3rem .2rem; line-height: 1.3; }
.yo__copy { max-width: 60ch; }
.yo__lead { margin-top: 1.25rem; font-size: 1.35rem; line-height: 1.4; font-weight: 600; }
.yo__copy p + p { margin-top: 1rem; color: var(--ink-2); }
.yo__dog { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--paper); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); margin-top: 1.5rem !important; }
.yo__dog i { font-size: 1.5rem; color: var(--ink); flex: none; margin-top: .1rem; }

/* Cómo son */
.como { padding-block: clamp(3rem, 6vw, 5rem); }
.como__line { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.como__line::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 10px; border-radius: 5px; background: var(--ink);
  transform-origin: left;
}
.como__line li { position: relative; padding: 2.75rem 1.5rem 0 0; }
.como__line li::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px var(--ink); }
.como__line li:first-child::before, .como__line li:last-child::before { width: 32px; height: 32px; box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 10px #fff, inset 0 0 0 16px var(--yellow); }
.como__line h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.como__line p { margin-top: .5rem; color: var(--ink-2); max-width: 26ch; }
.como__line li:last-child { padding-right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .como__line::before { transform: scaleX(0); transition: transform 1200ms var(--ease-in-out); }
  .js .como.is-in .como__line::before { transform: scaleX(1); }
}

/* Berlín */
.berlin { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.berlin__sign { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08), var(--shadow-lift); min-width: 280px; }
.berlin__corr { display: flex; align-items: center; gap: .6rem; background: var(--corr); color: #fff; font-weight: 800; font-size: 1.2rem; padding: .9rem 1.2rem; }
.berlin__corr i { font-size: 1.4rem; }
.berlin__dir { background: var(--ink); color: #fff; font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; padding: .6rem 1.2rem .8rem; }
.berlin__copy p { margin-top: .9rem; font-size: 1.25rem; color: var(--ink-2); max-width: 44ch; }

/* Billetes */
.billetes { padding-block: clamp(3rem, 6vw, 5rem); }
.billetes__row { display: flex; gap: 2rem; margin-top: 2.25rem; flex-wrap: wrap; }
.ticket {
  position: relative; margin: 0; width: min(100%, 460px); aspect-ratio: 66 / 30; padding: 1.4rem 1.6rem 1.2rem;
  background: #f6f3e9; border-radius: 6px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08), var(--shadow-plate);
  overflow: hidden;
}
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 16%; background: #6b4a2e; opacity: .88; }
.ticket blockquote { margin: 0; }
.ticket blockquote p { font-size: 1.1rem; font-weight: 600; line-height: 1.35; max-width: 30ch; }
.ticket figcaption { position: relative; z-index: 1; align-self: flex-end; }
.ticket__stamp { display: inline-block; color: #62259D; border: 2px solid #62259D; border-radius: 4px; padding: .15rem .5rem; font-weight: 800; font-size: .8rem; letter-spacing: .04em; transform: rotate(-4deg); background: #f6f3e9; }
.ticket--b { margin-top: 2.5rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem); align-items: start; }
.faq__list { background: var(--paper); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-plate); padding: .5rem 1.5rem; }
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding: .9rem 0; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11h10M11 6v10' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.2rem 0; color: var(--ink-2); }

/* Contacto */
.contacto { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(4rem, 8vw, 6.5rem) clamp(4rem, 8vw, 7rem); align-items: start; }
.canales { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; }
.canales a { display: flex; align-items: center; gap: .9rem; min-height: 60px; padding: .7rem 1rem; background: var(--paper); border-radius: 10px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 180ms ease, transform 160ms var(--ease-out); }
.canales a:active { transform: scale(.98); }
@media (hover: hover) { .canales a:hover { box-shadow: inset 0 0 0 2px var(--ink); } }
.canales i { font-size: 1.6rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; flex: none; }
.canales b { display: block; font-size: 1rem; }
.canales span span { color: var(--ink-3); font-size: .95rem; }
.contacto__form { background: var(--paper); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-lift); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.f { display: flex; flex-direction: column; gap: .4rem; grid-column: 1 / -1; min-width: 0; }
.f--half { grid-column: auto; }
fieldset.f { border: 0; padding: 0; margin: 0; }
label, legend { font-weight: 700; font-size: .98rem; }
legend { padding: 0; margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: 500 1rem/1.4 var(--font); color: var(--ink);
  background: #f7f9fb; border: 1.5px solid #8e97b3; border-radius: var(--r-plate);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; caret-color: var(--ink);
}
textarea { resize: vertical; min-height: 130px; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--yellow); }
.f.has-err input, .f.has-err textarea { border-color: #b3261e; }
.f__err { color: #b3261e; font-size: .92rem; font-weight: 600; min-height: 0; }
.f__err:empty { display: none; }
.f__help { color: var(--ink-3); font-size: .88rem; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; font-weight: 600; box-shadow: inset 0 0 0 1.5px #8e97b3; background: #f7f9fb; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.radio input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form__note { color: var(--ink-3); font-size: .9rem; }
.form__ok { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 0; font-size: 1.35rem; font-weight: 700; }
.form__ok[hidden] { display: none; }
.form__ok:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { .form__ok:not([hidden]) { animation: rise 420ms var(--ease-out); } }

/* Footer */
.foot { background: var(--ink); color: #fff; padding-block: 3rem; }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.foot__sig { font-weight: 700; font-size: 1.15rem; }
.foot__bullets { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.foot__bullets .bullet { width: 1.7rem; height: 1.7rem; font-size: .8rem; }
.foot__links { grid-column: 1 / -1; list-style: none; padding: 1.25rem 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; border-top: 1px solid rgb(255 255 255 / .2); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot :focus-visible { outline-color: var(--yellow); }

/* Responsive */
@media (max-width: 1080px) {
  .door { grid-template-columns: 1fr; align-items: start; }
  .door__frame { max-width: 380px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero__art { justify-self: center; max-width: 520px; }
  .plano__grid { grid-template-columns: 1fr; }
  .plano__mapcol { position: static; }
  .obras__plate { grid-template-columns: 1fr; padding-bottom: 4rem; }
  .corr__stage { grid-template-columns: 1fr; }
  .yo { grid-template-columns: 1fr; }
  .yo__frames { max-width: 520px; }
  .faq, .contacto { grid-template-columns: 1fr; }
  .como__line { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .como__line::before { display: none; }
}
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem; border: 0; border-radius: var(--r-plate);
    background: var(--ink); color: #fff; font: 700 1rem/1 var(--font); cursor: pointer;
  }
  .menu-btn:active { transform: scale(.96); }
  .menu-btn i { font-size: 1.25rem; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem; box-shadow: 0 1px 0 var(--rule), 0 20px 30px -20px rgb(20 30 85 / .35);
  }
  .js .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: flex; min-height: 48px; align-items: center; font-size: 1.15rem; border-bottom: 1px solid var(--rule); background: none; }
  .nav .btn { align-self: flex-start; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 2rem, 1320px); }
  .logo__word { font-size: 1.02rem; }
  .hero__t { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__photo { width: 50%; }
  .redes__grid { grid-template-columns: 1fr; }
  .door--b { margin-top: 0; }
  .door__frame { max-width: none; aspect-ratio: 4 / 3.6; }
  .st text { display: none; }
  .ml__path { stroke-width: 14; }
  .hub rect, .hub text { display: none; }
  .como__line { grid-template-columns: 1fr; row-gap: 0; padding-left: 0; }
  .como__line li { padding: 0 0 2rem 3.25rem; }
  .como__line li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 16px; bottom: -16px; width: 10px; background: var(--ink); z-index: -1; border-radius: 5px; }
  .berlin { grid-template-columns: 1fr; }
  .berlin__sign { min-width: 0; }
  .ticket { aspect-ratio: auto; min-height: 190px; padding-bottom: 1rem; }
  .ticket::after { bottom: 22%; height: 12%; }
  .ticket blockquote p { max-width: none; padding-bottom: 3.2rem; }
  .ticket--b { margin-top: 0; }
  form { grid-template-columns: 1fr; }
  .f--half { grid-column: 1 / -1; }
  .obras__note { position: static; margin-top: .5rem; }
  .obras__plate { padding-bottom: 2.75rem; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__bullets { justify-content: flex-start; }
  .intro__win { left: 10%; right: 10%; }
  .intro__win span { font-size: clamp(1.6rem, 9vw, 3rem); }
  .intro__leaf--l .intro__win span { margin-right: .6rem; }
  .intro__leaf--r .intro__win span { margin-left: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js .tale:not(.is-on) { transform: none; filter: none; }
}

/* VIAJES (galería de grupos) */
.viajes { padding-block: clamp(3rem, 6vw, 5rem); }
.viajes__grid { columns: 3 260px; column-gap: 1.25rem; margin-top: 2.25rem; }
.viajes__item { break-inside: avoid; margin: 0 0 1.25rem; background: #1b1f2a; padding: 8px; border-radius: 8px; box-shadow: inset 0 0 0 2px #3b4152, var(--shadow-plate); }
.viajes__item img { width: 100%; height: auto; border-radius: 3px; }
.viajes__item figcaption { color: #fff; font-size: .85rem; font-weight: 600; padding: .5rem .25rem .15rem; }
@media (max-width: 599px) { .viajes__grid { columns: 2; column-gap: .75rem; } .viajes__item { margin-bottom: .75rem; } .viajes__item figcaption { font-size: .72rem; } }

/* Datos de Laura: secciones ocultas, recorrido y paseos fijos */
[hidden] { display: none !important; }
.yo__h3 { margin-top: 2rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.yo__copy .yo__h3 + p { margin-top: .6rem; }
.yo__cv { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.yo__cv li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.yo__cv li::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--ink); }
.fijos { padding-block: clamp(3rem, 6vw, 5rem); }
.fijos__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fijos__list li { background: var(--paper); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); border-left: 8px solid var(--yellow); padding: 1.1rem 1.25rem; }
.fijos__list h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.fijos__list p { margin-top: .35rem; color: var(--ink-2); }
.fijos__list .fijos__fuera { border-left-color: var(--ink); }
.fijos__note { margin: 1.5rem 0 1.25rem; color: var(--ink-2); max-width: 60ch; }
.fijos__list h3 a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ficha__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.ficha__acts .btn { margin-top: 0; }
.ficha__mapa { font-weight: 700; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 899px) { .fijos__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .fijos__list { grid-template-columns: 1fr; } }

/* Guías de confianza en otras ciudades */
.amigas__lista { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.amigas__lista a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.amigas__mas { margin-top: .9rem; }
