/* ==========================================================================
   REVENÍA AGENCY — Marketing deportivo, desde dentro.
   ========================================================================== */

:root {
  --blue: #22398D;
  --blue-deep: #182a6b;
  --red: #DB4A2B;
  --white: #FFFFFF;
  --paper: #F5F3EE;
  --ink: #121C45;
  --muted: #4a5378;
  --line: rgba(18, 28, 69, .14);

  --display: "Bricolage Grotesque", "Montserrat", sans-serif;
  --body: "Montserrat", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 16px; }

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

/* ---------- Tipografía base ---------- */
.kicker {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.kicker--light { color: var(--white); }
.kicker--light::before { background: var(--red); }

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: .95;
  letter-spacing: -.035em;
  margin-top: 18px;
  max-width: 14ch;
  text-wrap: balance;
}
.h2 em { color: var(--red); }

.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head__lead { margin-top: 24px; max-width: 52ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: .02em;
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 17px 30px; font-size: 15px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.round {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent;
  font-size: 18px; display: grid; place-items: center;
  transition: background .25s, color .25s, border-color .25s;
}
.round:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* red de seguridad */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .4s var(--ease);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.nav__logo { display: block; text-decoration: none; margin-right: auto; line-height: 0; }
/* Logo: el PNG blanco se usa como máscara, así toma el color del texto (blanco o azul según fondo) */
.logo {
  display: inline-block; aspect-ratio: 960 / 270; height: 40px; background: currentColor;
  -webkit-mask: url("assets/img/logo-revenia.png") no-repeat center / contain;
          mask: url("assets/img/logo-revenia.png") no-repeat center / contain;
}
.nav__links { display: flex; gap: clamp(16px, 2vw, 28px); }
.nav__links a {
  font-size: 14px; font-weight: 600; text-decoration: none; position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav.is-solid { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-solid .nav__logo { color: var(--blue); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.nav__burger span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--blue); color: var(--white);
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a {
  font-family: var(--display); font-weight: 800; font-size: clamp(40px, 11vw, 64px); line-height: 1.1;
  letter-spacing: -.03em; text-decoration: none; display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.15); padding: 8px 0;
  animation: menuIn .5s var(--ease) both;
}
.menu a:nth-child(2) { animation-delay: .04s; } .menu a:nth-child(3) { animation-delay: .08s; }
.menu a:nth-child(4) { animation-delay: .12s; } .menu a:nth-child(5) { animation-delay: .16s; }
.menu a i { font-family: var(--body); font-style: normal; font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.menu__foot { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
@keyframes menuIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent; color: var(--white); box-shadow: none; backdrop-filter: none; }
body.menu-open .nav .nav__logo { color: var(--white); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--blue);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  padding-top: 120px;
}
.hero::before { /* sombra de luz de pista */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(219,74,43,.22), transparent 70%);
  pointer-events: none;
}
.hero__court {
  position: absolute;
  right: clamp(-120px, -4vw, -20px);
  top: 50%;
  width: min(46vw, 620px);
  aspect-ratio: 112 / 212;
  transform: translateY(-52%) rotate(-14deg);
  pointer-events: none;
}
.court { width: 100%; height: 100%; overflow: visible; }
.court rect, .court line { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero .court { color: rgba(255,255,255,.55); }
.hero .court rect, .hero .court line { stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease) forwards .2s; }
.hero .court line { animation-delay: .9s; }
.hero .court .court__glass { stroke-width: 5; stroke: rgba(255,255,255,.3); }
.hero .court .court__net { stroke: var(--white); stroke-width: 3; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__ball {
  position: absolute; inset: 0;
}
.hero__ball span {
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a5a, var(--red) 55%, #a8321a);
  box-shadow: 0 18px 24px -8px rgba(0,0,0,.45);
  offset-path: path("M 60 540 C 180 420, 240 300, 150 170 S 80 40, 230 60");
  offset-rotate: 0deg;
  animation: rally 5.5s var(--ease) infinite alternate 1.4s;
  opacity: 0;
}
@keyframes rally {
  0% { offset-distance: 0%; opacity: 1; transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { offset-distance: 100%; opacity: 1; transform: scale(1); }
}

.hero__content { position: relative; z-index: 2; padding-bottom: clamp(40px, 6vw, 72px); }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(54px, 11.2vw, 184px);
  line-height: .86; letter-spacing: -.045em;
  margin: 22px 0 clamp(28px, 4vw, 48px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--accent { color: var(--red); }

[data-rise] { animation: rise 1s var(--ease) both; }
.hero__title .line:nth-child(1) [data-rise] { animation-delay: .1s; }
.hero__title .line:nth-child(2) [data-rise] { animation-delay: .2s; }
.hero__title .line:nth-child(3) [data-rise] { animation-delay: .3s; }
.hero__title .line:nth-child(4) [data-rise] { animation-delay: .4s; }
.hero__lead[data-rise] { animation-delay: .6s; }
.hero__ctas[data-rise] { animation-delay: .72s; }
@keyframes rise { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }

.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: rgba(255,255,255,.86); }
.hero__lead strong { color: var(--white); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.ticker {
  position: relative; z-index: 2;
  background: var(--red); color: var(--white);
  overflow: hidden; white-space: nowrap;
  padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.03);
  margin-bottom: 14px;
}
.ticker__track { display: inline-flex; gap: 28px; align-items: center; animation: marquee 32s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.02em; text-transform: uppercase; }
.ticker b { font-size: 12px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 10vw, 140px); }
.svc { border-top: 2px solid var(--ink); counter-reset: svc; }
.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr 1.1fr;
  gap: 24px 40px;
  align-items: start;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  outline: none;
  transition: color .45s var(--ease);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--blue); z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.svc__num { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--red); padding-top: 10px; transition: color .45s; }
.svc__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1; letter-spacing: -.035em;
  transition: transform .5s var(--ease);
}
.svc__lead { margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 40ch; transition: color .45s; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.svc__tags li {
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .45s, background .45s, color .45s, transform .45s var(--ease), opacity .45s;
}
@media (hover: hover) {
  .svc__tags li { opacity: .55; }
  .svc__row:hover, .svc__row:focus-within, .svc__row:focus-visible { color: var(--white); }
  .svc__row:hover::before, .svc__row:focus-visible::before { transform: scaleY(1); }
  .svc__row:hover .svc__num, .svc__row:focus-visible .svc__num { color: var(--white); }
  .svc__row:hover .svc__lead, .svc__row:focus-visible .svc__lead { color: rgba(255,255,255,.82); }
  .svc__row:hover .svc__title, .svc__row:focus-visible .svc__title { transform: translateX(14px); }
  .svc__row:hover .svc__tags li, .svc__row:focus-visible .svc__tags li { opacity: 1; border-color: rgba(255,255,255,.4); }
  .svc__row:hover .svc__tags li:hover { background: var(--white); color: var(--ink); }
}

/* ==========================================================================
   MANIFIESTO
   ========================================================================== */
.manifesto { background: var(--paper); padding: clamp(96px, 13vw, 200px) 0; }
.manifesto__title {
  font-family: var(--display); font-weight: 800; color: var(--blue);
  font-size: clamp(34px, 5vw, 72px); line-height: 1; letter-spacing: -.035em; max-width: 16ch;
}
.manifesto__text {
  margin: clamp(40px, 5vw, 72px) 0 0 auto;
  max-width: 22ch;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.03em;
}
.manifesto__text .w { color: rgba(18,28,69,.16); transition: color .4s var(--ease); }
.manifesto__text .w.on { color: var(--ink); }
.no-js .manifesto__text, .manifesto__text:not(.is-split) { color: var(--ink); }
.manifesto__close { margin-top: clamp(40px, 5vw, 72px); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
.manifesto__close em { color: var(--red); font-weight: 800; }

/* ==========================================================================
   ESPECIALIZACIÓN
   ========================================================================== */
.spec { background: var(--red); color: var(--white); padding: clamp(96px, 12vw, 180px) 0; overflow: hidden; }
.spec__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.spec__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(56px, 10vw, 150px); line-height: .86; letter-spacing: -.05em; margin: 18px 0 28px;
}
.spec__lead { font-size: clamp(16px, 1.4vw, 19px); max-width: 44ch; color: rgba(255,255,255,.92); }
.spec .kicker--light::before { background: var(--white); }
.spec__tabs { display: inline-flex; margin-top: 36px; border: 2px solid var(--white); border-radius: 999px; padding: 4px; gap: 4px; }
.spec__tabs button {
  border: 0; background: transparent; color: var(--white); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transition: background .3s, color .3s;
}
.spec__tabs button[aria-selected="true"] { background: var(--white); color: var(--red); }
.spec__note { margin-top: 18px; font-size: 14px; font-weight: 500; opacity: .85; min-height: 3em; max-width: 40ch; }

.spec__visual { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.spec__visual::before { /* superficie de pista */
  content: ""; position: absolute; inset: 6% 2%; background: var(--blue); border-radius: 6px;
  transform: rotate(-3deg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.4);
}
.court--big {
  position: absolute; inset: 10% 6%; width: 88%; height: 80%;
  color: var(--white); transform: rotate(-3deg);
  opacity: 0; transition: opacity .5s var(--ease);
}
.court--big.is-active { opacity: 1; }
.court--big rect, .court--big line { stroke-width: 2.5; }
.court--big .court__glass { stroke-width: 6; stroke: rgba(255,255,255,.4); }
.court--big .court__net { stroke-width: 4; stroke-dasharray: 4 5; }
.court--big .court__kitchen { fill: rgba(219,74,43,.35); }
.court--big.is-active rect, .court--big.is-active line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s var(--ease) forwards; }
.court--big.is-active .court__net { stroke-dasharray: 4 5; stroke-dashoffset: 0; animation: none; }
.spec__pins li {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px 8px 30px; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.4);
  animation: float 5s ease-in-out infinite;
}
.spec__pins li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--red); }
.spec__pins li:nth-child(2) { animation-delay: -1.2s; } .spec__pins li:nth-child(3) { animation-delay: -2.4s; } .spec__pins li:nth-child(4) { animation-delay: -3.6s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ==========================================================================
   CON QUIÉN
   ========================================================================== */
.who { padding: clamp(96px, 12vw, 180px) 0; }
.who__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who__card {
  position: relative; min-height: 440px; padding: 28px; border-radius: 4px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease);
  overflow: hidden;
}
.who__card:nth-child(even) { margin-top: 56px; }
.who__card--blue { background: var(--blue); color: var(--white); }
.who__card--red { background: var(--red); color: var(--white); }
.who__card--white { background: var(--paper); }
.who__n { font-family: var(--display); font-weight: 800; font-size: 14px; opacity: .6; }
.who__card h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 3.2vw, 48px); letter-spacing: -.03em; line-height: 1; margin-top: auto;
}
.who__claim { margin-top: 14px; font-weight: 700; font-size: 17px; line-height: 1.35; }
.who__for {
  font-size: 14px; line-height: 1.55; opacity: .8;
  max-height: 0; overflow: hidden; margin-top: 0;
  transition: max-height .6s var(--ease), margin-top .6s var(--ease);
}
.who__card::after { /* línea de pista */
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border: 2px solid currentColor; border-radius: 50%; opacity: .15;
  transition: transform .8s var(--ease);
}
@media (hover: hover) {
  .who__card:hover { transform: translateY(-8px); }
  .who__card:hover .who__for { max-height: 160px; margin-top: 14px; }
  .who__card:hover::after { transform: scale(1.6); }
}
@media (hover: none) { .who__for { max-height: none; margin-top: 14px; } }

/* ==========================================================================
   PROYECTOS
   ========================================================================== */
.work { padding: clamp(96px, 12vw, 180px) 0; background: var(--ink); color: var(--white); }
.work .round { border-color: rgba(255,255,255,.5); color: var(--white); }
.work .h2 { max-width: 16ch; }
.work__ctrl { display: flex; gap: 10px; flex: none; }
.work .sec-head--row { flex-wrap: nowrap; }
.work__stat { display: flex; align-items: center; gap: 14px; margin-left: auto; margin-right: clamp(8px, 3vw, 40px); }
.work__num { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 6.4vw, 96px); line-height: .85; letter-spacing: -.04em; color: var(--red); font-variant-numeric: tabular-nums; }
.work__label { font-size: 14px; font-weight: 600; line-height: 1.35; max-width: 14ch; color: rgba(255,255,255,.8); }
.work__rail {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 8px;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  cursor: grab;
}
.work__rail::-webkit-scrollbar { display: none; }
.work__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.work__rail > li { flex: 0 0 clamp(270px, 30vw, 420px); scroll-snap-align: start; }
.work__rail > li:nth-child(odd) .case__cover { aspect-ratio: 4 / 5; }
.work__rail > li:nth-child(even) { padding-top: 56px; }
.work__rail > li:nth-child(even) .case__cover { aspect-ratio: 1 / 1.08; }

.case { width: 100%; border: 0; background: none; padding: 0; text-align: left; display: block; color: var(--white); }
.case__cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5; padding: 22px; overflow: hidden; border-radius: 3px;
}
.case--blue .case__cover { background: var(--blue); }
.case--red .case__cover { background: var(--red); }
.case--white .case__cover { background: var(--paper); color: var(--ink); }
.case__issue { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; position: relative; z-index: 2; }
.case__name {
  position: relative; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.4vw, 52px);
  line-height: .92; letter-spacing: -.035em; text-wrap: balance;
  transition: transform .6s var(--ease);
}
.case__lines { position: absolute; inset: 0; opacity: .28; transition: transform .9s var(--ease), opacity .6s; }
.case__lines::before, .case__lines::after { content: ""; position: absolute; border: 2px solid currentColor; }
.case__lines::before { left: 18%; right: -30%; top: 22%; bottom: -30%; transform: rotate(-12deg); }
.case__lines::after { left: 56%; top: 0; bottom: 0; width: 0; border-width: 0 0 0 2px; transform: rotate(-12deg); transform-origin: top; }
.case:nth-child(n) .case__lines { color: currentColor; }
.case__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__meta {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px 0;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
}
.case__more { color: var(--white); transition: color .3s; }
.case:hover .case__lines, .case:focus-visible .case__lines { transform: scale(1.12) rotate(4deg); opacity: .45; }
.case:hover .case__name, .case:focus-visible .case__name { transform: translateY(-8px); }
.case:hover .case__more { color: var(--red); }

/* Tarjeta final "Y muchos más" */
.work__rail > li.work__more-item { padding-top: 0; }
.case-more {
  display: flex; height: 100%; min-height: 100%; aspect-ratio: 4 / 5;
  border: 2px dashed rgba(255,255,255,.35); border-radius: 3px;
  text-decoration: none; color: var(--white);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.case-more__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; width: 100%; }
.case-more__title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: .95; letter-spacing: -.035em; margin-top: auto; }
.case-more__text { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.75); }
.case-more__cta { font-weight: 700; font-size: 14px; color: var(--red); }
.case-more__cta span { display: inline-block; transition: transform .3s var(--ease); }
.case-more:hover, .case-more:focus-visible { border-color: var(--red); border-style: solid; background: rgba(219,74,43,.08); }
.case-more:hover .case-more__cta span { transform: translateX(6px); }

/* Modal */
.modal {
  border: 0; padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--white); color: var(--ink); border-radius: 4px;
}
.modal::backdrop { background: rgba(18,28,69,.7); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } }
.modal__inner { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 520px; }
.modal__cover { position: relative; background: var(--blue); color: var(--white); overflow: hidden; }
.modal__cover.is-red { background: var(--red); }
.modal__cover.is-white { background: var(--paper); color: var(--ink); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; background: var(--white); }
.modal__body { padding: clamp(28px, 4vw, 48px); overflow-y: auto; max-height: calc(100vh - 32px); }
.modal__title { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4vw, 56px); line-height: .95; letter-spacing: -.035em; margin: 14px 0 26px; }
.modal__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0 0 24px; }
.modal__facts dt { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.modal__facts dd { margin: 4px 0 0; font-weight: 600; font-size: 14px; }
.modal__facts-wide { grid-column: 1 / -1; }
.modal__challenge { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.01em; color: var(--blue); margin-bottom: 16px; }
.modal__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.modal__link { display: inline-block; font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.modal__link:hover { color: var(--red); }
.modal__desc { color: var(--muted); }
.modal h4 { margin: 24px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.modal__work { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__work li { font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.modal__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.modal__gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.is-pending { color: #9aa0b8; font-style: italic; font-weight: 500; }

/* ==========================================================================
   JUGADORES RVN — todas las tarjetas idénticas, sin jerarquía
   ========================================================================== */
.players { background: var(--paper); padding: clamp(96px, 12vw, 180px) 0; }
.players__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.players .h2 { max-width: 13ch; }
.players__intro p { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 46ch; }
.players__what { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.players__what li { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }

.players__group + .players__group { margin-top: clamp(64px, 8vw, 112px); }
.players__disc {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.02em; line-height: 1;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.players__disc::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.players__disc span::before { content: ""; display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--red); margin-right: .35em; vertical-align: .12em; }

.players__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.player__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center; margin-bottom: 14px;
}
.player__photo::before { /* líneas de pista, iguales para todos */
  content: ""; position: absolute; left: 14%; right: 14%; top: -2px; bottom: 34%;
  border: 2px solid rgba(255,255,255,.18); border-top: 0;
}
.player__photo span { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em; opacity: .9; }
.player__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .8s var(--ease); }
.player__photo:not(.has-photo) img { opacity: 0; }
.player__photo.has-photo::before, .player__photo.has-photo span { display: none; }
.player:hover .player__photo img { transform: scale(1.04); }
.player__name { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.015em; line-height: 1.15; }
.player__disc { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

.players__note {
  margin-top: clamp(56px, 7vw, 88px); padding: 20px 24px; border-left: 4px solid var(--blue); background: var(--white);
  font-size: 14px; color: var(--muted); max-width: 80ch;
}
.players__note strong { color: var(--ink); }

.who__link { margin-top: 16px; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.who__link:hover { opacity: .75; }

/* ==========================================================================
   MÉTODO
   ========================================================================== */
.method { padding: clamp(96px, 12vw, 180px) 0; }
.method .h2 { max-width: 18ch; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps::before { /* trayectoria de bola */
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px);
  opacity: .25;
}
.step { position: relative; padding: 0 20px 0 0; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 18px;
  transition: background .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease);
}
.step:hover .step__n { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-6px); }
.step:last-child .step__n { background: var(--blue); border-color: var(--blue); color: var(--white); }
.step h3 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; margin: 24px 0 8px; }
.step p { font-size: 15px; color: var(--muted); max-width: 26ch; }

/* ==========================================================================
   POR QUÉ
   ========================================================================== */
.why { background: var(--blue); color: var(--white); padding: clamp(96px, 12vw, 180px) 0; }
.why__aside { font-size: 15px; font-weight: 600; opacity: .75; max-width: 24ch; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.25); }
.why__item {
  padding: 36px 32px 44px 0; border-bottom: 1px solid rgba(255,255,255,.25);
  position: relative;
}
.why__item:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.25); }
.why__item h3 {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.03em; line-height: 1;
  margin-bottom: 16px; transition: color .35s;
}
.why__item p { font-size: 15.5px; color: rgba(255,255,255,.82); max-width: 32ch; }
.why__item:hover h3 { color: var(--red); }
.why__item::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--red);
  transition: width .6s var(--ease);
}
.why__item:not(:nth-child(3n+1))::before { left: 32px; }
.why__item:hover::before { width: 64px; }

/* ==========================================================================
   EQUIPO
   ========================================================================== */
.team { padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 10vw, 140px); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.person:nth-child(2) { margin-top: 64px; }
.person__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; margin-bottom: 22px;
  background: var(--paper);
}
.person__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  transition: transform .9s var(--ease);
}
.person__photo::after { /* franja de color de marca */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c, var(--blue));
}
.person__tag {
  position: absolute; left: 0; bottom: 6px; z-index: 1;
  background: var(--c, var(--blue)); color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1;
  padding: 12px 14px 10px;
  transition: padding .5s var(--ease);
}
.person__photo--blue { --c: var(--blue); }
.person__photo--red { --c: var(--red); }
.person__photo--ink { --c: var(--ink); }
.person:hover .person__photo img { transform: scale(1.04); }
.person:hover .person__tag { padding-right: 34px; }
.person h3 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.025em; line-height: 1.05; }
.person__role { margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.person__bio { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 36ch; }
.team__net {
  margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 2px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; max-width: 34ch;
}

/* ==========================================================================
   REVENÍA (historia)
   ========================================================================== */
.story { position: relative; background: var(--paper); padding: clamp(96px, 13vw, 200px) 0; overflow: hidden; }
.story__sun {
  position: absolute; width: clamp(220px, 32vw, 520px); aspect-ratio: 1; border-radius: 50%;
  right: -6vw; top: calc(clamp(220px, 32vw, 520px) * -0.62); background: var(--red);
}
.story__sun::after { /* costura de pelota */
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.55); border-color: rgba(255,255,255,.55) transparent rgba(255,255,255,.55) transparent;
  transform: rotate(30deg);
}
.story__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.story__title {
  font-family: var(--display); font-weight: 800; color: var(--blue);
  font-size: clamp(44px, 7vw, 108px); line-height: .9; letter-spacing: -.045em; max-width: 12ch;
}
.story__text p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; margin-bottom: 20px; max-width: 42ch; }
.story__sign { font-family: var(--display); font-weight: 800; color: var(--red); font-size: clamp(22px, 2vw, 28px) !important; letter-spacing: -.02em; }

/* ==========================================================================
   CTA + CONTACTO
   ========================================================================== */
.contact { padding: clamp(96px, 12vw, 180px) 0; }
.cta { margin-bottom: clamp(48px, 7vw, 96px); }
.cta__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(50px, 10vw, 164px); line-height: .86; letter-spacing: -.05em; max-width: 11ch;
}
.cta__title em { color: var(--red); }
.cta__lead { margin-top: 28px; font-size: clamp(17px, 1.6vw, 22px); max-width: 40ch; color: var(--muted); }

.contact__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field:nth-child(3), .field--chips, .field:has(textarea) { grid-column: 1 / -1; }
.field label, .field legend { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 0; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  border: 0; border-bottom: 2px solid var(--line); background: transparent;
  padding: 10px 0; border-radius: 0; transition: border-color .3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line);
  font-size: 14px; font-weight: 600; transition: all .25s var(--ease);
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.consent { grid-column: 1 / -1; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--blue); }
.form .btn { justify-self: start; grid-column: 1 / -1; }
.form__status { grid-column: 1 / -1; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: var(--blue); }
.form__status.is-err { color: var(--red); }

.contact__info { background: var(--blue); color: var(--white); padding: 32px; border-radius: 3px; }
.contact__info .kicker { color: var(--white); }
.contact__info .kicker::before { background: var(--red); }
.contact__info ul { margin-top: 20px; }
.contact__info li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact__info li span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.contact__info li a { font-weight: 600; font-size: 17px; text-decoration: none; margin-top: 2px; }
.contact__info li a:hover { color: var(--red); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--blue); color: var(--white); padding: clamp(64px, 8vw, 110px) 0 28px; overflow: hidden; }
.foot__mark { display: block; height: auto; width: clamp(160px, 22vw, 280px); color: var(--white); margin: 0 0 clamp(32px, 4vw, 48px); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.foot__name { font-family: var(--display); font-weight: 800; font-size: 22px; }
.foot__tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.foot nav, .foot__social, .foot__legal { display: flex; flex-direction: column; gap: 8px; }
.foot a { font-size: 14px; font-weight: 500; text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; color: var(--red); }
.foot__copy { margin-top: 48px; font-size: 12px; opacity: .6; }

/* ==========================================================================
   CURSOR (solo escritorio)
   ========================================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-ready { opacity: 1; }
.cursor__ball {
  display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--red); transition: transform .3s var(--ease), background .3s;
}
.cursor.is-link .cursor__ball { transform: scale(3.2); background: rgba(219,74,43,.35); }
.cursor.on-red .cursor__ball { background: var(--white); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .who__grid { grid-template-columns: 1fr 1fr; }
  .who__card:nth-child(3) { background: var(--red); }
  .who__card:nth-child(4) { background: var(--blue); }
  .who__card:nth-child(even) { margin-top: 0; }
  .who__card { min-height: 360px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 34px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 16px); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 0 24px; }
  .step__n { grid-row: span 2; }
  .step h3 { margin: 6px 0 4px; }
  .step p { max-width: 44ch; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__item, .why__item:not(:nth-child(3n+1)) { padding: 32px 24px 36px 0; border-left: 0; }
  .why__item:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); }
  .why__item:not(:nth-child(3n+1))::before { left: 0; }
  .why__item:nth-child(even)::before { left: 24px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) { .nav__inner { gap: 20px; } }
@media (max-width: 860px) {
  .work .sec-head--row { flex-wrap: wrap; }
  .work__stat { margin-left: 0; }
  .players__head { grid-template-columns: 1fr; }
  .players__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__burger { display: block; margin-right: -8px; }
  .nav__inner { gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .nav__cta { padding: 10px 16px; font-size: 13px; }

  .hero { padding-top: 96px; }
  .hero__court { width: 78vw; right: -26vw; top: 34%; opacity: .7; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }

  .svc__row { grid-template-columns: 48px 1fr; }
  .svc__tags { grid-column: 1 / -1; padding-top: 0; }
  .svc__tags li { font-size: 12px; padding: 6px 11px; }

  .manifesto__text { margin-left: 0; }

  .spec__grid { grid-template-columns: 1fr; }
  .spec__visual { order: -1; margin: 0 -8px; }
  .spec__pins li { font-size: 10px; padding: 6px 10px 6px 24px; }
  .spec__pins li::before { left: 9px; width: 8px; height: 8px; margin-top: -4px; }

  .modal { overflow-y: auto; }
  .modal__inner { grid-template-columns: 1fr; min-height: 0; }
  .modal__cover { min-height: 0; height: 140px; }
  .modal__body { max-height: none; overflow: visible; }
  .modal__close { position: fixed; top: 28px; right: 28px; }
  .modal__facts { grid-template-columns: 1fr 1fr; }

  .team__grid { grid-template-columns: 1fr; gap: 48px; }
  .person:nth-child(2) { margin-top: 0; }
  .person__photo { aspect-ratio: 4 / 4.4; }

  .story__grid { grid-template-columns: 1fr; }
  .story__sun { right: -20vw; }

  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .work__rail > li:nth-child(even) { padding-top: 32px; }
}

@media (max-width: 560px) {
  .who__grid { grid-template-columns: 1fr; }
  .who__card:nth-child(3) { background: var(--blue); }
  .who__card:nth-child(4) { background: var(--red); }
  .who__card { min-height: 280px; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item:nth-child(even) { padding-left: 0; border-left: 0; }
  .why__item:nth-child(even)::before { left: 0; }
  .work__ctrl { display: none; }
  .work__rail > li { flex-basis: 78vw; }
  .foot__grid { grid-template-columns: 1fr; }
  .modal__facts { grid-template-columns: 1fr; gap: 10px; }
  .nav .logo { height: 34px; }
}

/* Solo lo intrusivo se desactiva con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__ball span { animation: none; opacity: 0; }
  .ticker__track { animation-duration: 80s; }
  .spec__pins li { animation: none; }
}

/* ---------- Páginas legales ---------- */
.legal__main { padding-top: 140px; padding-bottom: 96px; max-width: 860px; }
.legal__body { margin: 40px 0 48px; }
.legal__body h2 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 32px 0 8px; }
.legal__body p { color: var(--muted); }
.legal__todo { background: var(--paper); border-left: 4px solid var(--red); padding: 16px 20px; color: var(--ink) !important; }
