@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo2-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #f7f4fd;
  --surface: #ffffff;
  --surface-2: #f1ecfb;
  --ink: #1e1633;
  --ink-2: #463d5c;
  --muted: #6b6282;
  --line: #e4dcf3;
  --brand: #6d3ae0;
  --brand-ink: #5226b8;
  --brand-soft: #ece4ff;
  --pink: #ff4f9a;
  --yellow: #ffc533;
  --ok: #1f9d5b;
  --no: #b8b2c6;

  --funkeystown: #7b46f0;
  --kelpy: #1c8cf0;
  --magma: #ef4434;
  --laputta: #23a865;
  --funkiki: #f0a800;
  --royalton: #ff7417;
  --daydream: #ff5fae;
  --nightmare: #4b2f7d;
  --hidden: #c81e33;
  --paradox: #4f9c2a;

  --r-1: #7a8aa3;
  --r-2: #2f8de4;
  --r-3: #b26cff;

  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(30, 22, 51, .06), 0 8px 24px rgba(30, 22, 51, .07);
  --shadow-lift: 0 2px 4px rgba(30, 22, 51, .08), 0 16px 36px rgba(30, 22, 51, .12);
  --gutter: 16px;
  --maxw: 1200px;
  --header-h: 64px;

  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-h1: clamp(1.85rem, 1.35rem + 2.4vw, 3.1rem);
  --fs-h2: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
  --fs-h3: clamp(1.12rem, 1.02rem + .5vw, 1.35rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body); line-height: 1.65; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); font-weight: 800; margin-top: 2.2rem; }
h3 { font-size: var(--fs-h3); font-weight: 700; margin-top: 1.6rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .3em; }
table { border-collapse: collapse; width: 100%; }
.visually-hidden { 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-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(30, 22, 51, .02);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; fill: var(--brand); }
.logo-mark .logo-face { fill: #fff; }
.logo-mark .logo-eye { fill: var(--ink); }
.logo-text { font-family: "Baloo 2", sans-serif; font-size: 1.35rem; font-weight: 600; line-height: 1; }
.logo-text strong { color: var(--brand); font-weight: 800; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 700 .95rem "Nunito", sans-serif; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.chev { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 8px; transition: transform .2s; }
[aria-expanded="true"] > .chev { transform: rotate(-135deg) translateY(-1px); }

.main-nav {
  display: none; position: fixed; z-index: 99; left: 0; right: 0; top: var(--header-h); bottom: 0;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  background: var(--surface); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  border-top: 1px solid var(--line); padding: 8px var(--gutter) calc(40px + env(safe-area-inset-bottom));
}
.main-nav.is-open { display: block; }
.no-js .main-nav { display: block; position: static; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0; border-bottom: 1px solid var(--line); }
.nav-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 52px;
  background: none; border: 0; padding: 0 4px; color: var(--ink); cursor: pointer;
  font: 800 1.1rem "Baloo 2", sans-serif;
}
.nav-panel { display: none; padding: 0 0 14px; }
.nav-btn[aria-expanded="true"] + .nav-panel { display: block; }
.mega-grid { display: grid; gap: 4px; }
.mega-col { border-radius: var(--radius-s); background: var(--surface-2); }
.mega-head { display: flex; align-items: center; justify-content: space-between; }
.mega-head a { flex: 1; padding: 12px; font-weight: 800; text-decoration: none; color: var(--ink); }
.sub-toggle { width: 48px; height: 46px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.mega-list { list-style: none; margin: 0; padding: 0 12px 12px; display: none; columns: 2; column-gap: 12px; }
.mega-col.is-open .mega-list { display: block; }
.mega-col.is-open .sub-toggle .chev { transform: rotate(-135deg) translateY(-1px); }
.mega-list li { break-inside: avoid; margin: 0; }
.mega-list a, .drop-list a { display: block; padding: 8px 6px; text-decoration: none; color: var(--ink-2); border-radius: 8px; font-weight: 600; }
.mega-list a:hover, .drop-list a:hover, .mega-list a[aria-current], .drop-list a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
.drop-list { list-style: none; margin: 0; padding: 0; }
.drop-list--islas { columns: 2; column-gap: 12px; }
.drop-list li { margin: 0; break-inside: avoid; }
.dot-link::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--c, var(--brand)); vertical-align: .05em; }
.panel-all { display: inline-block; margin-top: 10px; font-weight: 800; padding: 6px; }
.mega-col--funkeystown, .dot-link--funkeystown { --c: var(--funkeystown); }
.mega-col--funkiki, .dot-link--funkiki { --c: var(--funkiki); }
.mega-col--royalton, .dot-link--royalton { --c: var(--royalton); }
.mega-col--daydream, .dot-link--daydream { --c: var(--daydream); }
.mega-col--hidden, .dot-link--hidden { --c: var(--hidden); }
.mega-col--paradox, .dot-link--paradox { --c: var(--paradox); }
.dot-link--kelpy { --c: var(--kelpy); }
.dot-link--magma { --c: var(--magma); }
.dot-link--laputta { --c: var(--laputta); }
.dot-link--nightmare { --c: var(--nightmare); }
.mega-col { border-left: 4px solid var(--c, var(--brand)); }
body.nav-open { overflow: hidden; }

.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: var(--no); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; }

main { display: block; padding-bottom: 56px; }
.page-head { padding: 18px 0 8px; }
.eyebrow { background: var(--brand-soft); display: inline-block; font: 800 .78rem "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 12%, white); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 68ch; }
.prose { max-width: 74ch; }
.prose > ul li::marker { color: var(--c, var(--brand)); }
.section { margin-top: 8px; }

.layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; }

.infobox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 6px solid var(--c, var(--brand)); }
.infobox-title { margin: 0; padding: 14px 16px 6px; font-size: 1.35rem; text-align: center; }
.infobox figure { margin: 0; padding: 8px 16px 0; }
.infobox figure img { margin: 0 auto; width: 100%; max-width: 290px; border-radius: 12px; background: var(--surface-2); }
.infobox figcaption { font-size: .8rem; color: var(--muted); text-align: center; padding: 6px 0 2px; }
.infobox dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; }
.infobox dt, .infobox dd { margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.infobox dt { font-weight: 800; color: var(--muted); padding-right: 6px; }
.infobox dd { text-align: right; font-weight: 700; }

.cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { margin: 0; --c: var(--brand); }
.card > a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; border-bottom: 4px solid var(--c); }
.card > a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.card-img { display: block; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, white), var(--surface)); padding: 8px 8px 0; }
.card-img img { width: 100%; aspect-ratio: 290 / 406; object-fit: cover; object-position: top; border-radius: 10px; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.card-name { font: 800 1.12rem "Baloo 2", sans-serif; line-height: 1.2; }
.card-meta { font-size: .8rem; color: var(--muted); font-weight: 700; }
.card--funkeystown { --c: var(--funkeystown); } .card--kelpy { --c: var(--kelpy); } .card--magma { --c: var(--magma); }
.card--laputta { --c: var(--laputta); } .card--funkiki { --c: var(--funkiki); } .card--royalton { --c: var(--royalton); }
.card--daydream { --c: var(--daydream); } .card--nightmare { --c: var(--nightmare); } .card--hidden { --c: var(--hidden); }
.card--paradox { --c: var(--paradox); }
.c-funkeystown { --c: var(--funkeystown); } .c-kelpy { --c: var(--kelpy); } .c-magma { --c: var(--magma); } .c-laputta { --c: var(--laputta); }
.c-funkiki { --c: var(--funkiki); } .c-royalton { --c: var(--royalton); } .c-daydream { --c: var(--daydream); } .c-nightmare { --c: var(--nightmare); }
.c-hidden { --c: var(--hidden); } .c-paradox { --c: var(--paradox); }

.rdots { display: inline-flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.rdot { font: 800 .68rem "Nunito", sans-serif; padding: 2px 7px; border-radius: 999px; color: #fff; background: var(--r-1); letter-spacing: .02em; }
.rdot--1 { background: var(--r-2); }
.rdot--2 { background: var(--r-3); }
.rdot--off { background: transparent; color: var(--no); box-shadow: inset 0 0 0 1.5px var(--no); text-decoration: line-through; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag--ok { background: #dcf5e7; color: #136b3d; }
.tag--no { background: #f1eef6; color: #7a7290; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 22px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.table-wrap table { min-width: 520px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
th { background: var(--surface-2); font-weight: 800; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf8ff; }
td a { font-weight: 700; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

.callout { border-radius: var(--radius); padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--brand)); margin: 18px 0; box-shadow: var(--shadow); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font: 800 1.05rem "Baloo 2", sans-serif; margin-bottom: 6px; display: block; }
.callout--myth { --c: var(--pink); }
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; box-shadow: var(--shadow); }
.facts strong { display: block; font: 800 1.5rem "Baloo 2", sans-serif; color: var(--brand); line-height: 1.1; }
.facts span { font-size: .85rem; color: var(--muted); font-weight: 700; }

.hero { position: relative; padding: 28px 0 10px; }
.hero-box { background: linear-gradient(135deg, #6d3ae0 0%, #a347e8 45%, #ff4f9a 100%); color: #fff; border-radius: 24px; padding: 26px 20px; overflow: hidden; position: relative; box-shadow: var(--shadow-lift); }
.hero-box h1 { color: #fff; }
.hero-box .lead { color: rgba(255,255,255,.92); }
.hero-box::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { color: var(--pink); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--outline { border-color: var(--line); background: var(--surface); color: var(--ink); }

.tiles { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.tile { margin: 0; }
.tile > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; border-top: 6px solid var(--c, var(--brand)); }
.tile > a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.tile-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile-body { padding: 14px 16px 16px; }
.tile-title { font: 800 1.25rem "Baloo 2", sans-serif; display: block; line-height: 1.2; }
.tile-meta { display: block; font-size: .85rem; color: var(--muted); font-weight: 700; margin-top: 2px; }
.tile-text { display: block; font-size: .95rem; color: var(--ink-2); margin-top: 8px; }

.timeline { list-style: none; margin: 18px 0; padding: 0 0 0 22px; border-left: 3px solid var(--line); }
.timeline li { position: relative; margin: 0 0 18px; padding-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c, var(--brand)); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--c, var(--brand)); }
.timeline time { display: block; font-weight: 800; color: var(--c, var(--brand)); font-size: .9rem; }
.timeline strong { font-family: "Baloo 2", sans-serif; font-size: 1.1rem; }

.faq { margin: 12px 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 16px 14px; color: var(--ink-2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; }
.pager a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 800; }
.pager a span { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; }
.pager .next { text-align: right; grid-column: 2; }

.sources { font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 32px; padding-top: 14px; }
.sources ul { margin: 6px 0 0; }
.img-credit { font-size: .78rem; color: var(--muted); }
.figure-wide { margin: 18px 0; }
.figure-wide img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure-wide figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.filters { display: grid; gap: 10px; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; }
.filters label { font-weight: 800; font-size: .85rem; display: block; margin-bottom: 4px; color: var(--ink-2); }
.filters input, .filters select { width: 100%; min-height: 44px; border: 2px solid var(--line); border-radius: 10px; padding: 0 12px; font: 600 1rem "Nunito", sans-serif; background: #fff; color: var(--ink); }
.filters input:focus, .filters select:focus { border-color: var(--brand); outline: none; }
.filter-count { font-weight: 800; color: var(--muted); font-size: .9rem; margin: 0; }
[hidden] { display: none !important; }

.site-footer { background: #1b1430; color: #cfc6e6; padding: 40px 0 0; margin-top: 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.footer-brand p { font-size: .92rem; max-width: 42ch; }
.logo--footer .logo-text { color: #fff; }
.logo--footer .logo-text strong { color: var(--yellow); }
.footer-title { font: 800 1.05rem "Baloo 2", sans-serif; color: #fff; margin-bottom: 8px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; font-size: .93rem; }
.footer-cols-2 { columns: 2; column-gap: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.link-btn:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; padding-bottom: 24px; font-size: .82rem; color: #a99fc6; }
.footer-bottom p { margin: 0; }

@media (max-width: 359.98px) {
  :root { --gutter: 12px; --header-h: 58px; }
  .logo-text { font-size: 1.15rem; }
  .logo-mark { width: 30px; height: 30px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0 12px; }
  .cards { gap: 8px; }
  .card-body { padding: 8px 9px 10px; }
  .card-name { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; }
  .mega-list, .drop-list--islas { columns: 1; }
  .infobox dl { grid-template-columns: 1fr; }
  .infobox dd { text-align: left; border-top: 0; padding-top: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .hero-box { padding: 22px 16px; border-radius: 18px; }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .hero-box { padding: 40px 36px; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .drop-list--islas { columns: 3; }
}

@media (min-width: 840px) {
  .layout--aside { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .layout--aside .infobox { position: sticky; top: calc(var(--header-h) + 16px); grid-column: 2; grid-row: 1 / span 2; }
  .layout--aside .content { grid-column: 1; grid-row: 1 / span 2; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-self: stretch; position: static; height: auto; padding: 0; border: 0; overflow: visible; background: none; }

  .nav-list { display: flex; gap: 4px; align-items: stretch; }
  .nav-item { border: 0; position: relative; display: flex; align-items: center; }
  .nav-btn { width: auto; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 1.08rem; }
  .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--brand-soft); color: var(--brand-ink); }
  .nav-panel {
    position: absolute; top: 100%; right: 0; min-width: 300px; padding: 18px; z-index: 101;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  }
  .nav-item--mega { position: static; }
  .nav-panel--mega { left: var(--gutter); right: var(--gutter); top: calc(100% - 1px); max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto; }
  .mega-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .mega-col--wide { grid-column: span 2; }
  .mega-col { background: none; border-left: 0; border-top: 4px solid var(--c, var(--brand)); border-radius: 0; padding-top: 6px; }
  .mega-head a { padding: 4px 6px 8px; font-size: .95rem; color: var(--c, var(--ink)); }
  .sub-toggle { display: none; }
  .mega-list { display: block; padding: 0; columns: 1; }
  .mega-col--wide .mega-list { columns: 2; }
  .mega-list a { padding: 5px 6px; font-size: .93rem; }
  .nav-panel--list .drop-list--islas { columns: 2; min-width: 360px; }

  .no-js .nav-item:hover > .nav-panel { display: block; }
  .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .layout--aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .hero-box { padding: 54px 52px; }
  .hero-box h1, .hero-box .lead { max-width: 760px; }
}

@media (min-width: 1440px) {
  :root { --maxw: 1360px; --gutter: 32px; }
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .layout--aside .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1920px) {
  :root { --maxw: 1560px; --fs-body: 1.125rem; }
  .cards { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

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

@media print {
  .site-header, .site-footer, .cookie-banner, .cookie-modal, .breadcrumbs, .pager { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 1023.98px) {
  .no-js .main-nav { display: block; position: static; }
  .no-js .nav-panel, .no-js .mega-list { display: block; }
  .no-js .nav-toggle, .no-js .sub-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
}

.hub-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); border-top: 6px solid var(--c, var(--brand)); scroll-margin-top: calc(var(--header-h) + 16px); }
.hub-img { display: flex; align-items: center; justify-content: center; background: #fff; aspect-ratio: 1 / 1; padding: 14px; }
.hub-img img { max-height: 100%; width: auto; object-fit: contain; }
.hub-tiles .tile-text { margin-bottom: 6px; }

.ft-name { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ft-name img { width: 36px; height: 50px; object-fit: cover; object-position: top; border-radius: 6px; background: var(--surface-2); }
th[scope="colgroup"] { background: var(--brand-soft); color: var(--brand-ink); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
