/* ===== Tokens (UI UX Pro Max: Vibrant & Block-based · Fredoka/Nunito) ===== */
:root {
  --color-primary: #7C3AED;
  --color-primary-strong: #6D28D9;
  --color-on-primary: #FFFFFF;
  --color-secondary: #A78BFA;
  --color-accent: #16A34A;
  --color-amber: #F59E0B;
  --color-red: #E11D48;
  --color-bg: #FAF5FF;
  --color-surface: #FFFFFF;
  --color-fg: #2E1065;
  --color-fg-muted: #5B4B7A;
  --color-muted: #F1EAFE;
  --color-border: #DDD6FE;
  --color-destructive: #DC2626;
  --color-ring: #7C3AED;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-block: 6px 6px 0 var(--color-fg);
  --shadow-block-sm: 4px 4px 0 var(--color-fg);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: 220ms;

  --z-nav: 40;
  --z-progress: 50;
  --z-modal: 100;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #A78BFA;
    --color-primary-strong: #C4B5FD;
    --color-on-primary: #1E0B3B;
    --color-accent: #4ADE80;
    --color-bg: #150A26;
    --color-surface: #22133B;
    --color-fg: #F3EEFF;
    --color-fg-muted: #C7B9E6;
    --color-muted: #1C1031;
    --color-border: #3B2763;
    --color-ring: #C4B5FD;
    --shadow-block: 6px 6px 0 #000;
    --shadow-block-sm: 4px 4px 0 #000;
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.375rem; font-weight: 600; }
p { margin: 0; }
em { font-style: normal; color: var(--color-primary); }
a { color: inherit; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--color-primary); color: var(--color-on-primary); padding: 10px 16px; border-radius: var(--radius-sm); transition: top var(--dur); }
.skip-link:focus { top: 16px; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--color-primary), var(--color-amber), var(--color-accent)); transform-origin: 0 50%; transform: scaleX(0); z-index: var(--z-progress); }

.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; color: var(--color-primary); margin-bottom: 12px; }
.eyebrow--light { color: #FDE68A; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  border: 2.5px solid var(--color-fg);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur);
}
.btn:active { transform: translate(2px, 2px) scale(.98); box-shadow: none !important; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-block-sm); }
.btn--primary:hover { background: var(--color-primary-strong); }
.btn--ghost { background: transparent; color: var(--color-fg); }
.btn--ghost:hover { background: var(--color-muted); }
.btn--light { background: #FDE68A; color: #2E1065; border-color: #2E1065; box-shadow: 4px 4px 0 #2E1065; }
.btn--light:hover { background: #FCD34D; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; box-shadow: none; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--color-primary); text-decoration: underline; padding: 0; font-weight: 700; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid transparent; transition: border-color var(--dur); }
.nav.is-scrolled { border-bottom-color: var(--color-border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; text-decoration: none; }
.brand__icon { width: 32px; height: 32px; fill: var(--color-primary); stroke: none; }
.brand__dot { color: var(--color-amber); }
.nav__links { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.nav__links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: background-color var(--dur); }
.nav__links a:not(.btn):hover { background: var(--color-muted); }
.nav__links a[aria-current="page"]:not(.btn) { color: var(--color-primary); background: var(--color-muted); box-shadow: inset 0 -3px 0 var(--color-primary); }
.nav__toggle { display: none; width: 48px; height: 48px; border: 2px solid var(--color-fg); border-radius: 14px; background: var(--color-surface); align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius); box-shadow: var(--shadow-block); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links .btn { margin-top: 6px; }
}

/* ===== Hero ===== */
.hero { padding: 48px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); opacity: .8; pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; padding-top: 24px; } }
.hero__title { font-size: clamp(2.75rem, 7vw, 5rem); margin-bottom: 20px; }
.word { display: inline-block; }
.word--hl { color: var(--color-on-primary); background: var(--color-primary); padding: 0 .22em; border-radius: 14px; transform: rotate(-3deg); box-shadow: var(--shadow-block-sm); }
.word--underline { position: relative; }
.word--underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--color-amber); border-radius: 99px; z-index: -1; }
.hero__lead { font-size: 1.1875rem; color: var(--color-fg-muted); max-width: 52ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; max-width: 520px; }
.stats div { background: var(--color-surface); border: 2px solid var(--color-fg); border-radius: var(--radius); padding: 14px 12px; }
.stats dt { font-size: .8125rem; color: var(--color-fg-muted); font-weight: 600; }
.stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 3.4vw, 1.875rem); font-variant-numeric: tabular-nums; }

.hero__art { position: relative; aspect-ratio: 1 / .95; max-width: 560px; width: 100%; margin-inline: auto; }
.hero__card { position: absolute; border: 3px solid var(--color-fg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-block); background: var(--color-surface); will-change: transform; }
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--a { width: 72%; aspect-ratio: 4/3; left: 0; top: 6%; rotate: -6deg; z-index: 2; }
.hero__card--b { width: 46%; aspect-ratio: 1; right: 0; top: 0; rotate: 8deg; z-index: 1; }
.hero__card--c { width: 52%; aspect-ratio: 4/3; right: 4%; bottom: 0; rotate: 4deg; z-index: 3; }

.float-die { position: absolute; width: 56px; height: 56px; background: #fff; border: 3px solid #2E1065; border-radius: 14px; box-shadow: 3px 3px 0 #2E1065; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 7px; z-index: 4; }
.float-die span { width: 9px; height: 9px; border-radius: 50%; background: #2E1065; place-self: center; }
.float-die--1 { left: -2%; bottom: 10%; background: #FDE68A; }
.float-die--1 span:nth-child(1) { grid-area: 1/1; } .float-die--1 span:nth-child(2) { grid-area: 1/3; } .float-die--1 span:nth-child(3) { grid-area: 2/2; } .float-die--1 span:nth-child(4) { grid-area: 3/1; } .float-die--1 span:nth-child(5) { grid-area: 3/3; }
.float-die--2 { right: 30%; top: -4%; background: #BBF7D0; width: 46px; height: 46px; }
.float-die--2 span:nth-child(1) { grid-area: 1/1; } .float-die--2 span:nth-child(2) { grid-area: 3/3; }
.float-meeple { position: absolute; width: 52px; height: 52px; stroke: #2E1065; stroke-width: 1.2; z-index: 4; }
.float-meeple--1 { fill: var(--color-red); right: -2%; top: 44%; }
.float-meeple--2 { fill: var(--color-accent); left: 40%; bottom: -4%; width: 40px; height: 40px; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; background: var(--color-fg); color: var(--color-bg); border-block: 3px solid var(--color-fg); rotate: -1.5deg; margin: 0 -20px; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; white-space: nowrap; }
.marquee__track i { width: 14px; height: 14px; background: var(--color-amber); rotate: 45deg; border-radius: 3px; }
.motion-ok .marquee__track { animation: marquee 32s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--muted { background: var(--color-muted); }
.section--violet { background: #5B21B6; color: #fff; position: relative; overflow: hidden; }
.section--violet em { color: #FDE68A; }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head h2 { margin-bottom: 14px; }
.section__lead { color: var(--color-fg-muted); font-size: 1.125rem; }

/* Reveal: hidden only when JS animations are enabled */
.motion-ok .reveal, .motion-ok .hero-in, .motion-ok .hero__title .word, .motion-ok .hero__card { opacity: 0; }

/* ===== Filters + Games ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; cursor: pointer; user-select: none; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--color-fg); background: var(--color-surface); font-weight: 700; transition: background-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out); }
.chip:hover { background: var(--color-muted); }
.filters input:checked + .chip { background: var(--color-fg); color: var(--color-bg); }
.filters input:focus-visible + .chip { outline: 3px solid var(--color-ring); outline-offset: 3px; }
.chip:active { transform: scale(.96); }
.filters { border: 0; padding: 0; min-width: 0; }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.games { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.game { position: relative; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-block); transition: box-shadow var(--dur) var(--ease-out); transform-style: preserve-3d; }
.game:hover { box-shadow: 10px 10px 0 var(--color-primary); }
.game__media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2.5px solid var(--color-fg); }
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.game:hover .game__media img { transform: scale(1.06); }
.game__body { padding: 20px 22px 24px; }
.game__body h3 { margin: 10px 0 8px; }
.game__body p { color: var(--color-fg-muted); font-size: 1rem; margin-bottom: 16px; }
.tag { display: inline-block; font-size: .8125rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 2px solid currentColor; }
.tag--violet { color: #6D28D9; background: #EDE9FE; }
.tag--green { color: #15803D; background: #DCFCE7; }
.tag--red { color: #BE123C; background: #FFE4E6; }
.tag--amber { color: #B45309; background: #FEF3C7; }
.meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; font-weight: 700; font-size: .9375rem; }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { color: var(--color-primary); }

/* ===== Dice zone ===== */
.dice-zone { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .dice-zone { grid-template-columns: 1fr 1fr; } }
.dice-zone__copy h2 { margin-bottom: 16px; }
.dice-zone__copy p:not(.eyebrow) { color: #E9E1FF; font-size: 1.125rem; margin-bottom: 28px; max-width: 48ch; }
.dice-zone__stage { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.die { width: 140px; height: 140px; background: #fff; border: 4px solid #2E1065; border-radius: 30px; box-shadow: 8px 8px 0 #2E1065; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 18px; }
.die span { width: 22px; height: 22px; border-radius: 50%; background: #2E1065; place-self: center; opacity: 0; transition: opacity 120ms; }
.die[data-face="1"] span:nth-child(5),
.die[data-face="2"] span:is(:nth-child(1), :nth-child(9)),
.die[data-face="3"] span:is(:nth-child(1), :nth-child(5), :nth-child(9)),
.die[data-face="4"] span:is(:nth-child(1), :nth-child(3), :nth-child(7), :nth-child(9)),
.die[data-face="5"] span:is(:nth-child(1), :nth-child(3), :nth-child(5), :nth-child(7), :nth-child(9)),
.die[data-face="6"] span:is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7), :nth-child(9)) { opacity: 1; }
.pick { background: #fff; color: #2E1065; border: 3px solid #2E1065; border-radius: var(--radius); box-shadow: 6px 6px 0 #2E1065; padding: 20px 24px; width: min(100%, 380px); text-align: center; }
.pick__label { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #6D28D9; }
.pick__name { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; margin: 4px 0; }
.pick__why { color: #5B4B7A; }

/* ===== Noche ===== */
.noche { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .noche { grid-template-columns: 1fr 1.05fr; } }
.noche__photos { position: relative; min-height: 420px; }
.noche__ph { margin: 0; position: absolute; border: 3px solid var(--color-fg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-block); }
.noche__ph img { width: 100%; height: 100%; object-fit: cover; }
.noche__ph--1 { width: 82%; aspect-ratio: 16/10; top: 0; left: 0; rotate: -3deg; }
.noche__ph--2 { width: 58%; aspect-ratio: 4/3.2; right: 0; bottom: 0; rotate: 4deg; }
.noche__copy h2 { margin-bottom: 14px; }
.steps { list-style: none; padding: 0; margin: 32px 0; position: relative; display: grid; gap: 24px; }
.step { display: flex; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }
.step__n { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; background: var(--color-amber); color: #2E1065; border: 2.5px solid var(--color-fg); }
.step:nth-child(2) .step__n { background: var(--color-secondary); }
.step:nth-child(3) .step__n { background: #4ADE80; }
.step h3 { margin: 4px 0 4px; }
.step p { color: var(--color-fg-muted); }
.steps__line { position: absolute; left: 25px; top: 20px; bottom: 20px; width: 3px; background: var(--color-border); border-radius: 2px; }
.steps__fill { position: absolute; inset: 0; background: var(--color-primary); transform-origin: 50% 0; transform: scaleY(0); }
.event { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--color-muted); border: 2px dashed var(--color-primary); font-weight: 700; }
.event div { display: inline-flex; gap: 8px; align-items: center; }
.event svg { color: var(--color-primary); }

/* ===== Gallery ===== */
.gallery { columns: 2 160px; column-gap: 16px; }
@media (min-width: 768px) { .gallery { columns: 4; column-gap: 20px; } }
.gallery__item { display: block; width: 100%; padding: 0; margin: 0 0 16px; border: 2.5px solid var(--color-fg); border-radius: var(--radius); overflow: hidden; background: var(--color-surface); break-inside: avoid; box-shadow: var(--shadow-block-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.gallery__item:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--color-primary); }
.gallery__item img { width: 100%; }

/* ===== Quotes ===== */
.quotes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { margin: 0; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-block); display: flex; flex-direction: column; gap: 16px; }
.quote:nth-child(2) { rotate: 1deg; } .quote:nth-child(3) { rotate: -1deg; }
.stars { display: flex; gap: 2px; color: var(--color-amber); }
.stars svg { fill: currentColor; stroke: none; }
.quote blockquote { margin: 0; font-size: 1.125rem; font-weight: 600; }
.quote figcaption { display: flex; align-items: center; gap: 10px; color: var(--color-fg-muted); font-weight: 700; margin-top: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 700; }

/* ===== Join ===== */
.join { display: grid; gap: 40px; background: #2E1065; color: #fff; border-radius: 36px; padding: 40px 24px; border: 3px solid var(--color-fg); box-shadow: 10px 10px 0 var(--color-amber); position: relative; overflow: hidden; }
@media (min-width: 900px) { .join { grid-template-columns: 1fr 1fr; padding: 56px; align-items: center; } }
.join h2 { margin-bottom: 16px; }
.join__copy > p:not(.eyebrow) { color: #E9E1FF; font-size: 1.125rem; margin-bottom: 20px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 700; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { color: #4ADE80; }
.form { background: #fff; color: #2E1065; border-radius: var(--radius-lg); padding: 28px 24px; border: 3px solid #2E1065; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field label span { color: var(--color-destructive); }
.field input, .field select { width: 100%; min-height: 50px; padding: 0 16px; font: inherit; font-size: 1rem; color: #2E1065; border: 2px solid #C4B5FD; border-radius: 14px; background: #FAF5FF; transition: border-color var(--dur), box-shadow var(--dur); }
.field input:focus, .field select:focus { outline: none; border-color: #7C3AED; box-shadow: 0 0 0 4px rgba(124, 58, 237, .2); }
.field :is(input, textarea):user-invalid { border-color: var(--color-destructive); background: #FEF2F2; }
.field__help { font-size: .875rem; color: #5B4B7A; margin-top: 6px; }
.form .btn--primary { background: #7C3AED; color: #fff; border-color: #2E1065; box-shadow: 4px 4px 0 #2E1065; }

/* Small phones */
@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats div { padding: 12px 8px; }
  .noche__photos { min-height: 300px; }
  .float-die--1 { left: 0; }
  .float-meeple--1 { right: 0; }
}

/* =====================================================================
   Multi-page additions
   ===================================================================== */
.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; }
[id] { scroll-margin-top: 96px; }
.stretched { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stretched:focus-visible { outline: none; }
.game:has(.stretched:focus-visible), .tile:has(.stretched:focus-visible), .guide:has(.stretched:focus-visible) { outline: 3px solid var(--color-ring); outline-offset: 4px; }
.tag--blue { color: #1D4ED8; background: #DBEAFE; }
.section--tight { padding-top: 56px; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section__head--row > div { max-width: 680px; }
.section__head--row h2 { margin-bottom: 0; }
.section__head--row .section__lead { margin-top: 14px; }
.filters--flush { margin-bottom: 0; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 40px 0 64px; background: var(--color-muted); border-bottom: 3px solid var(--color-fg); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px); background-size: 26px 26px; opacity: .9; pointer-events: none; }
.page-hero--amber { background: #FEF3C7; } .page-hero--green { background: #DCFCE7; } .page-hero--red { background: #FFE4E6; }
@media (prefers-color-scheme: dark) { .page-hero--amber, .page-hero--green, .page-hero--red { background: var(--color-muted); } }
.page-hero__inner { position: relative; z-index: 1; max-width: 1200px; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); max-width: 16ch; margin: 18px 0 16px; }
.page-hero__lead { font-size: 1.1875rem; color: var(--color-fg-muted); max-width: 56ch; }
.hl { display: inline-block; color: var(--color-on-primary); background: var(--color-primary); padding: 0 .2em; border-radius: 14px; transform: rotate(-2deg); box-shadow: var(--shadow-block-sm); }
.motion-ok .ph-in, .motion-ok .detail__media { opacity: 0; }
.page-hero__deco { position: absolute; inset: 0; pointer-events: none; }
.page-hero__deco > * { position: absolute; }
.page-hero__deco .float-die--a { right: 9%; top: 22%; background: #FDE68A; }
.float-die--a span:nth-child(1) { grid-area: 1/1; } .float-die--a span:nth-child(2) { grid-area: 2/2; } .float-die--a span:nth-child(3) { grid-area: 3/3; }
.deco-meeple { width: 64px; height: 64px; right: 20%; bottom: 14%; stroke: #2E1065; stroke-width: 1.2; }
.deco-meeple--violet { fill: var(--color-primary); } .deco-meeple--green { fill: var(--color-accent); } .deco-meeple--amber { fill: var(--color-amber); }
.deco-hex { right: 4%; bottom: 28%; width: 70px; height: 80px; background: var(--color-red); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.deco-icon { width: 76px; height: 76px; right: 5%; bottom: 20%; color: var(--color-fg); stroke-width: 1.6; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-block-sm); }
@media (max-width: 860px) { .page-hero__deco { opacity: .35; } .page-hero__deco .float-die--a, .deco-hex { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; font-size: .9375rem; color: var(--color-fg-muted); }
.crumbs a { color: var(--color-primary); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Catalog toolbar ---------- */
.toolbar { display: grid; gap: 16px; margin-bottom: 20px; padding: 20px; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: var(--shadow-block); }
@media (min-width: 960px) { .toolbar { grid-template-columns: 1fr auto; align-items: end; } .toolbar .filters { grid-column: 1 / -1; } .toolbar__selects { grid-template-columns: repeat(3, 170px); } }
.empty-state { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 12px; }
.empty-state > svg { width: 64px; height: 64px; fill: var(--color-secondary); stroke: var(--color-fg); stroke-width: 1; }
.empty-state h1, .empty-state h2 { font-size: 1.75rem; }
.empty-state p { color: var(--color-fg-muted); max-width: 44ch; }
.empty-state--sm { padding: 24px 0; justify-items: start; text-align: left; }

.cta-band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #E9E1FF; max-width: 56ch; }

/* ---------- Home extras ---------- */
.pick__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; color: #6D28D9; min-height: 44px; }
.event__link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-weight: 800; margin-left: auto; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tiles--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tile { position: relative; padding: 24px; border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-block-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.tile:has(.stretched):hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--tile-c); }
.tile > svg { width: 48px; height: 48px; padding: 10px; border-radius: 14px; background: var(--tile-c); color: #2E1065; border: 2px solid var(--color-fg); margin-bottom: 16px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--color-fg-muted); }
.tile--violet { --tile-c: #C4B5FD; } .tile--amber { --tile-c: #FCD34D; } .tile--green { --tile-c: #86EFAC; } .tile--red { --tile-c: #FDA4AF; }

/* ---------- Game detail ---------- */
.detail { padding: 32px 0 80px; }
.detail__grid { display: grid; gap: 40px; margin-top: 24px; align-items: center; }
@media (min-width: 900px) { .detail__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.detail__media { position: relative; margin: 0; border: 3px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: 10px 10px 0 var(--color-primary); rotate: -2deg; aspect-ratio: 4 / 4.2; background: var(--color-surface); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 3px); }
.detail__sticker { position: absolute; right: -18px; top: -18px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--color-amber); color: #2E1065; border: 3px solid var(--color-fg); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; rotate: 12deg; }
.detail__info h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 14px 0 12px; }
.detail__lead { font-size: 1.1875rem; color: var(--color-fg-muted); margin-bottom: 24px; }
.specs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border: 2px solid var(--color-fg); border-radius: var(--radius); background: var(--color-surface); text-align: center; }
.spec svg { color: var(--color-primary); width: 24px; height: 24px; }
.spec strong { font-family: var(--font-display); font-size: 1.5rem; }
.spec span { font-size: .875rem; color: var(--color-fg-muted); font-weight: 700; }
.difficulty { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.difficulty__label { font-weight: 800; }
.difficulty__dots { display: flex; align-items: center; gap: 6px; }
.difficulty__dots span { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--color-fg); background: var(--color-surface); }
.difficulty__dots span.on { background: var(--color-primary); }
.difficulty__dots em { margin-left: 8px; font-style: normal; font-weight: 700; color: var(--color-fg-muted); }
.detail__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.detail__body { display: grid; gap: 40px; margin-top: 72px; }
@media (min-width: 900px) { .detail__body { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.detail__body h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 16px; }
.detail__about > p { font-size: 1.125rem; max-width: 65ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 0; }
.facts div { padding: 14px 16px; background: var(--color-muted); border-radius: var(--radius-sm); }
.facts dt { font-size: .8125rem; font-weight: 800; color: var(--color-fg-muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.facts a { color: var(--color-primary); }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 16px; align-items: center; padding: 16px; border: 2.5px solid var(--color-fg); border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow-block-sm); }
.how__n { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--color-amber); color: #2E1065; border: 2px solid var(--color-fg); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.how li:nth-child(2) .how__n { background: var(--color-secondary); } .how li:nth-child(3) .how__n { background: #4ADE80; }
.how p { font-weight: 600; }
.pager { display: flex; gap: 10px; }
.pager__btn { width: 52px; height: 52px; display: grid; place-items: center; border: 2.5px solid var(--color-fg); border-radius: 50%; background: var(--color-surface); color: var(--color-fg); box-shadow: var(--shadow-block-sm); transition: transform var(--dur) var(--ease-out), background-color var(--dur); }
.pager__btn:hover { background: var(--color-primary); color: var(--color-on-primary); }
.pager__btn:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---------- Events ---------- */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.ev { display: grid; gap: 16px 20px; grid-template-columns: auto 1fr; align-items: center; padding: 16px; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: var(--shadow-block); }
@media (min-width: 900px) { .ev { grid-template-columns: auto 160px 1fr 220px; padding: 20px; } }
.ev__date { width: 72px; height: 80px; display: grid; place-content: center; text-align: center; background: var(--color-amber); color: #2E1065; border: 2.5px solid var(--color-fg); border-radius: 16px; rotate: -4deg; line-height: 1; }
.ev__day { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.ev__mon { font-weight: 800; text-transform: uppercase; font-size: .8125rem; letter-spacing: .08em; }
.ev__media { display: none; }
@media (min-width: 900px) { .ev__media { display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--color-fg); } .ev__media img { width: 100%; height: 100%; object-fit: cover; } }
.ev__body h3 { margin: 8px 0 6px; }
.ev__when { display: flex; gap: 8px; align-items: center; color: var(--color-fg-muted); font-weight: 700; font-size: .9375rem; }
.ev__when svg { color: var(--color-primary); }
.cap::first-letter { text-transform: uppercase; }
.ev__desc { margin-top: 8px; color: var(--color-fg-muted); }
.ev__side { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
@media (min-width: 900px) { .ev__side { grid-column: auto; flex-direction: column; align-items: stretch; } .ev__body { grid-column: auto; } }
@media (max-width: 899px) { .ev__body { grid-column: 2; } }
.seats { flex: 1; }
.seats__bar { height: 10px; border-radius: 99px; background: var(--color-muted); border: 2px solid var(--color-fg); overflow: hidden; }
.seats__bar span { display: block; height: 100%; width: var(--p); background: var(--color-accent); transform-origin: 0 50%; }
.seats__bar span.hot { background: var(--color-red); }
.seats p { font-size: .875rem; font-weight: 800; margin-top: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- Guides ---------- */
.feature { display: grid; gap: 0; border: 3px solid var(--color-fg); border-radius: 32px; overflow: hidden; background: var(--color-surface); box-shadow: 10px 10px 0 var(--color-primary); margin-bottom: 40px; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1.2fr; } }
.feature__media { aspect-ratio: 16/10; border-bottom: 3px solid var(--color-fg); }
@media (min-width: 860px) { .feature__media { aspect-ratio: auto; border-bottom: 0; border-right: 3px solid var(--color-fg); } }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 32px 28px; display: grid; gap: 16px; align-content: center; justify-items: start; }
.feature__body h3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.feature__body p { color: var(--color-fg-muted); font-size: 1.125rem; }
.guides { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.guide { position: relative; border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-block-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.guide:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--color-primary); }
.guide__media { aspect-ratio: 4/3; border-bottom: 2.5px solid var(--color-fg); overflow: hidden; }
.guide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.guide:hover .guide__media img { transform: scale(1.06); }
.guide__body { padding: 18px 20px 22px; }
.guide__body h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.guide__body p { color: var(--color-fg-muted); font-size: .9375rem; }
.glossary { display: grid; gap: 32px; }
@media (min-width: 960px) { .glossary { grid-template-columns: 1fr 1.3fr; align-items: start; } .glossary__head { position: sticky; top: 100px; } }
.glossary__head .results { margin-top: 12px; }
.glossary__list, .faq__list { display: grid; gap: 12px; }
.acc { border: 2.5px solid var(--color-fg); border-radius: var(--radius); background: var(--color-surface); transition: box-shadow var(--dur) var(--ease-out); }
.acc[open] { box-shadow: var(--shadow-block-sm); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; cursor: pointer; border-radius: var(--radius); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--color-muted); }
.acc summary svg { transition: transform var(--dur) var(--ease-out); color: var(--color-primary); }
.acc[open] summary svg { transform: rotate(180deg); }
.acc__body { padding: 0 18px 18px; color: var(--color-fg-muted); }
.acc__body a { color: var(--color-primary); font-weight: 700; }

/* ---------- About ---------- */
.story { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1.1fr; } }
.story__photos { position: relative; min-height: 440px; }
.story__photos .noche__ph--1 { width: 70%; aspect-ratio: 1; }
.story__photos .noche__ph--2 { width: 52%; aspect-ratio: 1; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; display: grid; gap: 24px; }
.timeline li { display: flex; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }
.timeline__year { flex: none; min-width: 76px; padding: 8px 10px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: 14px; rotate: -3deg; box-shadow: var(--shadow-block-sm); }
.timeline li:last-of-type .timeline__year { background: var(--color-primary); color: var(--color-on-primary); }
.timeline h3 { margin: 6px 0 4px; }
.timeline p { color: var(--color-fg-muted); }
.timeline__line { position: absolute; left: 38px; top: 24px; bottom: 24px; width: 3px; background: var(--color-border); }
.timeline__fill { position: absolute; inset: 0; background: var(--color-primary); transform-origin: 50% 0; transform: scaleY(0); }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.member { text-align: center; padding: 28px 20px; border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-block-sm); }
.member__avatar { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; border: 3px solid var(--color-fg); }
.member__role { color: var(--color-primary); font-weight: 800; margin: 4px 0 8px; }
.member p:last-child { color: var(--color-fg-muted); }
.member a { color: inherit; font-weight: 700; }
.faq { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.faq .section__lead a { color: var(--color-primary); font-weight: 700; }
.join a { color: #FDE68A; }
.field textarea { width: 100%; padding: 12px 16px; font: inherit; font-size: 1rem; color: #2E1065; border: 2px solid #C4B5FD; border-radius: 14px; background: #FAF5FF; resize: vertical; transition: border-color var(--dur), box-shadow var(--dur); }
.field textarea:focus { outline: none; border-color: #7C3AED; box-shadow: 0 0 0 4px rgba(124, 58, 237, .2); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; border-top: 3px solid var(--color-fg); background: var(--color-muted); margin-top: 0; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer__about p { color: var(--color-fg-muted); margin-top: 12px; max-width: 32ch; }
.footer__h { font-size: 1rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--color-primary); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 700; }
.footer nav a:hover { color: var(--color-primary); text-decoration: underline; }
.footer__info li { display: flex; gap: 8px; align-items: center; color: var(--color-fg-muted); font-weight: 600; min-height: 36px; }
.footer__info svg { color: var(--color-primary); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--color-border); display: grid; gap: 6px; color: var(--color-fg-muted); font-size: .9375rem; }
.footer__credit { font-size: .8125rem; }

@media (max-width: 480px) {
  .specs { gap: 8px; }
  .spec strong { font-size: 1.25rem; }
  .countdown { display: grid; padding: 14px; }
  .countdown__grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .detail__sticker { right: -6px; top: -14px; width: 72px; height: 72px; font-size: 1.0625rem; }
  .story__photos { min-height: 320px; }
  .dlg__panel { padding: 28px 18px 20px; }
  .reader__progress { margin: -28px -18px 20px; top: -28px; }
}
.join em { color: #FDE68A; }
.faq h2, .glossary__head h2 { margin-bottom: 14px; }
.reader em { font-style: italic; color: inherit; }

/* =====================================================================
   Static-site features (no JavaScript)
   ===================================================================== */

/* ---------- CSS-only filters: radio inputs + :has() ---------- */
.f:has(#cat-estrategia:checked) .game:not([data-cat="estrategia"]),
.f:has(#cat-familiar:checked) .game:not([data-cat="familiar"]),
.f:has(#cat-clasico:checked) .game:not([data-cat="clasico"]),
.f:has(#cat-misterio:checked) .game:not([data-cat="misterio"]),
.f:has(#cat-cartas:checked) .game:not([data-cat="cartas"]),
.f:has(#pl-1:checked) .game:not([data-p~="1"]),
.f:has(#pl-2:checked) .game:not([data-p~="2"]),
.f:has(#pl-4:checked) .game:not([data-p~="4"]),
.f:has(#pl-6:checked) .game:not([data-p~="6"]),
.f:has(#t-30:checked) .game:not([data-t~="30"]),
.f:has(#t-60:checked) .game:not([data-t~="60"]),
.f:has(#t-long:checked) .game:not([data-t~="long"]),
.f:has(#ev-noche:checked) .ev:not([data-type="noche"]),
.f:has(#ev-torneo:checked) .ev:not([data-type="torneo"]),
.f:has(#ev-taller:checked) .ev:not([data-type="taller"]),
.f:has(#ev-familia:checked) .ev:not([data-type="familia"]) { display: none; }
.game, .ev { transition: scale .35s var(--ease-out), translate .35s var(--ease-out), display .35s allow-discrete; }
@starting-style { .game, .ev { scale: .94; translate: 0 14px; } }
.filter-hint { display: none; margin-top: -8px; margin-bottom: 20px; font-weight: 700; color: var(--color-fg-muted); }
.filter-hint a { color: var(--color-primary); }
#juegos .filter-hint { display: block; margin: 24px 0 0; }
.f:has(.toolbar input:not([id$="-todos"]):not([id$="-any"]):checked) .filter-hint { display: block; }
.toolbar__group { display: grid; gap: 8px; }
.toolbar__label { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--color-fg-muted); }
@media (min-width: 960px) { .toolbar { grid-template-columns: 1fr; } }

/* ---------- Popovers (lightbox + booking forms) ---------- */
[popover] { border: 0; padding: 0; background: transparent; color: var(--color-fg); overflow: visible; }
[popover]::backdrop { background: rgba(20, 8, 40, .65); backdrop-filter: blur(4px); }
.pop { width: min(560px, calc(100vw - 32px)); margin: auto; }
.pop, .lightbox { opacity: 1; scale: 1; transition: opacity .25s var(--ease-out), scale .3s var(--ease-out), overlay .3s allow-discrete, display .3s allow-discrete; }
.pop:not(:popover-open), .lightbox:not(:popover-open) { opacity: 0; scale: .94; }
@starting-style { .pop:popover-open, .lightbox:popover-open { opacity: 0; scale: .9; } }
.dlg__panel { position: relative; background: var(--color-surface); border: 3px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: 10px 10px 0 var(--color-amber); padding: 32px 24px 24px; max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; }
.dlg__panel h2 { font-size: 1.875rem; margin-bottom: 8px; padding-right: 48px; }
.dlg__meta { color: var(--color-fg-muted); font-weight: 700; margin-bottom: 20px; }
.dlg__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--color-fg); background: var(--color-surface); display: grid; place-items: center; z-index: 2; }
.dlg__close:hover { background: var(--color-muted); }
.form--plain { background: none; border: 0; padding: 0; color: var(--color-fg); }
.form--plain .field input { background: var(--color-bg); color: var(--color-fg); }
.lightbox { margin: auto; padding: 0; }
.lightbox__img { max-width: min(92vw, 900px); max-height: 85vh; width: auto; height: auto; border-radius: var(--radius); border: 3px solid #fff; }
.lightbox__close { position: absolute; top: -18px; right: -18px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: #2E1065; color: #fff; display: grid; place-items: center; }
@media (max-width: 600px) { .lightbox__close { top: 8px; right: 8px; } }

/* ---------- Next event card (eventos) ---------- */
.next-ev { display: inline-grid; gap: 2px; margin-top: 28px; padding: 18px 22px; text-decoration: none; background: #2E1065; color: #fff; border: 3px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: var(--shadow-block); transition: transform var(--dur) var(--ease-out); }
.next-ev:hover { transform: translate(-2px, -2px); }
.next-ev__label { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #FDE68A; }
.next-ev strong { font-family: var(--font-display); font-size: 1.5rem; }

/* ---------- Guide articles ---------- */
.articles { display: grid; gap: 40px; max-width: 820px; }
.article { padding: 32px 28px; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: var(--shadow-block-sm); }
.article:target { box-shadow: 8px 8px 0 var(--color-primary); }
.article h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 16px; }
.article h3 { margin: 28px 0 8px; font-size: 1.25rem; }
.article p, .article ul { max-width: 65ch; margin: 0 0 12px; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 6px; }
.article em { font-style: italic; color: inherit; }
.article a:not(.btn) { color: var(--color-primary); font-weight: 700; }
.article .btn { margin-top: 16px; }
.article__top { display: inline-block; margin-left: 16px; font-weight: 700; color: var(--color-fg-muted) !important; }

/* ---------- Accordions: CSS open animation ---------- */
details[open] .acc__body { animation: acc-in .3s var(--ease-out); }
@keyframes acc-in { from { opacity: 0; translate: 0 -8px; } }

/* ---------- Page transitions: CSS cross-document View Transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  ::view-transition-old(root) { animation: vt-out .22s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .4s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 24px; } }

/* ---------- Scroll-driven animations (CSS only) ---------- */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress { display: block; animation: grow-x linear both; animation-timeline: scroll(root); }
    .steps__fill, .timeline__fill { animation: grow-y linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  }
}
@supports not (animation-timeline: scroll()) { .steps__fill, .timeline__fill { transform: none; } }
@media (prefers-reduced-motion: reduce) { .steps__fill, .timeline__fill { transform: none; } }
@keyframes grow-x { to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

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

/* ---------- 7-page structure ---------- */
.center { text-align: center; margin-top: 32px; }
.muted { color: var(--color-fg-muted); font-size: .9375rem; }
.f:has(#gal-partidas:checked) .gallery__item:not([data-cat="partidas"]),
.f:has(#gal-clasicos:checked) .gallery__item:not([data-cat="clasicos"]),
.f:has(#gal-modernos:checked) .gallery__item:not([data-cat="modernos"]),
.f:has(#gal-artesania:checked) .gallery__item:not([data-cat="artesania"]) { display: none; }
.gallery__item { transition: scale .35s var(--ease-out), display .35s allow-discrete; }
@starting-style { .gallery__item { scale: .9; } }
.gallery--full { margin-top: 8px; }
@media (min-width: 1100px) { .gallery--full { columns: 4; } }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox figcaption { color: #fff; font-weight: 700; text-align: center; max-width: 60ch; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Contact */
.sent { display: none; gap: 16px; align-items: flex-start; padding: 20px 24px; margin-bottom: 32px; border: 3px solid var(--color-fg); border-radius: var(--radius-lg); background: #DCFCE7; color: #14532D; box-shadow: var(--shadow-block-sm); }
.sent:target { display: flex; animation: acc-in .5s var(--ease-out); }
.sent > svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: #16A34A; color: #fff; }
.sent h2 { font-size: 1.5rem; margin-bottom: 4px; }
.sent a { color: #14532D; font-weight: 800; }
.contact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 48px; } }
.contact__info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; padding: 20px; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: var(--shadow-block-sm); }
.info-card__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--color-muted); color: var(--color-primary); border: 2px solid var(--color-fg); }
.info-card h3 { font-size: 1.125rem; margin-bottom: 2px; }
.info-card a { color: var(--color-primary); font-weight: 700; }
.contact__form { box-shadow: 10px 10px 0 var(--color-primary); }
.contact__form h2 { font-size: 1.75rem; margin-bottom: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: #7C3AED; flex: none; }
.check a { color: #6D28D9; font-weight: 800; }
.deco-icon--mail { color: var(--color-fg); }

/* Legal pages */
.legal { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .legal { grid-template-columns: 280px 1fr; gap: 56px; } .legal__toc { position: sticky; top: 100px; } }
.legal__toc { padding: 20px; background: var(--color-surface); border: 2.5px solid var(--color-fg); border-radius: var(--radius-lg); box-shadow: var(--shadow-block-sm); }
.legal__toc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--color-fg-muted); }
.legal__toc a:hover { background: var(--color-muted); color: var(--color-primary); }
.legal__updated { margin-top: 12px; font-size: .875rem; color: var(--color-fg-muted); }
.legal__body { max-width: 72ch; }
.legal__body section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 2px dashed var(--color-border); }
.legal__body section:last-child { border-bottom: 0; }
.legal__body section:target h2 { color: var(--color-primary); }
.legal__body h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 12px; }
.legal__body p, .legal__body ul { margin: 0 0 12px; }
.legal__body ul { padding-left: 22px; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { color: var(--color-primary); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 2.5px solid var(--color-fg); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--color-border); }
.table-wrap th { background: var(--color-muted); font-family: var(--font-display); }
.table-wrap tr:last-child td { border-bottom: 0; }
.sent:focus { outline: none; }
@media (max-width: 860px) { .deco-icon { display: none; } }
@media (max-width: 600px) { .page-hero__deco { display: none; } }
