/* 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: 40px; 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; }

/* Loading frames for images */
@keyframes shimmer { to { background-position: -200% 0; } }
.wall img, .card-poster img, .com-pic img, .photos img {
  background: linear-gradient(100deg, var(--line, rgba(128,128,128,.14)) 30%, rgba(128,128,128,.28) 50%, var(--line, rgba(128,128,128,.14)) 70%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite; aspect-ratio: 4 / 5; border-radius: inherit;
}
.wall img.loaded, .card-poster img.loaded, .com-pic img.loaded, .photos img.loaded { animation: none; background: none; }
/* DJs */
.djs { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--m); }
.dj-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d, #6E6E73); margin: clamp(28px, 4vw, 48px) 0 16px; }
.dj-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.dj-cards.small { grid-template-columns: repeat(3, 1fr); }
.dj-pic { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #2a2a2e, #0c0c0d); }
.dj-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dj-mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(64px, 10vw, 140px); font-weight: 700; letter-spacing: -.06em; color: rgba(255,255,255,.14); }
.dj-name { display: block; margin-top: 12px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.dj-cards.small .dj-name { font-size: clamp(15px, 1.5vw, 19px); }
.dj-more { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 22px; border: 1px dashed rgba(128,128,128,.4); color: var(--muted-d, #6E6E73); font-weight: 500; text-align: center; padding: 12px; }
@media (max-width: 900px) { .dj-cards.small { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .dj-cards { grid-template-columns: repeat(2, 1fr); } .dj-cards.small { grid-template-columns: repeat(2, 1fr); } }
/* DJ dialog */
button.dj-card { all: unset; display: block; width: 100%; cursor: pointer; box-sizing: border-box; }
button.dj-card:focus-visible { outline: 2px solid var(--link, #fff); outline-offset: 4px; border-radius: 24px; }
.dj-card .dj-pic { display: block; transition: transform .5s var(--ease); }
.dj-card:hover .dj-pic { scale: 1.02; }
.dj-cards > li { min-width: 0; }
#dj-dialog { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(980px, calc(100vw - 24px)); max-height: 92vh; overflow: visible; }
#dj-dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#dj-dialog[open] { animation: djin .4s var(--ease); }
@keyframes djin { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.dj-sheet { position: relative; background: var(--tile); color: var(--ink); border-radius: 32px; padding: clamp(18px, 3vw, 36px); max-height: 92vh; overflow: auto; }
.dj-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--field); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.dj-d-main { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.dj-d-pic { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #2a2a2e, #0c0c0d); }
.dj-d-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dj-d-group { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#dj-d-name { font-size: clamp(40px, 6vw, 84px); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin: 10px 0 24px; }
.dj-d-links { display: flex; flex-wrap: wrap; gap: 10px; }
.dj-link { display: inline-flex; padding: 12px 22px; border-radius: 999px; background: var(--field); color: var(--ink); font-weight: 600; text-decoration: none; }
.dj-link:hover { background: var(--field-hi); }
.dj-soon { color: var(--muted); }
.dj-strip { display: flex; gap: 10px; margin-top: clamp(20px, 3vw, 32px); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dj-strip::-webkit-scrollbar { display: none; }
.dj-strip button { all: unset; flex: 0 0 auto; width: 64px; height: 80px; border-radius: 14px; overflow: hidden; cursor: pointer; opacity: .5; background: linear-gradient(160deg, #2a2a2e, #0c0c0d); display: grid; place-items: center; transition: opacity .3s; }
.dj-strip button.on { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.dj-strip .th { width: 100%; height: 100%; object-fit: cover; }
.dj-strip .th.mono { display: grid; place-items: center; font-weight: 700; color: rgba(255,255,255,.3); font-size: 28px; }
@media (max-width: 700px) { .dj-d-main { grid-template-columns: 1fr; } .dj-d-pic { max-width: 280px; margin: 0 auto; } }

/* Intro (2.6 s, una vez por sesión) */
#intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on #intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 22px; background: #000; color: #F5F5F7; animation: intro-out .9s cubic-bezier(.76, 0, .24, 1) 7s forwards; }
#intro img { width: clamp(84px, 12vw, 140px); height: auto; animation: intro-logo 1.1s var(--ease) both; }
#intro p { font-size: clamp(18px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.02em; color: #A1A1A6; animation: intro-text .9s var(--ease) .55s both; }
@keyframes intro-logo { from { opacity: 0; transform: scale(.82); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes intro-text { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }
/* Reveals: add depth with a soft blur */
.rise-ready [data-rise] { filter: blur(6px); transition: opacity .7s var(--ease), translate .7s var(--ease), filter .7s var(--ease); }
.rise-ready [data-rise].in { filter: blur(0); }
@media (prefers-reduced-motion: reduce) { #intro { display: none !important; } .rise-ready [data-rise] { filter: none; } }

/* More motion */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.marquee { overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; width: max-content; animation: marq 48s linear infinite; }
.marquee span { font-size: clamp(40px, 7vw, 96px); font-weight: 700; letter-spacing: -.05em; color: var(--muted-d); opacity: .45; padding-right: .5em; white-space: nowrap; }
.marquee span::after { content: '\00b7'; padding-left: .5em; }
@keyframes marq { to { transform: translateX(-50%); } }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; transform: translateY(112%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.split.in .w > span { transform: none; }
.tilt { transition: transform .5s var(--ease); will-change: transform; }
.tilt.live { transition: transform .08s linear; }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } .split .w > span { transform: none; transition: none; } .progress { display: none; } }

/* Scroll-driven motion (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero > h1 { animation: rise .9s var(--ease) .05s both, hero-out linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 60svh; }
    .hero > .lead { animation: rise .9s var(--ease) .15s both, hero-out linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 55svh; }
    .hero > .sub { animation: rise .9s var(--ease) .22s both, hero-out linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 50svh; }
    .hero > .hero-cta { animation: rise .9s var(--ease) .3s both, hero-out linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 45svh; }
    @keyframes hero-out { to { transform: translateY(-48px) scale(.96); filter: blur(8px); } }
    .wall img { animation: img-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes img-in { from { scale: 1.14; } to { scale: 1; } }
    .com-pic img { animation: img-par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes img-par { from { translate: 0 4%; } to { translate: 0 -4%; } }
    .card-poster img { animation: img-in linear both; animation-timeline: view(inline); animation-range: entry 0% entry 100%; }
  }
}
.nav { transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 1px 0 rgba(128,128,128,.22); }
.fam-tile { position: relative; overflow: hidden; }
.fam-tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,.18), transparent 60%); }
.fam-tile:hover::after { opacity: 1; }
.dj-d-pic.swap, .dj-d-info.swap { animation: swap .5s var(--ease) both; }
.btn { transition: background-color .2s, transform .3s var(--ease); }

.dj-more-line { margin-top: clamp(28px, 4vw, 48px); text-align: center; font-size: var(--t-lead); font-weight: 500; letter-spacing: -.02em; color: var(--muted-d); }
.dj-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* nav: sliding pill + active section */
.nav nav { position: relative; gap: 4px; }
.nav nav a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; }
.nav nav a.on { color: #fff; }
html[data-theme="light"] .nav nav a.on { color: #000; }
.nav-pill { position: absolute; top: 50%; left: 0; height: 32px; margin-top: -16px; border-radius: 999px; background: rgba(255,255,255,.12); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s; }
html[data-theme="light"] .nav-pill { background: rgba(0,0,0,.07); }
@media (max-width: 860px) { .nav-pill { display: none; } }
/* hero aura + float */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -10% -10% 30% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--hx, 50%) var(--hy, 28%), rgba(243,76,0,.055), transparent 62%),
              radial-gradient(520px circle at 18% 22%, rgba(134,204,206,.06), transparent 62%),
              radial-gradient(520px circle at 84% 30%, rgba(145,36,55,.045), transparent 62%);
  filter: blur(28px); animation: aura 16s ease-in-out infinite alternate; }
@keyframes aura { to { transform: translate3d(2.5%, 3%, 0) scale(1.07); } }
.fan-c { animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .fan-c { animation: none; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply .opt { color: var(--muted); font-weight: 400; }
.apply input[type="file"] { padding: 12px; }
.apply input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--field-hi); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.apply button[disabled] { opacity: .6; cursor: progress; }

/* countdown */
.count { display: inline-flex; gap: .5em; align-items: baseline; margin-top: 22px; padding: 10px 20px; border-radius: 999px; background: var(--tile); font-size: var(--t-small); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.light .count { background: #fff; }
.count[hidden] { display: none; }
.count .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #30D158; align-self: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.6); } 100% { box-shadow: 0 0 0 10px rgba(48,209,88,0); } }
/* stats */
.stats { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--m); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats b { display: block; font-size: clamp(44px, 8vw, 112px); font-weight: 700; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; color: var(--muted-d); font-size: var(--t-lead); letter-spacing: -.02em; font-weight: 500; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }
/* button shine */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
/* lightbox */
.wall figure img { cursor: zoom-in; }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
#lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#lightbox[open] { display: grid; place-items: center; }
#lightbox figure { display: grid; justify-items: center; gap: 14px; margin: 0; }
#lightbox img { max-height: 80vh; max-width: min(88vw, 640px); width: auto; height: auto; border-radius: 28px; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
#lightbox figcaption { color: #F5F5F7; font-weight: 600; letter-spacing: -.02em; text-align: center; }
#lightbox figcaption time { display: block; color: #A1A1A6; font-weight: 500; }
.lb-x, .lb-nav { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.lb-x { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }
/* theme view transition */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* section tint layer */
#tint { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--tint, transparent); transition: background-color .9s var(--ease); }
html[data-tint="orange"] { --tint: #FFF0E6; } html[data-tint="teal"] { --tint: #E8F6F6; } html[data-tint="wine"] { --tint: #FBEBEF; }
html:not([data-theme="light"])[data-tint="orange"] { --tint: #1C0C04; } html:not([data-theme="light"])[data-tint="teal"] { --tint: #071819; } html:not([data-theme="light"])[data-tint="wine"] { --tint: #1A070B; }
.djs, .stats, .next, .archive, .jobs, .manifesto { background: transparent; }
/* manifesto scrub */
.manifesto { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--m); }
.scrub { font-size: clamp(34px, 6.4vw, 92px); font-weight: 700; letter-spacing: -.05em; line-height: 1.05; text-wrap: balance; }
.scrub span { color: var(--muted-d); opacity: .35; transition: opacity .35s var(--ease), color .35s; }
.scrub span.on { opacity: 1; color: var(--ink); }
html[data-theme="light"] .scrub span.on { color: #1D1D1F; }
/* giant wordmark */
.giant { overflow: hidden; text-align: center; padding: clamp(32px, 6vw, 96px) 0 0; background: var(--light); }
.giant span { display: inline-block; font-size: clamp(120px, 34vw, 520px); font-weight: 800; letter-spacing: -.07em; line-height: .8; color: #1D1D1F; transform: translateY(40%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.giant.in span { transform: translateY(8%); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .giant span { transform: translateY(8%); opacity: 1; transition: none; } #tint { transition: none; } }

/* loading page */
html.intro-on.intro-leave #intro { animation: intro-out .9s cubic-bezier(.76, 0, .24, 1) forwards; }
#intro .ld { width: min(240px, 52vw); height: 2px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; margin-top: 10px; }
#intro .ld i { display: block; height: 100%; width: 100%; background: #F5F5F7; transform: scaleX(0); transform-origin: 0 50%; }
#intro .ld-pct { font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .08em; color: #86868b; }
#intro .ld-pct::after { content: '%'; }
/* city poster reveal */
.com-pic figure { animation: reveal .8s var(--ease) both; }
@keyframes reveal { from { clip-path: inset(0 0 100% 0 round 28px); opacity: 0; translate: 0 14px; } to { clip-path: inset(0 0 0 0 round 28px); opacity: 1; translate: 0 0; } }
/* year segmented pill */
.seg { position: relative; }
.seg .seg-pill { position: absolute; top: 4px; left: 0; height: 36px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.seg button { position: relative; z-index: 1; }
.seg button[aria-pressed="true"] { background: transparent; color: #000; }
html[data-theme="light"] .seg button[aria-pressed="true"] { color: #fff; }
html[data-theme="light"] .seg .seg-pill { background: #1D1D1F; }
/* back to top ring */
.totop { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); cursor: pointer; z-index: 90; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 100%; height: 100%; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.totop .trk { stroke: rgba(128,128,128,.28); } .totop .bar { stroke: var(--ink); stroke-dasharray: 125.7; stroke-dashoffset: 125.7; transform: rotate(-90deg); transform-origin: 50% 50%; }
.totop path { stroke: var(--ink); }
/* footer link underline slide */
.foot a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; text-decoration: none !important; }
.foot a:hover { background-size: 100% 1px; }

/* tint layers: one per section, cross-faded; events use a gradient of all the flyers */
#tint { background: none; transition: none; }
#tint > i { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.t-flyers { background: linear-gradient(100deg, #FFE6D6 0%, #FFF3EA 22%, #E6F5F5 50%, #F6E6EA 80%, #F8DCE3 100%); }
.t-teal { background: #E8F6F6; }
.t-wine { background: #FBEBEF; }
html:not([data-theme="light"]) .t-flyers { background: linear-gradient(100deg, #2A1005 0%, #120A06 22%, #081C1D 50%, #1B0A0F 80%, #2A0B14 100%); }
html:not([data-theme="light"]) .t-teal { background: #071819; }
html:not([data-theme="light"]) .t-wine { background: #1A070B; }
html[data-tint="orange"] #tint .t-flyers, html[data-tint="teal"] #tint .t-teal, html[data-tint="wine"] #tint .t-wine { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #tint > i { transition: none; } }

/* file drop */
.apply .file { display: grid; gap: 8px; }
.file-l { font-size: var(--t-small); font-weight: 600; }
.file-l em { font-style: normal; font-weight: 400; color: var(--muted); }
.file-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed rgba(128,128,128,.45); border-radius: 14px; background: var(--field); cursor: pointer; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--field-hi); }
.drop.over { transform: scale(1.01); }
.file-in:focus-visible + .drop { outline: 2px solid var(--link); outline-offset: 3px; }
.drop svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-t { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #000; font-weight: 600; font-size: var(--t-small); white-space: nowrap; }
html[data-theme="light"] .drop-t { background: #1D1D1F; color: #fff; }
.drop-n { color: var(--muted); font-size: var(--t-small); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop.has .drop-n { color: var(--ink); font-weight: 600; }
/* family tiles */
.fam-tile { position: relative; overflow: hidden; isolation: isolate; justify-content: space-between; align-items: flex-start; }
.fam-tile::before { content: ''; position: absolute; inset: -30%; z-index: -1; animation: famdrift 14s ease-in-out infinite alternate; }
.fam-tile.light::before { background: radial-gradient(40% 40% at 25% 30%, rgba(255,166,120,.45), transparent 70%), radial-gradient(38% 38% at 78% 72%, rgba(134,204,206,.5), transparent 70%); }
.fam-tile.dark::before { background: radial-gradient(40% 40% at 70% 28%, rgba(52,170,220,.38), transparent 70%), radial-gradient(40% 40% at 22% 80%, rgba(236,200,140,.26), transparent 70%); }
@keyframes famdrift { to { transform: translate3d(6%, 5%, 0) rotate(8deg) scale(1.08); } }
.fam-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: var(--t-small); font-weight: 600; background: rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fam-tile.dark .fam-chip { background: rgba(255,255,255,.12); }
.fam-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fam-mono { position: absolute; right: -2%; top: 4%; z-index: -1; font-size: clamp(200px, 30vw, 420px); font-weight: 800; letter-spacing: -.08em; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(0,0,0,.12); transition: transform .8s var(--ease); }
.fam-tile.dark .fam-mono { -webkit-text-stroke-color: rgba(255,255,255,.16); }
.fam-tile:hover .fam-mono { transform: translate(-3%, 3%) rotate(-3deg); }
.fam-txt { margin-top: auto; align-self: stretch; }
.fam-go { position: absolute; right: clamp(22px, 3vw, 40px); bottom: clamp(22px, 3vw, 40px); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: #1D1D1F; color: #fff; transition: transform .45s var(--ease); }
.fam-tile.dark .fam-go { background: #F5F5F7; color: #000; }
.fam-tile:hover .fam-go { transform: translate(4px, -4px) rotate(8deg); }
@media (prefers-reduced-motion: reduce) { .fam-tile::before { animation: none; } }
@media (max-width: 700px) { .fam-grid { grid-template-columns: 1fr; } }
.apply .drop { display: flex; flex-direction: row; align-items: center; gap: 12px; font-weight: 400; }
.apply .drop .drop-t { flex: none; }
.apply .drop .drop-n { flex: 1 1 auto; }

/* loading: solo el logo, respirando */
#intro img { animation: intro-logo 1.1s var(--ease) both, breathe 2.2s ease-in-out 1.1s infinite alternate; width: clamp(96px, 14vw, 168px); }
@keyframes breathe { from { transform: scale(1); opacity: 1; } to { transform: scale(1.06); opacity: .8; } }

/* loading: mismo fondo que la página y salida en fundido (sin salto de negro a blanco) */
html.intro-on #intro { background: var(--bg); color: var(--ink); }
html[data-theme="light"] #intro img { filter: invert(1); }
@keyframes intro-out { to { opacity: 0; transform: scale(1.03); visibility: hidden; } }
html.intro-on.intro-leave #intro { animation: intro-out .9s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes intro-logo-l { from { opacity: 0; transform: scale(.82); filter: invert(1) blur(14px); } to { opacity: 1; transform: none; filter: invert(1) blur(0); } }
html[data-theme="light"] #intro img { animation: intro-logo-l 1.1s var(--ease) both, breathe 2.2s ease-in-out 1.1s infinite alternate; }

/* outro: el logo se aleja y se abre sobre la página */
@keyframes logo-zoom { 0% { transform: scale(1); opacity: 1; } 16% { transform: scale(.9); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(26); opacity: 0; filter: blur(6px); } }
@keyframes logo-zoom-l { 0% { transform: scale(1); opacity: 1; filter: invert(1); } 16% { transform: scale(.9); opacity: 1; filter: invert(1); } 70% { opacity: 1; filter: invert(1); } 100% { transform: scale(26); opacity: 0; filter: invert(1) blur(6px); } }
@keyframes intro-fade { to { opacity: 0; visibility: hidden; } }
html.intro-on.intro-leave #intro { animation: intro-fade .55s cubic-bezier(.4, 0, .2, 1) .5s forwards; }
html.intro-on.intro-leave #intro img { animation: logo-zoom 1.1s cubic-bezier(.7, 0, .84, 0) forwards; }
html[data-theme="light"].intro-on.intro-leave #intro img { animation: logo-zoom-l 1.1s cubic-bezier(.7, 0, .84, 0) forwards; }

/* family tiles: brand assets */
.fam-tile.numa { background: #0b0b0b; color: #F5F5F7; }
.fam-tile.numa::before, .fam-tile.numa .fam-mono { display: none; }
.fam-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05); opacity: .72; transition: transform 1.2s var(--ease), opacity .6s; }
.fam-tile.numa::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.75) 100%); opacity: 1; transition: none; }
.fam-tile.numa:hover .fam-photo { transform: scale(1.06); opacity: .85; }
.fam-tile.numa .fam-chip { background: rgba(255,255,255,.14); }
.fam-tile.numa .fam-go { background: #F5F5F7; color: #000; }
.numa-sub { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; letter-spacing: .32em; font-weight: 500; opacity: .85; }
.numa-word { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(64px, 9vw, 132px) !important; font-weight: 700; letter-spacing: -.02em !important; line-height: .9 !important; text-transform: none; margin: 6px 0 14px; }
.fam-tile.numa .fam-handle { color: #C7C7CC; }
.zulu-logo { width: min(78%, 520px); height: auto; margin: auto 0 0; align-self: flex-start; transition: transform .8s var(--ease); }
.fam-tile.zulu:hover .zulu-logo { transform: rotate(-2deg) scale(1.03); }
.fam-tile.zulu .fam-txt { margin-top: 18px; }
.zulu-sub { font-size: var(--t-lead); font-weight: 600; letter-spacing: -.02em; }
.fam-tile.zulu::before { display: none; }
.fam-tile.zulu { background: #F5F5F7; }
