/* samusacast.es — hoja de estilos única, sin dependencias externas. */

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #000;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f5f7;
  --soft: #d2d2d7;
  --muted: #86868b;
  --dim: #3a3a3f;
  --blue: #2997ff;
  --violet: #a259ff;
  --pink: #ff5fa2;
  --green: #30d158;
  --orange: #ff9f0a;
  --grad: linear-gradient(90deg, #2997ff 0%, #a259ff 50%, #ff5fa2 100%);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 52px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(41, 151, 255, .35); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---------- Grano de película ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--soft);
}

.nav__links a { opacity: .78; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  transition: background .2s, box-shadow .3s;
}

.nav__cta:hover { background: #fff; box-shadow: 0 0 24px rgba(41, 151, 255, .45); }

.nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  filter: blur(48px) saturate(150%);
  opacity: .8;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 45% at 50% 45%, #000 10%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  max-width: 1000px;
  will-change: transform, opacity;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.hero__title {
  margin: 0;
  font-size: clamp(64px, 14vw, 176px);
  line-height: .92;
  letter-spacing: -.058em;
  font-weight: 700;
}

.line {
  display: block;
  overflow: hidden;
  padding: .06em .04em .1em;
  margin: -.06em -.04em -.1em;
}

.line__in {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transform-origin: 0 100%;
  filter: blur(10px);
  opacity: 0;
  animation: lineIn 1.3s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes lineIn {
  to { transform: none; filter: none; opacity: 1; }
}

h1, h2, h3, .hero__sub, .cta__text { text-wrap: balance; }
p { text-wrap: pretty; }

.grad {
  background: linear-gradient(90deg, #2997ff, #a259ff, #ff5fa2, #a259ff, #2997ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title .grad {
  animation: lineIn 1.3s var(--ease) forwards, shimmer 10s linear infinite;
  animation-delay: var(--d, 0s), 0s;
}

@keyframes shimmer {
  to { background-position: 300% 0; }
}

.hero__sub {
  margin: 32px auto 0;
  max-width: 720px;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.24;
  letter-spacing: -.022em;
  font-weight: 500;
  color: #a1a1a6;
}

.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

.intro {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  animation: introIn 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes introIn {
  to { opacity: 1; transform: none; filter: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Botones ---------- */
.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), background .3s, box-shadow .4s, border-color .3s;
}

.btn--light { background: var(--text); color: #000; }
.btn--light:hover { background: #fff; box-shadow: 0 0 48px rgba(41, 151, 255, .5), 0 0 12px rgba(162, 89, 255, .4); }

.btn--ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

.btn--lg { height: 62px; padding: 0 34px; font-size: 19px; }

/* ---------- Etiquetas y cabeceras ---------- */
.label {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(100px, 13vw, 170px) var(--gutter);
}

.section__head { margin-bottom: clamp(48px, 7vw, 84px); }

.section__head h2 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.048em;
  font-weight: 700;
}

.muted { color: var(--muted); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(56px) scale(.975);
  filter: blur(14px);
  transition:
    opacity 1.2s var(--ease) var(--d, 0s),
    transform 1.2s var(--ease) var(--d, 0s),
    filter 1.2s var(--ease) var(--d, 0s);
}

.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Manifiesto ---------- */
.manifesto { position: relative; height: 280vh; }

.manifesto__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.manifesto__text {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 650;
}

.manifesto__text em { font-style: normal; }

.js .manifesto__text .w {
  opacity: .13;
  transition: opacity .35s linear, filter .35s linear;
}

.js .manifesto__text .w.on { opacity: 1; }

.manifesto__text .w.hl {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #131318 0%, #0a0a0d 100%);
  overflow: hidden;
  isolation: isolate;
}

.card h3 {
  margin: 20px 0 10px;
  font-size: clamp(23px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: -.032em;
  font-weight: 650;
}

.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.card--chip {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 560px;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(41, 151, 255, .1), transparent 70%),
    linear-gradient(180deg, #131318 0%, #0a0a0d 100%);
}

.card--chip h3 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 0; }
.card--chip p { max-width: 520px; font-size: 17px; }

/* Borde que sigue al cursor */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, .45), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--x, 50%) var(--y, 50%), rgba(41, 151, 255, .1), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.spot:hover::before, .spot:hover::after { opacity: 1; }

.ico {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}

.ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--blue   { --c: var(--blue); }
.ico--violet { --c: var(--violet); }
.ico--green  { --c: var(--green); }
.ico--pink   { --c: var(--pink); }
.ico--orange { --c: var(--orange); }

/* El "chip" */
.chip-wrap {
  display: grid;
  place-items: center;
  flex: 1;
  padding-top: 24px;
  perspective: 900px;
}

.chip {
  position: relative;
  width: min(250px, 62%);
  aspect-ratio: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}

.chip__pins {
  position: absolute;
  inset: -20px;
  border-radius: 44px;
  background:
    repeating-linear-gradient(90deg, #3d3d44 0 3px, transparent 3px 13px) 50% 0 / 72% 12px no-repeat,
    repeating-linear-gradient(90deg, #3d3d44 0 3px, transparent 3px 13px) 50% 100% / 72% 12px no-repeat,
    repeating-linear-gradient(0deg, #3d3d44 0 3px, transparent 3px 13px) 0 50% / 12px 72% no-repeat,
    repeating-linear-gradient(0deg, #3d3d44 0 3px, transparent 3px 13px) 100% 50% / 12px 72% no-repeat;
}

.chip__ring {
  position: relative;
  height: 100%;
  padding: 2px;
  border-radius: 34px;
  background: conic-gradient(from var(--a), #2997ff, #a259ff, #ff5fa2, #ffb340, #30d158, #2997ff);
  animation: spin 6s linear infinite;
}

.chip__ring::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: blur(42px);
  opacity: .75;
}

@keyframes spin { to { --a: 360deg; } }

.chip__body {
  height: 100%;
  border-radius: 32px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, .08), transparent 50%),
    linear-gradient(145deg, #1d1d23, #0b0b0f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -20px 40px rgba(0, 0, 0, .5);
}

.chip__logo {
  font-size: clamp(56px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #8e8e96);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chip__model {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--muted);
  padding-left: .32em;
}

@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--chip { grid-column: 1 / -1; grid-row: auto; min-height: 500px; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 28px; }
  .card--chip { min-height: 460px; }
}

/* ---------- Marquee ---------- */
.marquee {
  padding: 20px 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__row {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee__row--rev { animation-direction: reverse; margin-top: 16px; animation-duration: 56s; }
.marquee:hover .marquee__row { animation-play-state: paused; }

.marquee ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.marquee li {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: clamp(19px, 2.3vw, 28px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--soft);
  white-space: nowrap;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Timeline ---------- */
.timeline { position: relative; }

.timeline__line {
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.timeline__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2997ff, #a259ff 50%, #ff5fa2);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.timeline__list { list-style: none; margin: 0; padding: 0; }

.tl {
  position: relative;
  padding: 0 0 72px 68px;
}

.tl:last-child { padding-bottom: 0; }

.tl__dot {
  position: absolute;
  left: 3px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--dim);
  transition: border-color .6s, box-shadow .6s, background .6s;
}

.tl.active .tl__dot {
  border-color: var(--blue);
  background: #04121f;
  box-shadow: 0 0 0 6px rgba(41, 151, 255, .14), 0 0 28px rgba(41, 151, 255, .7);
}

.tl__when {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.tl__when--now { color: var(--green); }

.tl h3 {
  margin: 8px 0 4px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 700;
  transition: color .6s;
  color: #6e6e73;
}

.tl.active h3 { color: var(--text); }

.tl__role { margin: 0 0 14px; font-size: 20px; font-weight: 500; color: var(--soft); letter-spacing: -.02em; }
.tl__desc { margin: 0; max-width: 640px; color: var(--muted); }

/* ---------- Avatar del hero ---------- */
.avatar {
  width: fit-content;
  margin: 0 auto 26px;
}

.avatar__ring {
  position: relative;
  width: 104px;
  height: 104px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from var(--a), #fff, #bfe0ff, #2997ff, #0a6cff, #2997ff, #bfe0ff, #fff);
  animation: spin 5s linear infinite;
}

.avatar__ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: 50%;
  background: inherit;
  filter: blur(22px);
  opacity: .8;
}

.avatar__ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #000;
  object-fit: cover;
  background: #111;
}

/* ---------- Cifras ---------- */
.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.stat + .stat { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }

.stat__num {
  margin: 0;
  font-size: clamp(64px, 9vw, 124px);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #6e6e73);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  padding-right: .06em;
}

.stat:first-child .stat__num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat__label { margin: 14px 0 0; font-size: 17px; color: var(--muted); max-width: 240px; }

@media (max-width: 720px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; }
}

/* ---------- Proyectos ---------- */
.projects { display: grid; gap: 28px; }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Escalonado de la aparición por columna. */
.projects__grid > :nth-child(3n + 2) { --d: .08s; }
.projects__grid > :nth-child(3n) { --d: .16s; }

@media (max-width: 1080px) {
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects__grid > :nth-child(n) { --d: 0s; }
  .projects__grid > :nth-child(2n) { --d: .08s; }
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  padding: clamp(20px, 3vw, 36px);
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f0f13, #07070a);
  isolation: isolate;
  transition: border-color .4s, background .4s;
}

.project:hover { border-color: rgba(255, 255, 255, .18); }

.project--card {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 22px;
  padding: 18px 18px 26px;
  border-radius: 30px;
}

.project--card .project__meta { padding: 0 6px; }
.project--card .project__meta h3 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 10px; }
.project--card .project__meta > p:not(.label) { font-size: 15.5px; }
.project--card .label { margin-bottom: 12px; font-size: 14px; }
.project--card .chips { margin: 16px 0 18px; }
.project--card .project__link { font-size: 16px; }
.project--card .browser { border-radius: 12px; }
.project--card .browser__bar { height: 28px; }
.project--card .browser__bar i { width: 9px; height: 9px; }
.project--card .browser__bar span { padding: 2px 14px; font-size: 11px; }

/* Tarjeta ancha con la captura a la derecha (colaboraciones). */
.project--mirror { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.project--mirror .project__visual { order: 2; }

@media (max-width: 860px) {
  .project--mirror { grid-template-columns: minmax(0, 1fr); }
  .project--mirror .project__visual { order: 0; }
}

.project__visual--gold   { --glow: linear-gradient(120deg, #ffb340, #ff5f1f); }
.project__visual--green  { --glow: linear-gradient(120deg, #30d158, #0fb5a0); }
.project__visual--amber  { --glow: linear-gradient(120deg, #ffd60a, #1a7f5e); }
.project__visual--bronze { --glow: linear-gradient(120deg, #d6a86a, #7a4a22); }
.project__visual--red    { --glow: linear-gradient(120deg, #ff453a, #ff9f0a); }
.project__visual--navy   { --glow: linear-gradient(120deg, #0a84ff, #1b3f8f); }
.project__visual--sun    { --glow: linear-gradient(120deg, #ffd60a, #ff6a00); }
.project__visual--mint   { --glow: linear-gradient(120deg, #30d158, #64d2ff); }
.project__visual--teal   { --glow: linear-gradient(120deg, #00c7be, #30d158); }
.project__visual--sky    { --glow: linear-gradient(120deg, #64d2ff, #0a84ff); }
.project__visual--steel  { --glow: linear-gradient(120deg, #a1a1a6, #0a84ff); }
.project__visual--purple { --glow: linear-gradient(120deg, #bf5af2, #ff375f); }

.mention {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f0f13, #07070a);
  overflow: hidden;
  isolation: isolate;
}

.mention .label { margin-bottom: 10px; }

.mention h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
}

.mention p:not(.label) { margin: 0; max-width: 680px; color: var(--muted); }

@media (max-width: 860px) {
  .projects__grid { grid-template-columns: minmax(0, 1fr); }
  .mention { flex-direction: column; gap: 20px; }
}

.project__visual {
  position: relative;
  perspective: 1400px;
}

.project__visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  background: var(--glow);
  filter: blur(70px);
  opacity: .45;
  transition: opacity .6s;
}

.project:hover .project__visual::before { opacity: .8; }
.project__visual--blue { --glow: linear-gradient(120deg, #2997ff, #a259ff); }
.project__visual--pink { --glow: linear-gradient(120deg, #ff5fa2, #ffb340); }

.browser {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1b1b20;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease);
}

.browser__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: #25252b;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }

.browser__bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 28px;
  border-radius: 6px;
  background: #1b1b20;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.browser__screen { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }

.browser__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s var(--ease);
}

.project:hover .browser__screen img { transform: scale(1.035); }

.glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 55%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.project:hover .glare { opacity: 1; }

.project__meta h3 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}

.project__meta > p:not(.label) { margin: 0; color: var(--muted); font-size: 17px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  color: var(--soft);
}

.project__link {
  display: inline-flex;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--blue);
}

.project__link span { transition: transform .3s var(--ease); }
.project:hover .project__link span { transform: translate(3px, -3px); }

@media (max-width: 860px) {
  .project { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Waiis: mapa con la ruta animada (no hay captura: la web bloquea el servidor) ---------- */
.route {
  position: relative;
  aspect-ratio: 600 / 380;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(120% 90% at 30% 20%, #0f2a2a, #06100e 65%);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9);
}

.route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route__park { fill: rgba(48, 209, 88, .07); }
.route__streets { fill: none; stroke: rgba(255, 255, 255, .055); stroke-width: 14; }
.route__streets--thin { stroke: rgba(255, 255, 255, .045); stroke-width: 2; }

.route__line {
  fill: none;
  stroke: url(#routeGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 8px rgba(0, 199, 190, .6));
}

html:not(.js) .route__line { stroke-dashoffset: 0; }
.project.in .route__line { animation: draw 2.4s var(--ease) .4s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.route__pin { fill: #06100e; stroke: #fff; stroke-width: 4; }
.route__pin--end { stroke: var(--green); }
.route__dot { fill: #fff; filter: drop-shadow(0 0 10px #00c7be); }

.route__tag {
  position: absolute;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.route__tag--a { left: 11.7%; top: 82.9%; transform: translate(-30%, -190%); }
.route__tag--b { left: 90%; top: 15.8%; transform: translate(-85%, 70%); }

.route .toast--route { top: auto; right: 4%; bottom: 6%; }
.route .toast--wallet { top: 30%; right: auto; bottom: auto; left: 4%; animation-delay: -2.5s; }

@media (max-width: 600px) {
  .route .toast--wallet { display: none; }
  .route .toast--route { transform-origin: 100% 100%; scale: .82; }
}

/* ---------- App de pedidos en mesa (móvil dibujado en CSS) ---------- */
.project--app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }

.project__visual--app {
  --glow: linear-gradient(120deg, #ff9f0a, #ff375f);
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 16px 0;
}

.phone {
  position: relative;
  width: min(270px, 72vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #3a3a40, #121216);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 50px 100px -30px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #faf7f2;
  color: #1d1d1f;
}

.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 14px;
  background: #000;
}

.menu {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 46px 14px 0;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
}

.menu p { margin: 0; text-wrap: nowrap; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__table { padding: 4px 9px; border-radius: 999px; background: #1d1d1f; color: #fff; font-size: 10.5px; font-weight: 600; }

.menu__cart {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-weight: 700;
}

.menu__hello { margin-top: 14px !important; color: #86868b; }
.menu__title { margin: 2px 0 10px !important; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.menu__tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.menu__tabs span { padding: 5px 10px; border-radius: 999px; background: #efebe4; color: #555; font-size: 10.5px; font-weight: 500; }
.menu__tabs .on { background: #1d1d1f; color: #fff; }

.menu__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.menu__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.menu__list i { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--t); }
.menu__list .t1 { --t: linear-gradient(135deg, #f6c177, #c9772b); }
.menu__list .t2 { --t: linear-gradient(135deg, #ff8a65, #e0452b); }
.menu__list .t3 { --t: linear-gradient(135deg, #c56b5a, #7a2e24); }
.menu__list .t4 { --t: linear-gradient(135deg, #ffe29a, #e0a93b); }
.menu__list div { flex: 1; min-width: 0; display: grid; }
.menu__list b { font-size: 11.5px; font-weight: 600; }
.menu__list small { color: #86868b; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu__list em { margin-top: 2px; font-style: normal; font-weight: 600; }

.menu .add {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.menu__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto 0 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ff6a00;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(255, 106, 0, .7);
}

.toast {
  position: absolute;
  right: 2%;
  top: 16%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(40, 40, 46, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
  font-size: 13px;
  line-height: 1.3;
  animation: float 5s ease-in-out infinite;
}

.toast__ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-weight: 700;
}

.toast b { display: block; font-weight: 600; color: var(--text); }
.toast small { color: var(--muted); font-size: 12px; }

@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
  .project--app { grid-template-columns: minmax(0, 1fr); }
  .project__visual--app { order: -1; min-height: 0; }
  .toast { right: 0; top: 8%; }
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta__glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  z-index: -1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(from var(--a), #2997ff, #a259ff, #ff5fa2, #ffb340, #2997ff);
  filter: blur(120px);
  opacity: .28;
  animation: spin 14s linear infinite;
}

/* Funde el brillo con la sección anterior: sin esto se ve un corte horizontal. */
.cta::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  z-index: -1;
  background: linear-gradient(180deg, #000 15%, transparent);
  pointer-events: none;
}

.cta .label { margin-inline: auto; }

.cta__title {
  --fill: 0%;
  margin: 0;
  font-size: clamp(68px, 16vw, 224px);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 700;
  padding: 0 .04em .08em;
  background:
    linear-gradient(90deg, transparent var(--fill), #2a2a2f var(--fill)),
    linear-gradient(90deg, #2997ff, #a259ff, #ff5fa2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__title--full { --fill: 100%; }

.cta__text {
  margin: 28px auto 44px;
  max-width: 620px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--muted);
}

/* ---------- Pie ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .grain { display: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .manifesto { height: auto; }
  .manifesto__sticky { position: static; height: auto; padding-block: 120px; }
  .js .manifesto__text .w { opacity: 1; }
  .marquee__row { animation: none; }
  .cta__title { --fill: 100%; }
}
