/* Fuentes propias (Inter, licencia OFL): no se contacta a Google */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #000000;
  --tile: #1D1D1F;
  --field: #2B2B2D;
  --field-hi: #333336;
  --light: #F5F5F7;
  --ink: #F5F5F7;
  --ink-d: #1D1D1F;
  --muted: #A1A1A6;
  --muted-d: #6E6E73;
  --accent: #DD2B1B;
  --on-accent: #FFFFFF;
  --lk-dark: #FF6A5A;
  --lk-light: #C42212;
  --accent-hi: #E8402F;
  --link: var(--lk-dark);
  --link-d: var(--lk-light);
  --orange: #F34C00;
  --teal: #86CCCE;
  --crimson: #912437;
  --m: clamp(20px, 4vw, 56px);
  --wrap: 1280px;
  --nav-h: 52px;
  --r: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* five type steps */
  --t-display: clamp(52px, 9.2vw, 128px);
  --t-title: clamp(36px, 5.6vw, 80px);
  --t-lead: clamp(20px, 2.2vw, 28px);
  --t-body: 17px;
  --t-small: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.47; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #000; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

h1 { font-size: var(--t-display); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: var(--t-title); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
h3 { font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.lead { font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--muted); }
.fine { font-size: var(--t-small); color: var(--muted); letter-spacing: -0.01em; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 32px; padding: 0 14px; font-size: var(--t-small); }
.more { color: var(--link); text-decoration: none; font-weight: 500; }
.more::after { content: '\203A'; display: inline-block; margin-left: .3em; transition: transform .2s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more:hover::after { transform: translateX(3px); }
.light .more { color: var(--link-d); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(0, 0, 0, .72); /* taste-skill-ignore: barra translúcida estilo Apple, pedida por el dueño */
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--m); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand img { width: 46px; height: auto; }
.nav nav { display: flex; gap: 32px; font-size: var(--t-small); }
.nav nav a { text-decoration: none; color: #D2D2D7; transition: color .2s; }
.nav nav a:hover { color: #fff; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.toggle { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--tile); color: var(--ink); font: inherit; font-size: var(--t-small); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.toggle:hover { background: var(--field); }


/* ---------- sections ---------- */
section { position: relative; }
.head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m); text-align: center; display: grid; gap: 18px; justify-items: center; }
.head .lead { max-width: 30em; }
.light { background: var(--light); color: var(--ink-d); }
.light .lead { color: var(--muted-d); }
.light .fine { color: var(--muted-d); }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(64px, 12svh, 140px)); text-align: center; overflow: hidden; }
.hero > * { animation: rise .9s var(--ease) both; }
.hero h1 { padding: 0 var(--m); }
.hero .lead { color: var(--ink); margin-top: 18px; font-weight: 600; padding: 0 var(--m); }
.hero .sub { font-size: var(--t-lead); letter-spacing: -0.02em; line-height: 1.25; color: var(--muted); margin: 8px auto 0; max-width: 24em; padding: 0 var(--m); }
.hero > h1 { animation-delay: .05s; } .hero > .lead { animation-delay: .15s; } .hero > .sub { animation-delay: .22s; } .hero > .hero-cta { animation-delay: .3s; } .hero > .fan { animation-delay: .4s; }
.hero-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 32px; margin-top: 34px; }
.hero-cta .more { font-size: var(--t-lead); }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

.fan { position: relative; height: clamp(280px, 46vw, 640px); margin-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.fan img { position: absolute; bottom: 0; width: var(--w); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--tile); }
.fan-c { --w: clamp(210px, 31vw, 440px); left: 50%; margin-left: calc(var(--w) / -2); z-index: 2; transform: translateY(7%); }
.fan-l { --w: clamp(150px, 23vw, 330px); left: 50%; margin-left: calc(var(--w) / -2 - clamp(190px, 28vw, 410px)); transform: translateY(22%); rotate: -5deg; }
.fan-r { --w: clamp(150px, 23vw, 330px); left: 50%; margin-left: calc(var(--w) / -2 + clamp(190px, 28vw, 410px)); transform: translateY(22%); rotate: 5deg; }
@supports (animation-timeline: scroll()) {
  .fan-l { animation: spread-l linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
  .fan-r { animation: spread-r linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
  @keyframes spread-l { from { rotate: -5deg; translate: 0 0; } to { rotate: -10deg; translate: -4vw 6%; } }
  @keyframes spread-r { from { rotate: 5deg; translate: 0 0; } to { rotate: 10deg; translate: 4vw 6%; } }
}

/* ---------- próximos eventos ---------- */
.next { padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 9vw, 120px); }
.rail-wrap { margin-top: clamp(40px, 5vw, 64px); }
.rail-ctrl { max-width: var(--wrap); margin: 0 auto 16px; padding: 0 var(--m); display: flex; justify-content: flex-end; gap: 10px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tile); color: var(--ink); font: inherit; font-size: 26px; line-height: 1; cursor: pointer; transition: background-color .2s, opacity .2s, transform .2s var(--ease); }
.round:hover { background: var(--field); }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .35; cursor: default; }
.rail {
  --pad: max(var(--m), calc((100vw - var(--wrap)) / 2 + var(--m)));
  display: flex; gap: 20px; overflow-x: auto; padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad);
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  --c-bg: var(--tile); --c-ink: var(--ink);
  flex: 0 0 clamp(290px, 31vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-ink); border-radius: var(--r); overflow: hidden;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card.orange { --c-bg: var(--orange); --c-ink: #000; }
.card.teal { --c-bg: var(--teal); --c-ink: #000; }
.card.crimson { --c-bg: var(--crimson); --c-ink: #F5F5F7; }
.card.dark { --c-bg: var(--tile); --c-ink: var(--ink); }
.card-poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; align-items: flex-start; }
.card-date { font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.card-text { font-size: var(--t-body); line-height: 1.4; }
.card dl { display: grid; gap: 6px; font-size: var(--t-small); line-height: 1.35; width: 100%; }
.card dl div { display: grid; grid-template-columns: 5.4em 1fr; gap: 10px; }
.card dd { font-weight: 600; }
.card .btn { margin-top: auto; background: var(--c-ink); color: var(--c-bg); }
.card .btn:hover { opacity: .88; }
.card.dark .btn { background: var(--accent); color: var(--on-accent); }
.next-end { max-width: var(--wrap); margin: 48px auto 0; padding: 0 var(--m); text-align: center; display: grid; gap: 20px; justify-items: center; }
.next-end[hidden] { display: none; }
.next-all { text-align: center; margin-top: 40px; font-size: var(--t-lead); letter-spacing: -0.02em; }

/* ---------- comunidad ---------- */
.community { padding: clamp(96px, 14vw, 180px) 0; }
.com-grid { max-width: var(--wrap); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cities { display: grid; gap: 4px; justify-self: end; width: min(100%, 480px); }
.cities button {
  all: unset; box-sizing: border-box; cursor: pointer; font-family: var(--font);
  font-size: var(--t-title); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08;
  color: #7C7C82; transition: color .25s, transform .35s var(--ease);
}
.cities button:hover { color: #3A3A3C; }
.cities button[aria-pressed="true"] { color: var(--ink-d); transform: translateX(10px); }
.cities button:focus-visible { outline: 2px solid var(--link-d); outline-offset: 4px; border-radius: 8px; }
.com-pic { width: min(100%, 420px); justify-self: start; }
.com-pic figure { animation: swap .5s var(--ease) both; }
.com-pic figure[hidden] { display: none; }
.com-pic img, .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--tile); }
.ph { display: flex; align-items: flex-end; padding: 28px; color: var(--ink); font-size: var(--t-title); font-weight: 700; letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere; }
.com-pic figcaption { margin-top: 14px; font-size: var(--t-small); font-weight: 600; color: var(--muted-d); }
.com-pic time { font-weight: 400; font-variant-numeric: tabular-nums; }
@keyframes swap { from { opacity: 0; translate: 0 18px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------- archivo ---------- */
.archive { padding: clamp(96px, 14vw, 180px) 0; }
.seg { width: fit-content; margin: 40px auto 0; padding: 4px; display: flex; gap: 2px; background: var(--tile); border-radius: 999px; }
.seg button { height: 36px; min-width: 64px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: var(--t-small); font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s; }
.seg button:hover { background: var(--field); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #000; }
.wall { max-width: var(--wrap); margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--m); display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 20px; }
.wall figure[hidden] { display: none; }
.wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--tile); transition: transform .5s var(--ease); }
.wall figure:hover img { transform: scale(1.025); }
.wall figcaption { margin-top: 12px; display: flex; flex-direction: column; font-size: var(--t-small); line-height: 1.3; font-weight: 600; }
.wall figcaption time { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- familia ---------- */
.family { background: var(--tile); padding: clamp(96px, 14vw, 180px) 0; }
.fam-grid { max-width: var(--wrap); margin: clamp(48px, 6vw, 72px) auto 0; padding: 0 var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fam-tile { min-height: clamp(360px, 38vw, 520px); padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-decoration: none; transition: transform .4s var(--ease); }
.fam-tile:hover { transform: scale(1.012); }
.fam-tile h3 { font-size: var(--t-title); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.fam-handle { font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.fam-tile.light { background: var(--light); color: var(--ink-d); }
.fam-tile.light .fam-handle { color: var(--muted-d); }
.fam-tile.light .more { color: var(--link-d); }
.fam-tile.dark { background: #000; color: var(--ink); }
.fam-tile.dark .fam-handle { color: var(--muted); }

/* ---------- trabajo ---------- */
.jobs { max-width: var(--wrap); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--m); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.jobs-copy { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 40px); }
.jobs-copy a { color: var(--link); }
.apply { background: var(--tile); border-radius: var(--r); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 18px; }
.apply label { display: grid; gap: 8px; font-size: var(--t-small); font-weight: 600; color: var(--muted); }
.apply input, .apply textarea {
  width: 100%; border: 1px solid transparent; border-radius: 14px; background: var(--field); color: var(--ink);
  font: inherit; font-size: var(--t-body); font-weight: 400; letter-spacing: -0.011em; padding: 0 16px; height: 52px;
  transition: border-color .2s, background-color .2s;
}
.apply textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 132px; }
.apply input::placeholder, .apply textarea::placeholder { color: #8E8E93; }
.apply input:hover, .apply textarea:hover { background: var(--field-hi); }
.apply input:focus, .apply textarea:focus { outline: none; border-color: var(--link); }
.apply .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.apply-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 6px; }
.apply-foot .fine { flex: 1 1 220px; }

/* ---------- footer ---------- */
.foot { background: var(--light); color: var(--muted-d); padding: 56px 0 36px; font-size: var(--t-small); }
.foot-cols { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot h2 { font-size: var(--t-small); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink-d); }
.foot a { text-decoration: none; color: var(--muted-d); }
.foot a:hover { color: var(--ink-d); text-decoration: underline; text-underline-offset: 3px; }
.foot-line { max-width: var(--wrap); margin: 56px auto 0; padding: 0 var(--m); }

/* ---------- colores de acento (el rojo es el predeterminado) ---------- */
html[data-accent="mono"] { --accent: #F5F5F7; --on-accent: #000000; --accent-hi: #D2D2D7; --lk-dark: #F5F5F7; --lk-light: #1D1D1F; }
html[data-accent="mono"][data-theme="light"] { --accent: #1D1D1F; --on-accent: #FFFFFF; --accent-hi: #3A3A3C; }
html[data-accent="mono"] .card.orange, html[data-accent="mono"] .card.teal, html[data-accent="mono"] .card.crimson { --c-bg: var(--tile); --c-ink: var(--ink); }
html[data-accent="orange"] { --accent: #F34C00; --on-accent: #000000; --accent-hi: #FF6A2B; --lk-dark: #FF7A33; --lk-light: #B83800; }
html[data-accent="teal"] { --accent: #86CCCE; --on-accent: #000000; --accent-hi: #9FDADC; --lk-dark: #86CCCE; --lk-light: #0E6E72; }
html[data-accent="wine"] { --accent: #B3283F; --on-accent: #FFFFFF; --accent-hi: #C73A52; --lk-dark: #FF7A8E; --lk-light: #A01E36; }
html[data-accent="blue"] { --accent: #0071E3; --on-accent: #FFFFFF; --accent-hi: #0A84FF; --lk-dark: #2997FF; --lk-light: #0066CC; }

/* ---------- selector de color e idioma (herramienta de revisión) ---------- */
.nav-actions { gap: 10px; }
.lang { font-size: var(--t-small); font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 4px; transition: color .2s; }
.lang:hover { color: var(--ink); }
.pick { position: relative; }
.swatches { position: absolute; right: 0; top: calc(100% + 12px); min-width: 250px; padding: 8px; border-radius: 18px; background: var(--tile); display: grid; gap: 2px; z-index: 60; box-shadow: 0 16px 48px rgba(0, 0, 0, .4); /* taste-skill-ignore: popover flotante */ }
.swatches[hidden] { display: none; }
.swatches button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: var(--t-small); font-weight: 500; text-align: left; cursor: pointer; transition: background-color .2s; }
.swatches button:hover { background: var(--field); }
.swatches button[aria-pressed="true"]::after { content: '\2713'; margin-left: auto; font-weight: 700; }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); /* taste-skill-ignore: borde de la muestra de color */ }

/* ---------- fondo claro (el oscuro es el predeterminado) ---------- */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --ink: #1D1D1F; --muted: #6E6E73; --tile: #F5F5F7; --field: #E8E8ED; --field-hi: #DDDDE2;
  --link: var(--lk-light);
}
html[data-theme="light"] .nav { background: rgba(255, 255, 255, .72); }
html[data-theme="light"] .nav nav a { color: #424245; }
html[data-theme="light"] .nav nav a:hover { color: #000; }
html[data-theme="light"] .brand img { filter: invert(1); }
html[data-theme="light"] .toggle[aria-pressed="true"], html[data-theme="light"] .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
html[data-theme="light"] .skip { background: var(--ink); color: #fff; }
html[data-theme="light"] .fam-tile.light { background: #FFFFFF; }
html[data-theme="light"] .fam-tile.dark { background: #1D1D1F; color: #F5F5F7; }
html[data-theme="light"] .fam-tile.dark .fam-handle { color: #A1A1A6; }
html[data-theme="light"] .fam-tile.dark .more { color: var(--lk-dark); }
html[data-theme="light"] .jobs-copy a { color: var(--link); }


/* ---------- consentimiento, páginas legales, fotos ---------- */
.consents { display: grid; gap: 12px; margin-top: 4px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: var(--t-small); font-weight: 400; color: var(--ink); line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--link); text-underline-offset: 3px; }
.apply .fine a { color: var(--link); }
.foot-legal { max-width: var(--wrap); margin: 40px auto 0; padding: 0 var(--m); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-legal a { text-decoration: none; color: var(--muted-d); }
.foot-legal a:hover { color: var(--ink-d); text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) var(--m) clamp(72px, 10vw, 128px); }
.legal h1 { font-size: var(--t-title); margin: 28px 0 16px; }
.legal .lead { margin-bottom: 12px; }
.legal section { margin-top: 40px; display: grid; gap: 14px; }
.legal h2 { font-size: var(--t-lead); letter-spacing: -0.02em; line-height: 1.2; }
.legal p, .legal li { color: var(--ink); line-height: 1.55; }
.legal .back { margin-top: 48px; }
.legal ul { padding-left: 1.2em; list-style: disc; display: grid; gap: 8px; }
.legal a { color: var(--link); text-underline-offset: 3px; }
.legal code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; }
.legal .draft { margin-top: 8px; }
mark.todo { background: #FFE066; color: #000; padding: 0 .25em; border-radius: 4px; }
.nav nav a[aria-current="page"] { color: var(--ink); }
html[data-theme="light"] .nav nav a[aria-current="page"] { color: #000; }
.photos { padding: clamp(96px, 14vw, 180px) 0; }
.photos figure { display: grid; gap: 10px; justify-items: start; }

/* ---------- motion: transform and opacity only ---------- */
.rise-ready [data-rise] { opacity: 0; translate: 0 26px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.rise-ready [data-rise].in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > *, .com-pic figure { animation: none; }
  .fan-l, .fan-r { animation: none; }
  .rise-ready [data-rise] { opacity: 1; translate: 0 0; transition: none; }
  .btn, .card, .wall img, .fam-tile, .cities button, .more::after { transition: none; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  :root { --t-lead: 21px; }
  .rail { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; scroll-snap-type: none; padding: 4px var(--m); }
  .card { flex: none; width: auto; }
  .rail-ctrl { display: none; }
  .nav nav { display: none; }
  .nav-in { grid-template-columns: 1fr auto; }
  .com-grid { grid-template-columns: 1fr; }
  .cities { justify-self: start; width: 100%; }
  .com-pic { justify-self: start; }
  .wall { grid-template-columns: repeat(3, 1fr); gap: 32px 14px; }
  .fam-grid { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr; }
  .jobs-copy { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 559px) {
  .nav-actions { gap: 6px; }
  .toggle { padding: 0 10px; }
  .swatches { right: -64px; }
  .rail { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .apply .row { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .rail-ctrl { display: none; }
  .fan-l { margin-left: calc(var(--w) / -2 - 38vw); }
  .fan-r { margin-left: calc(var(--w) / -2 + 38vw); }
}

header .nav-actions .theme-btn { width: 32px; padding: 0; font-size: 17px; line-height: 1; }
header .nav-actions .theme-btn { background: transparent; color: var(--muted); width: 28px; height: 28px; font-size: 16px; opacity: .8; }
header .nav-actions .theme-btn:hover { background: transparent; color: var(--ink); opacity: 1; }

/* menú móvil */
.menu-btn { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 21px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav nav.open { display: flex; flex-direction: column; gap: 2px; position: fixed; top: var(--nav-h); left: 0; right: 0; padding: 12px var(--m) 28px; background: var(--bg); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
  .nav nav.open a { padding: 12px 0; color: var(--ink); }
}
html[data-theme="light"] .nav nav.open { background: #fff; }

.menu-extras { display: none; }
@media (max-width: 900px) {
  .nav-actions .lang, .nav-actions .theme-btn { display: none; }
  .nav nav.open .menu-extras { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; padding-top: 12px; font-size: var(--t-body); font-weight: 500; }
  .menu-extras .lang { font-size: var(--t-body); color: var(--muted); padding: 8px 0; }
  .menu-extras .theme-btn { border: 0; background: transparent; color: var(--muted); font: inherit; padding: 8px 0; cursor: pointer; }
}

.menu-extras .theme-btn { font-size: 22px; line-height: 1; }

/* menú móvil: borde claro y fondo atenuado para marcar dónde termina */
@media (max-width: 900px) {
  .nav nav.open { background: var(--tile); border-radius: 0 0 24px 24px; }
  html.menu-open { overflow: hidden; }
  html.menu-open .nav::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 100vh; background: rgba(0, 0, 0, .6); z-index: -1; }
}
html[data-theme="light"].menu-open .nav::after { background: rgba(0, 0, 0, .35); }
html[data-theme="light"] .nav nav.open { background: #F5F5F7; }
