/* =============================================================
   Agencia Creativa Óninat — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Components
   5. Sections · 6. Effects · 7. Responsive · 8. Reduced motion
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #080C08;
  --bg-2: #0D130D;
  --card: #121A12;
  --line: #1E2A1E;
  --line-2: #2A3A2A;
  --lime: #A8FF3E;
  --gold: #F5C240;
  --text: #EEF5EE;
  --muted: #9FB29F;
  --muted-2: #7D8F7F;
  --dim: #243024;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;

  --gutter: clamp(1rem, 4vw, 4.5rem);
  --max: 1440px;
  --nav-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1; font-weight: 800; }
em { font-style: normal; }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Utilities ---------- */
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--lime); color: var(--bg);
  font-weight: 500; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- 4. Components ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .9rem 1.6rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s, color .3s;
}
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-line { border: 1px solid var(--line-2); color: var(--text); }
.btn-dark { background: var(--bg); color: var(--lime); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); }
  .btn-lime:hover { box-shadow: 0 14px 34px -12px rgba(168, 255, 62, .55); }
  .btn-line:hover { border-color: var(--lime); color: var(--lime); }
  .btn-dark:hover { box-shadow: 0 14px 30px -12px rgba(8, 12, 8, .6); }
}

.sec-tag {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--lime);
}
.sec-tag { flex-wrap: wrap; row-gap: .3rem; }
.sec-tag span:first-child {
  display: inline-flex; align-items: center; gap: .75rem; color: var(--gold); white-space: nowrap;
}
.sec-tag span:first-child::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.sec-tag-dark, .sec-tag-dark span:first-child { color: var(--bg); }

.sec-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.3rem, 4.6vw, 4.6rem); line-height: .95; letter-spacing: -.005em;
  max-width: 22ch; margin-top: 1.4rem;
}
.sec-lead { color: var(--muted); font-size: clamp(1.02rem, 1.25vw, 1.2rem); max-width: 60ch; margin-top: 1.4rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .85rem; color: var(--muted); background: var(--bg-2);
  transition: border-color .25s, color .25s;
}
@media (hover: hover) { .chips li:hover { border-color: var(--lime); color: var(--text); } }

/* ---------- 5. Sections ---------- */

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
body:not([data-page="inicio"]) .nav { background: rgba(8, 12, 8, .94); border-bottom-color: var(--line); }
.nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--lime); }
.nav-links a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.nav-cta[aria-current="page"] { background: var(--lime); color: var(--bg); }
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(8, 12, 8, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img { width: 40px; height: 40px; }
.nav-logo span { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; }
.nav-links {
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem);
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase;
}
.nav-links a:not(.nav-cta) { position: relative; padding: .3rem 0; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lime);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
@media (hover: hover) { .nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; } }
.nav-cta { padding: .55rem 1.1rem; border: 1px solid var(--lime); border-radius: 999px; color: var(--lime); transition: background-color .25s, color .25s; }
@media (hover: hover) { .nav-cta:hover { background: var(--lime); color: var(--bg); } }
.nav-tools { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button {
  font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .1em;
  padding: .3rem .65rem; border-radius: 999px; color: var(--muted-2); transition: background-color .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.nav-burger { display: none; width: 44px; height: 44px; position: relative; }
.nav-burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .3s var(--ease-out); }
.nav-burger i:nth-of-type(1) { top: 17px; }
.nav-burger i:nth-of-type(2) { top: 25px; }
.nav-burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  isolation: isolate; overflow: clip;
}
.hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; }
.hero-kicker {
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero-kicker b { color: var(--lime); font-weight: 700; }
.hero-title {
  margin-top: 1.6rem;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.6vw, 6.4rem); line-height: .93; letter-spacing: -.01em;
}
.hl { display: flex; align-items: flex-start; gap: .35em; }
.hl + .hl { margin-top: .08em; }
.hl-n {
  font-family: var(--display); font-weight: 700; font-size: .26em; letter-spacing: .1em;
  color: var(--lime); padding-top: .55em; min-width: 1.6em;
}
.hl:nth-child(2) > span:last-child { color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.6rem; }

.hero-reels {
  position: relative; z-index: 1; grid-column: 2; grid-row: 1; margin-right: calc(-1 * var(--gutter) - 2vw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.2vw, 1.2rem); align-items: start;
}
.reel { position: relative; border-radius: 14px; overflow: hidden; background: var(--card); aspect-ratio: 9 / 16; border: 1px solid var(--line); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-1 { margin-top: 18%; }
.reel-2 { margin-top: 0; }
.reel-3 { margin-top: 34%; }
.hero-grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Manifesto */
.manifesto {
  padding: clamp(6rem, 14vw, 12rem) var(--gutter); max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end;
}
.manifesto-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.4vw, 7.6rem); line-height: .92; max-width: 14ch;
}
.manifesto-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none;
  color: var(--lime); letter-spacing: -.02em;
}
.manifesto-title .w { transition: color .35s; }
.js .manifesto-title[data-split-done] .w { color: var(--dim); }
.js .manifesto-title[data-split-done] .w.is-lit { color: var(--text); }
.js .manifesto-title[data-split-done] em .w.is-lit { color: var(--lime); }
/* el párrafo queda a la altura de "No es el producto" */
.manifesto-body { padding-bottom: .6em; }
.manifesto-body p { max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--muted); }

/* Units index */
.units { padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem); max-width: var(--max); margin: 0 auto; }
.units-list { border-top: 1px solid var(--line-2); }
.unit { border-bottom: 1px solid var(--line-2); }
.unit a {
  position: relative; display: grid; align-items: center; gap: 1.5rem;
  grid-template-columns: 4rem minmax(0, 1.25fr) minmax(0, 1fr) 150px 2.5rem;
  padding: clamp(1.4rem, 2.6vw, 2.4rem) 1rem; isolation: isolate; overflow: hidden;
  transition: color .4s var(--ease-out);
}
.unit a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out);
}
.unit-n { font-family: var(--display); font-weight: 700; color: var(--gold); letter-spacing: .1em; transition: color .4s; }
.unit-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 3.8vw, 3.6rem); line-height: .95; }
.unit-desc { color: var(--muted); font-size: 1rem; transition: color .4s; }
.unit-thumb {
  width: 150px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  opacity: .0; transform: scale(.9) rotate(-3deg); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.unit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.unit-arrow { font-size: 1.8rem; justify-self: end; transition: transform .4s var(--ease-out); }
@media (hover: hover) {
  .unit a:hover { color: var(--bg); }
  .unit a:hover::before { transform: scaleY(1); }
  .unit a:hover .unit-n, .unit a:hover .unit-desc { color: var(--bg); }
  .unit a:hover .unit-thumb { opacity: 1; transform: none; }
  .unit a:hover .unit-arrow { transform: translateX(6px); }
}

/* Video section */
.video { padding: clamp(5rem, 9vw, 8rem) var(--gutter); max-width: var(--max); margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: clamp(2.5rem, 4vw, 3.5rem) 0 1.6rem; }
.filters button {
  padding: .55rem 1.1rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: background-color .25s, color .25s, border-color .25s;
}
.filters button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--bg); }
@media (hover: hover) { .filters button:hover:not([aria-pressed="true"]) { border-color: var(--lime); color: var(--text); } }

.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.4vw, 1.2rem); grid-auto-flow: dense; }
.work[hidden] { display: none; }
.work-wide { grid-column: span 2; }
.work-btn { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; }
.work-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .45s var(--ease-out), border-color .3s, box-shadow .45s var(--ease-out);
}
.work-wide .work-media { aspect-ratio: auto; flex: 1; min-height: 0; }
.work-wide .work-media img, .work-wide .work-media video { position: absolute; inset: 0; }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; }
.work-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.work.is-previewing .work-media video { opacity: 1; }
.work-play {
  position: absolute; right: .8rem; bottom: .8rem; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: .9rem; padding-left: 3px;
  background: rgba(8, 12, 8, .72); color: var(--lime); border: 1px solid rgba(168, 255, 62, .35);
  transition: transform .35s var(--ease-out), background-color .3s, color .3s;
}
.work-cap { display: block; padding: .85rem .2rem 0; }
.work-cap b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.work-cap span { display: block; font-size: .86rem; color: var(--muted-2); margin-top: .15rem; }
@media (hover: hover) {
  .work-btn:hover .work-media { transform: translateY(-6px); border-color: rgba(168, 255, 62, .5); box-shadow: 0 24px 50px -24px rgba(168, 255, 62, .35); }
  .work-btn:hover .work-play { background: var(--lime); color: var(--bg); transform: scale(1.08); }
}

.work-next a {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 260px;
  padding: 1.4rem; border-radius: 12px; border: 1px dashed rgba(168, 255, 62, .45); color: var(--text);
  transition: background-color .35s var(--ease-out), color .35s;
}
.work-next span { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: .95; }
.work-next b { font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); transition: color .35s; }
@media (hover: hover) { .work-next a:hover { background: var(--lime); color: var(--bg); } .work-next a:hover b { color: var(--bg); } }

/* Making of: título que separa la grilla de la sección */
.making-head {
  margin-top: clamp(6rem, 11vw, 10rem); padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem;
}
.making-kicker { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .85; color: var(--lime); }
.making-sub { font-family: var(--display); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: clamp(.95rem, 1.4vw, 1.2rem); color: var(--gold); }
.making-head + .making { margin-top: clamp(3rem, 6vw, 5rem); }

/* Making of */
.making {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(6rem, 11vw, 10rem);
}
.making-media { position: sticky; top: calc(var(--nav-h) + 4vh); height: min(80vh, 760px); align-self: start; }
.mk-fig {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.mk-fig.is-active { opacity: 1; transform: none; }
.mk-fig img { width: 100%; height: 100%; object-fit: cover; }
.mk-fig-sheet { display: grid; place-items: center; background: #76685D; }
.mk-fig-sheet img { height: auto; object-fit: contain; }
.making-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .95; margin-top: 1.2rem; max-width: 14ch; }
.making-lead { color: var(--muted); margin-top: 1.2rem; max-width: 52ch; }
.making-steps ol { margin-top: 3rem; }
.mk-step { min-height: 52vh; padding: 2rem 0 2rem 1.6rem; border-left: 1px solid var(--line-2); position: relative; transition: border-color .4s; }
.mk-step::before {
  content: ""; position: absolute; left: -1px; top: 2rem; width: 3px; height: 0; background: var(--lime); transition: height .6s var(--ease-out);
}
.mk-step.is-active::before { height: 3.4rem; }
.mk-n { font-family: var(--display); font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.mk-step h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin-top: .4rem; }
.mk-step p { color: var(--muted); margin-top: .7rem; max-width: 44ch; }
.mk-inline { display: none; }
.mk-step:last-child { min-height: 40vh; }

/* Capabilities + process */
.caps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(5rem, 9vw, 8rem); }
.caps-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: .02em; }
.caps-lead { color: var(--muted); margin-top: 1rem; max-width: 52ch; }
.acc { margin-top: 1.6rem; border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase;
  transition: color .25s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--lime); transition: transform .35s var(--ease-out); }
.acc details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .acc summary:hover { color: var(--lime); } }
.acc details p { color: var(--muted); padding: 0 0 1.2rem; max-width: 52ch; }
.stack-label { margin: 2rem 0 .9rem; font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); font-size: .9rem; }

.timeline { margin-top: 1.8rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.1rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1.2rem; padding: .9rem 0; position: relative; }
.timeline b {
  position: relative; z-index: 1; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--lime); color: var(--lime); font-family: var(--display); font-weight: 700; font-size: .85rem;
}
.timeline h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .03em; padding-top: .25rem; }
.timeline p { color: var(--muted); font-size: .95rem; margin-top: .2rem; }

/* Automation — full lime */
.auto { background: var(--lime); color: var(--bg); padding: clamp(5rem, 10vw, 9rem) 0; overflow: clip; }
.auto-inner { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.auto-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.auto-fig { border-radius: 16px; overflow: hidden; border: 2px solid var(--bg); box-shadow: 0 30px 60px -30px rgba(8, 12, 8, .6); transform: rotate(1.5deg); }
.js .auto-fig.reveal.is-visible { transform: rotate(1.5deg); }
.auto-fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.auto-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 6.2vw, 6.8rem); line-height: .88; max-width: 12ch; margin-top: 1.4rem; }
.auto-lead { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 400; max-width: 54ch; margin-top: 1.8rem; }
.ticker { margin: clamp(3.5rem, 6vw, 5rem) 0; border-block: 2px solid var(--bg); padding: 1rem 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tick 38s linear infinite; }
.ticker-track span {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 5.6rem); line-height: 1; padding-right: .4em;
}
/* palabras rellenas que quedan en contorno al pasar el mouse; los puntos siempre llenos */
.ticker-track .tw { font-weight: inherit; color: var(--bg); -webkit-text-stroke: 1.5px var(--bg); transition: color .25s var(--ease-out); cursor: default; }
.ticker-track .tw:hover { color: transparent; }
.ticker-track .td { font-style: normal; color: var(--bg); padding: 0 .28em; }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
@keyframes tick { to { transform: translateX(-50%); } }
.auto-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--bg); }
.auto-steps li { padding: 1.6rem 1.4rem 1.8rem 0; border-right: 1px solid rgba(8, 12, 8, .25); }
.auto-steps li + li { padding-left: 1.4rem; }
.auto-steps li:last-child { border-right: 0; }
.auto-steps span { font-family: var(--display); font-weight: 700; letter-spacing: .1em; font-size: .95rem; }
.auto-steps h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 2.3vw, 2.2rem); margin-top: .8rem; }
.auto-steps p { margin-top: .7rem; font-weight: 400; font-size: .98rem; }
.auto-note { margin: 2.8rem 0 1.8rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.7rem); max-width: 40ch; line-height: 1.3; }

/* Trainings */
.cap { padding: clamp(5rem, 10vw, 9rem) var(--gutter); max-width: var(--max); margin: 0 auto; }
.cap-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.formats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.formats li {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2);
  cursor: default; transition: transform .3s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .3s var(--ease-out);
}
@media (hover: hover) {
  .formats li:hover { transform: translateY(-3px); background: var(--lime); border-color: var(--lime); color: var(--bg); box-shadow: 0 10px 24px -12px rgba(168, 255, 62, .55); }
}
.cap-photos { position: relative; height: clamp(360px, 42vw, 560px); }
.ph { position: absolute; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-1 { width: 68%; aspect-ratio: 4 / 3; left: 0; top: 0; transform: rotate(-2deg); }
.ph-2 { width: 54%; aspect-ratio: 4 / 3; right: 0; top: 28%; transform: rotate(2.5deg); z-index: 2; }
.ph-3 { width: 50%; aspect-ratio: 3 / 2; left: 12%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.js .ph.reveal.is-visible.ph-1 { transform: rotate(-2deg); }
.js .ph.reveal.is-visible.ph-2 { transform: rotate(2.5deg); }
.js .ph.reveal.is-visible.ph-3 { transform: rotate(-1deg); }

.learn { margin-top: clamp(5rem, 9vw, 8rem); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.tabs button {
  padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: background-color .25s, color .25s, border-color .25s;
}
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (hover: hover) { .tabs button:hover:not([aria-selected="true"]) { border-color: var(--lime); color: var(--text); } }
.panels { margin-top: 2rem; min-height: 15rem; }
.panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.panel[hidden] { display: none; }
.panel li {
  display: flex; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15;
}
.panel li::before { content: ""; flex: none; width: 22px; height: 3px; background: var(--lime); transform: translateY(-.3em); }
.panel:not([hidden]) { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.chips-tools { margin-top: 2.6rem; }

.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(4rem, 7vw, 6rem); }
.method li { padding: 1.6rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease-out), border-color .3s; }
.method b { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 1.1rem; letter-spacing: .08em; }
.method h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; margin-top: .9rem; }
.method p { color: var(--muted); font-size: .95rem; margin-top: .6rem; }
@media (hover: hover) { .method li:hover { transform: translateY(-4px); border-color: rgba(168, 255, 62, .45); } }

/* Clients */
.clients { padding: clamp(4rem, 8vw, 7rem) 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: clip; }
.clients-title {
  padding: 0 var(--gutter); margin-bottom: 2.6rem; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .24em; text-transform: uppercase; color: var(--lime);
}
.marquee { display: grid; gap: 1.2rem; }
.marquee-row { display: flex; width: max-content; animation: marq 70s linear infinite; }
.marquee-row-rev { animation-direction: reverse; animation-duration: 80s; }
.marquee-row li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem); color: rgba(238, 245, 238, .72); transition: color .25s;
}
.marquee-row li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin: 0 clamp(1.2rem, 2.4vw, 2.2rem); opacity: .7; }
/* logo en blanco; al pasar el mouse, su color original sobre una pastilla clara */
.lg { display: inline-grid; place-items: center; padding: .55rem .9rem; border-radius: 12px; transition: background-color .3s var(--ease-out); }
.lg img { grid-area: 1 / 1; height: calc(var(--h, 44) * 1px * var(--k, 1)); width: auto; max-width: none; transition: opacity .3s var(--ease-out); }
.lg-w { opacity: .72; }
.lg-c { opacity: 0; }
@media (max-width: 719px) { .marquee { --k: .72; } }
@media (hover: hover) {
  .marquee:hover .marquee-row { animation-play-state: paused; }
  .marquee-row li:hover { color: var(--text); }
  .marquee-row li:hover .lg { background: #F4F4EF; }
  .marquee-row li:hover .lg-w { opacity: 0; }
  .marquee-row li:hover .lg-c { opacity: 1; }
}
@keyframes marq { to { transform: translateX(-50%); } }

/* About */
.about { padding: clamp(6rem, 11vw, 10rem) var(--gutter); max-width: var(--max); margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem clamp(2.5rem, 6vw, 6rem); align-items: end; }
.about-grid .sec-tag { grid-column: 1 / -1; }
.about-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 5.6vw, 5.6rem); line-height: .92; }
.about-body p { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.2rem); }
.about-body p + p { margin-top: 1rem; }

/* Contact */
.contact {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter); max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem);
}
.contact-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 6rem); line-height: .9; max-width: 11ch; }
.contact-title::first-line { color: var(--text); }
.contact-direct { margin-top: 2.6rem; border-top: 1px solid var(--line-2); }
.contact-direct li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.contact-direct span { font-family: var(--display); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .9rem; color: var(--lime); }
.contact-direct a { font-size: 1.1rem; font-weight: 400; transition: color .25s; }
@media (hover: hover) { .contact-direct a:hover { color: var(--lime); } }

.contact-form-wrap { position: relative; }
.cta-form { display: grid; gap: 1.3rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.field { display: grid; gap: .45rem; border: 0; }
.field > label, .field legend { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .88rem; color: var(--muted); }
.field small { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 300; }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem 1rem; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(168, 255, 62, .15); }
.field-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.field-chips legend { width: 100%; margin-bottom: .5rem; }
.field-chips label { position: relative; cursor: pointer; }
.field-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.field-chips span {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .92rem; color: var(--muted);
  transition: background-color .25s, color .25s, border-color .25s;
}
.field-chips input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--bg); font-weight: 500; }
.field-chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.cta-submit { justify-self: start; min-width: 170px; }
.cta-form-spinner { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form-spinner::after { content: ""; width: 18px; height: 18px; border: 2px solid rgba(8, 12, 8, .25); border-top-color: var(--bg); border-radius: 50%; animation: spin .9s linear infinite; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-error { color: var(--gold); font-size: .95rem; }
.form-note { font-size: .85rem; color: var(--muted-2); margin-top: -.4rem; }
.cta-form-error a { text-decoration: underline; }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.cta-success {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .8rem; padding: 2rem;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .8s var(--ease-out) .25s, transform .9s var(--ease-soft) .25s;
}
.cta-success h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); color: var(--lime); }
.cta-success p { color: var(--muted); }
.cta-success.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cierre con llamado a contacto (páginas internas y portada) */
.band { padding: clamp(4rem, 8vw, 7rem) var(--gutter); border-top: 1px solid var(--line); }
.band-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; }
.band-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .92; max-width: 16ch; }

/* Transición suave entre páginas (navegadores que la soportan) */
@view-transition { navigation: auto; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 2.4rem var(--gutter);
  border-top: 1px solid var(--line); color: var(--muted-2); font-size: .92rem;
}
.footer img { width: 48px; height: 48px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
@media (hover: hover) { .footer-nav a:hover { color: var(--lime); } }
@media (hover: hover) { .footer-links a:hover { color: var(--lime); } }

/* Player */
.player { border: 0; padding: 0; background: transparent; color: var(--text); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.player::backdrop { background: rgba(4, 6, 4, .92); }
.player[open] { display: grid; place-items: center; }
.player-box {
  position: relative; display: grid; grid-template-columns: auto minmax(240px, 340px); gap: 2rem; align-items: end; justify-content: center;
  width: min(1180px, 94vw); max-height: 92vh; padding: 1rem;
}
.player-box.is-wide { grid-template-columns: minmax(0, 1fr); }
.player-video video { display: block; max-height: 86vh; max-width: 100%; border-radius: 12px; background: #000; }
.player-box.is-wide .player-video video { width: 100%; max-height: 70vh; }
.player-info h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 2.2rem; color: var(--lime); }
.player-meta { font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
.player-info p:last-child { color: var(--muted); margin-top: .9rem; }
.player-close {
  position: absolute; top: -.4rem; right: -.4rem; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2); font-size: 1.1rem; transition: background-color .25s, color .25s;
}
@media (hover: hover) { .player-close:hover { background: var(--lime); color: var(--bg); } }

/* ---------- 6. Effects: reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.js .hero .hl, .js .hero-kicker, .js .hero-actions { opacity: 0; transform: translateY(30px); animation: heroIn 1s var(--ease-out) forwards; }
.js .hero-kicker { animation-delay: .1s; }
.js .hero .hl:nth-child(1) { animation-delay: .2s; }
.js .hero .hl:nth-child(2) { animation-delay: .32s; }
.js .hero .hl:nth-child(3) { animation-delay: .44s; }
.js .hero-actions { animation-delay: .6s; }
.js .reel { opacity: 0; animation: reelIn 1.2s var(--ease-out) forwards; }
.js .reel-1 { animation-delay: .35s; }
.js .reel-2 { animation-delay: .5s; }
.js .reel-3 { animation-delay: .65s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes reelIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Responsive ---------- */
@media (max-width: 1279px) {
  .unit a { grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr) 2rem; }
  .unit-thumb { display: none; }
}
@media (max-width: 959px) {
  :root { --nav-h: 62px; }
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 1.6rem; transform: translateY(-120%); visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s .45s;
  }
  .nav-links a { padding: .8rem 0 !important; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { border: 0; border-radius: 0; color: var(--lime); }
  .nav.is-open .nav-links { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
  .nav.is-open { background: var(--bg); }

  .hero { grid-template-columns: 1fr; align-items: end; padding-bottom: 2.4rem; }
  .hero-reels { position: absolute; inset: 0; height: auto; display: block; margin: 0; grid-column: auto; grid-row: auto; }
  .reel { position: absolute; inset: 0; margin: 0 !important; border: 0; border-radius: 0; aspect-ratio: auto; }
  .reel-1, .reel-3 { display: none; }
  .reel-2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,8,.6) 0%, rgba(8,12,8,.2) 22%, rgba(8,12,8,.78) 42%, rgba(8,12,8,.9) 75%, var(--bg) 100%); }
  .hero-copy { padding-top: 30vh; }

  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-wide .work-media { aspect-ratio: 16 / 9; flex: none; }
  .making { grid-template-columns: 1fr; }
  .making-media { display: none; }
  .mk-step { min-height: 0; padding-bottom: 2.4rem; }
  .mk-inline { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 1.2rem; border: 1px solid var(--line); }
  .caps, .cap-top, .about-grid, .contact, .auto-head, .manifesto { grid-template-columns: 1fr; }
  .auto-fig { transform: none; }
  .js .auto-fig.reveal.is-visible { transform: none; }
  .auto-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auto-steps li:nth-child(2) { border-right: 0; }
  .auto-steps li:nth-child(3) { padding-left: 0; }
  .auto-steps li:nth-child(n+3) { border-top: 1px solid rgba(8, 12, 8, .25); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { grid-template-columns: 1fr; }
  .player-box { grid-template-columns: 1fr; gap: 1rem; overflow-y: auto; padding-top: 3.2rem; }
  .player-video video { max-height: 62vh; margin: 0 auto; }
  .player-close { top: .2rem; right: .6rem; }
}
@media (max-width: 719px) {
  body { font-size: 16px; }
  .lang button { padding: .3rem .55rem; }
  .unit a { grid-template-columns: 2.4rem minmax(0, 1fr) 1.6rem; row-gap: .5rem; padding-inline: .2rem; }
  .unit-desc { grid-column: 2 / 3; font-size: .95rem; }
  .unit-arrow { grid-row: 1; grid-column: 3; }
  .manifesto-body { justify-content: flex-start; }
  .auto-steps, .method { grid-template-columns: 1fr; }
  .auto-steps li { border-right: 0 !important; padding-left: 0 !important; border-top: 1px solid rgba(8, 12, 8, .25); }
  .auto-steps li:first-child { border-top: 0; }
  .cap-photos { height: 420px; }
  .ph-1 { width: 82%; }
  .ph-2 { width: 64%; top: 34%; }
  .ph-3 { width: 62%; left: 4%; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 539px) {
  .nav-logo span { display: none; }
  .works { gap: .7rem; }
  .work-cap b { font-size: 1.02rem; }
  .work-cap span { font-size: .78rem; }
  .work-play { width: 36px; height: 36px; right: .5rem; bottom: .5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- 8. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .marquee-row { animation: none; }
  .ticker-track span:nth-child(2) { display: none; }
  .ticker { white-space: normal; }
  .marquee-row { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 var(--gutter); }
  .marquee-row > li[aria-hidden="true"] { display: none; }
  .js .reveal { transform: none; transition: opacity .3s; }
  .js .hero .hl, .js .hero-kicker, .js .hero-actions, .js .reel { animation: none; opacity: 1; transform: none; }
  .panel:not([hidden]) { animation: none; }
  .mk-fig { transition: opacity .3s; transform: none; }
}
