/* ==========================================================================
   ZAS Studio — portafolio
   Negro puro con textura de puntos, Clash Display + Inter, líneas guía de
   1px, numeración de secciones y acento degradado cálido (marca personal).
   Movimiento: entradas por línea, parallax, tickers, revelado de texto al
   hacer scroll y vistas de proyecto.
   ========================================================================== */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #808080;
  --line: #161616;
  --line-2: #292929;
  --card: #0a0a0a;
  --card-2: #0f0f0f;
  --accent: #17e88f;
  --green: #17e88f;
  --blue: #17e88f;

  /* Degradado de marca — verde ZAS */
  --g-light: #7cffb2;
  --g-mid: #17e88f;
  --g-deep: #00a85a;
  --grad: linear-gradient(120deg, #7cffb2 0%, #17e88f 45%, #00a85a 100%);
  --grad-border: linear-gradient(140deg, rgba(124, 255, 178, .55), rgba(23, 232, 143, .24) 40%, rgba(0, 168, 90, .38));
  --grad-border-dim: linear-gradient(140deg, rgba(124, 255, 178, .26), rgba(23, 232, 143, .1) 45%, rgba(0, 168, 90, .2));

  --display: "Clash Display", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Mrs Saint Delafield", cursive;

  --pad: clamp(16px, 3.2vw, 48px);
  --gap: clamp(16px, 2.2vw, 32px);
  --r: 16px;
  --expo: cubic-bezier(.19, 1, .22, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
::selection { background: #17e88f; color: var(--bg); }
:focus-visible { outline: 1px solid #17e88f; outline-offset: 4px; }
html { scrollbar-color: #2b2b2b #000; scrollbar-width: thin; }

.skip { position: fixed; top: -60px; left: 12px; z-index: 999; background: var(--fg); color: var(--bg); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Textura de puntos + líneas guía */
.bg-dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.bg-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.bg-lines i:nth-child(1) { left: 21.6%; }
.bg-lines i:nth-child(2) { left: 49.4%; }
.bg-lines i:nth-child(3) { left: 77.3%; }

main, .foot, .work-view { position: relative; z-index: 1; }

/* ---------- Tipografía base ---------- */
.display {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(38px, 6.2vw, 90px); line-height: .82; letter-spacing: -.02em;
}
.display--md { font-size: clamp(32px, 4.4vw, 64px); }
.lead { max-width: 46ch; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; }
.num, .lbl {
  font-family: var(--display); font-weight: 500; font-size: 12px;
  letter-spacing: .8px; text-transform: uppercase;
}
.lbl--dim { color: var(--muted); }
.ph { background: rgba(255, 70, 46, .16); color: #ff9b8b; padding: 0 4px; border-radius: 2px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Borde degradado reutilizable */
.gborder { border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-border-dim) border-box; }

/* ---------- Botón píldora ---------- */
.pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border: 1px solid var(--fg); border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .02em;
  transition: color .45s var(--expo), border-color .45s;
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: translateY(101%); border-radius: 999px; transition: transform .55s var(--expo);
}
.pill:hover { color: var(--bg); border-color: transparent; }
.pill:hover::before { transform: none; }
.pill--lg { height: 60px; padding: 0 36px; font-size: 17px; }
.pill--block { width: 100%; margin-top: auto; }
.pill--solid { background: var(--fg); color: var(--bg); }
.pill--solid::before { background: var(--grad); }

/* ---------- Barra superior ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--pad); mix-blend-mode: difference;
}
.nav__side { display: flex; align-items: center; gap: 10px; }
.nav__side--end { justify-self: end; }
.nav__label, .nav__clock {
  font-family: var(--display); font-weight: 500; font-size: 17px; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.nav__label:hover { color: #fff; }
.nav__clock { font-variant-numeric: tabular-nums; }
.nav__grip { display: grid; grid-template-columns: repeat(3, 4px); gap: 5px; padding: 8px; }
.nav__grip span { width: 4px; height: 4px; border-radius: 50%; background: var(--fg); transition: transform .5s var(--expo), opacity .3s; }
.nav__grip:hover span { transform: scale(1.45); }
.nav__grip[aria-expanded="true"] span:nth-child(2), .nav__grip[aria-expanded="true"] span:nth-child(5) { opacity: 0; }
.nav .pill { height: 44px; padding: 0 22px; font-size: 14px; }

/* Menú */
.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: grid; place-items: center; padding: 90px var(--pad) var(--pad);
  animation: menuIn .6s var(--expo);
}
.menu.is-leaving { animation: menuOut .35s ease forwards; }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } }
@keyframes menuOut { to { opacity: 0; } }
.menu ul { display: grid; gap: 2px; width: min(760px, 100%); }
.menu li a {
  display: flex; align-items: baseline; gap: 18px; padding: 10px 0;
  font-family: var(--display); font-weight: 600; font-size: clamp(24px, 4vw, 44px);
  text-transform: uppercase; line-height: 1; transition: color .3s, transform .5s var(--expo);
}
.menu li a em { font-size: 12px; font-style: normal; color: var(--muted); letter-spacing: .8px; }
.menu li a:hover { color: var(--muted); transform: translateX(12px); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 148px 0 0; }
.hero::before {
  content: ""; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 90vw); height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(23, 232, 143, .12), rgba(0, 168, 90, .05) 45%, transparent 70%);
  filter: blur(10px);
}
.hero__head { position: relative; padding-inline: var(--pad); }
.hero__title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(54px, 15.8vw, 232px); line-height: .8; letter-spacing: -.021em;
  margin-bottom: clamp(40px, 7vw, 96px); color: #fff; text-align: center;
}
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.fact { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.fact__icon { width: 20px; height: 20px; }
.fact__icon--green { color: var(--green); }
.fact__icon--blue { color: var(--blue); }
.fact__a, .fact__b { font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; line-height: 1.25; }
.fact__b { color: var(--muted); }
.hero__media {
  margin-top: clamp(40px, 6vw, 88px); padding-inline: var(--pad); overflow: hidden;
  --h-alto: 60; --h-zoom: 100; --h-x: 50; --h-y: 50; --h-ajuste: cover;
}
.hero__media img {
  width: 100%; height: calc(var(--h-alto) * 1vh); max-height: 92vh;
  object-fit: var(--h-ajuste); object-position: calc(var(--h-x) * 1%) calc(var(--h-y) * 1%);
  will-change: transform; border-radius: var(--r); background: #000;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 150px) var(--pad); }
.section--tight { padding-block: clamp(56px, 7vw, 110px); }
.rowlabel { display: flex; align-items: center; gap: clamp(16px, 4vw, 60px); padding-bottom: clamp(28px, 4vw, 56px); }
.rowlabel .num { color: var(--fg); }
.section__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(32px, 4vw, 64px); }
.section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Approach ---------- */
.approach__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-bottom: clamp(40px, 6vw, 90px); }
.approach__role { font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.4vw, 20px); text-transform: uppercase; }
.timeline { display: flex; align-items: center; width: min(560px, 100%); margin-top: 18px; }
.timeline i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(23, 232, 143, .45), rgba(255, 255, 255, .12)); }
.timeline__dot {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .8px; color: var(--muted);
  border: 1px solid transparent;
  background: linear-gradient(#0d0d0d, #0d0d0d) padding-box, var(--grad-border-dim) border-box;
}
.timeline__dot.is-on { color: var(--bg); background: var(--grad); border: 0; }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.phase {
  position: relative; border-radius: var(--r); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; min-height: 300px;
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-border-dim) border-box;
  transition: transform .6s var(--expo);
}
.phase:hover { transform: translateY(-5px); background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-border) border-box; }
.winbar { display: flex; gap: 6px; }
.winbar i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a3a; }
.phase__icons { display: flex; gap: 10px; margin-top: 6px; }
.phase__icons img { width: 42px; height: 42px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line-2); }
.phase h3 { font-family: var(--display); font-size: clamp(18px, 1.7vw, 24px); text-transform: uppercase; line-height: 1; margin-top: auto; }
.phase p { color: var(--muted); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.35; max-width: 32ch; }

/* ---------- Marcas ---------- */
.brands { padding: clamp(40px, 5vw, 70px) 0; border-block: 1px solid var(--line-2); }
.brands__lbl { text-align: center; margin-bottom: clamp(20px, 3vw, 34px); }
.marq { overflow: hidden; display: flex; }
.marq__track { display: flex; gap: var(--gap); flex: none; padding-right: var(--gap); animation: run 34s linear infinite; will-change: transform; }
.marq--rev .marq__track { animation-direction: reverse; }
.marq:hover .marq__track { animation-play-state: paused; }
@keyframes run { to { transform: translate3d(-50%, 0, 0); } }
.brand {
  display: grid; place-items: center; flex: none;
  width: clamp(190px, 17vw, 250px); height: clamp(130px, 12vw, 176px); border-radius: var(--r);
  border: 1px solid transparent;
  background: linear-gradient(#050505, #050505) padding-box, var(--grad-border-dim) border-box;
  transition: background .4s;
}
.brand:hover { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, var(--grad-border) border-box; }
.brand img { max-width: 62%; max-height: 52%; object-fit: contain; }

/* ---------- Portfolio ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px) var(--gap); }
.work { display: flex; flex-direction: column; gap: 14px; }
.work--wide { grid-column: span 2; }
.work__media { position: relative; display: block; overflow: hidden; background: var(--card); border-radius: var(--r); }
.work__media img { width: 100%; height: clamp(240px, 30vw, 460px); object-fit: cover; transition: transform 1.2s var(--expo), filter .6s; }
.work--wide .work__media img { height: clamp(260px, 34vw, 520px); }
.work:hover .work__media img { transform: scale(1.05); }
.work__view {
  position: absolute; inset: auto 16px 16px auto; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25);
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .8px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .5s var(--expo);
}
.work__view svg { width: 14px; height: 14px; }
.work:hover .work__view, .work:focus-visible .work__view { opacity: 1; transform: none; }
.work__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.work__name { font-size: 18px; font-weight: 500; display: inline-flex; align-items: baseline; gap: 12px; }
.work__name em { font-style: normal; font-family: var(--display); font-size: 11px; letter-spacing: .8px; color: var(--muted); }
.work__tag { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.about__media { overflow: hidden; border-radius: var(--r); }
.about__media img { width: 100%; height: clamp(320px, 40vw, 620px); object-fit: cover; }
.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.about__claim { font-size: clamp(16px, 1.5vw, 22px); line-height: 1.35; max-width: 34ch; }
.about__body { color: var(--muted); font-size: clamp(14px, 1.2vw, 17px); line-height: 1.45; max-width: 52ch; }

/* ---------- Servicios ---------- */
.services { border-top: 1px solid var(--line-2); }
.srv {
  display: grid; grid-template-columns: 70px 1.1fr 1fr 40px; align-items: center; gap: 20px;
  padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line-2);
  transition: padding-left .5s var(--expo), color .3s;
}
.srv:hover { padding-left: 14px; }
.srv__n { font-family: var(--display); font-size: 12px; letter-spacing: .8px; color: var(--muted); }
.srv h3 { font-family: var(--display); font-size: clamp(20px, 2.4vw, 34px); text-transform: uppercase; line-height: 1; }
.srv p { color: var(--muted); font-size: clamp(13px, 1.1vw, 16px); }
.srv svg { justify-self: end; opacity: .35; transition: opacity .3s, transform .5s var(--expo); }
.srv:hover svg { opacity: 1; transform: translate(4px, -4px); stroke: #17e88f; }

/* ---------- Visión: texto que se enciende + collage + firma ---------- */
.vision { position: relative; padding-block: clamp(40px, 8vw, 120px); text-align: center; }
.statement {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(26px, 4.2vw, 62px); line-height: 1.04; letter-spacing: -.015em;
  max-width: 22ch; margin-inline: auto;
}
.stw { color: #2e2e2e; transition: color .35s ease; }
.stw.lit { color: var(--fg); }
.stw.lit-last { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signature {
  position: relative; z-index: 1; margin-top: clamp(24px, 3vw, 44px);
  font-family: var(--script); font-size: clamp(44px, 6vw, 84px); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: rotate(-4deg);
}
.vfloat { position: absolute; margin: 0; overflow: hidden; border-radius: 12px; z-index: 0; will-change: transform; }
.vfloat img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vfloat--l { left: clamp(-20px, 2vw, 60px); top: 8%; width: clamp(120px, 18vw, 280px); height: clamp(90px, 13vw, 200px); }
.vfloat--r { right: clamp(-20px, 2vw, 60px); top: 32%; width: clamp(110px, 15vw, 240px); height: clamp(130px, 19vw, 300px); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); margin-top: clamp(30px, 5vw, 70px); }
.gal { margin: 0; overflow: hidden; border-radius: var(--r); }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal--d { grid-column: span 3; height: clamp(220px, 28vw, 420px); }
.gal--e { grid-column: span 3; height: clamp(220px, 28vw, 420px); margin-top: clamp(24px, 4vw, 70px); }
.gal--f { grid-column: span 6; height: clamp(260px, 36vw, 560px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.stat__n, .stat__s {
  font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat p { flex-basis: 100%; margin-top: 10px; font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }

/* ---------- Filas ---------- */
.rows { border-top: 1px solid var(--line-2); }
.row {
  display: grid; grid-template-columns: 1.1fr .9fr .6fr 1.2fr; align-items: baseline; gap: 20px;
  padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line-2);
  transition: padding-left .5s var(--expo);
}
.row:hover { padding-left: 14px; }
.row__t { font-family: var(--display); font-size: clamp(18px, 2vw, 28px); text-transform: uppercase; line-height: 1; }
.row__r, .row__d { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.row__x { color: var(--muted); font-size: clamp(13px, 1.1vw, 16px); line-height: 1.35; }

/* ---------- Planes ---------- */
.toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; }
.toggle button {
  height: 38px; padding: 0 20px; border-radius: 999px; font-family: var(--display);
  font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  transition: background .4s var(--expo), color .3s;
}
.toggle button.is-on { background: var(--grad); color: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px; border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(#292929, #292929) border-box;
  transition: background .5s, transform .6s var(--expo);
}
.plan:hover { transform: translateY(-4px); background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-border-dim) border-box; }
.plan--pro { background: linear-gradient(var(--card-2), var(--card-2)) padding-box, var(--grad-border) border-box; }
.plan--pro:hover { background: linear-gradient(var(--card-2), var(--card-2)) padding-box, var(--grad-border) border-box; }
.plan__badge {
  position: absolute; top: 20px; right: 20px; font-family: var(--display); font-weight: 600; font-size: 11px;
  letter-spacing: .8px; text-transform: uppercase; border: 1px solid rgba(23, 232, 143, .4);
  border-radius: 999px; padding: 4px 10px;
}
.plan__price { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price em { font-style: normal; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.plan__t { font-family: var(--display); font-size: clamp(16px, 1.5vw, 20px); text-transform: uppercase; }
.plan__d { color: var(--muted); font-size: 14px; line-height: 1.4; }
.plan__inc { font-family: var(--display); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.plan ul { display: grid; gap: 10px; margin-bottom: 22px; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d0d0d0; }
.plan li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(23, 232, 143, .45); flex: none; }

/* ---------- Stack ---------- */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.tool { background: var(--bg); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.tool__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tool h3 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); text-transform: uppercase; line-height: 1; }
.tool__pct { font-family: var(--display); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tool__r { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.bar { height: 2px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--expo); }
.tool.is-in .bar i { transform: scaleX(1); }

/* ---------- Testimonios ---------- */
.marq--quotes { margin-bottom: var(--gap); }
.marq--quotes .marq__track { animation-duration: 46s; }
.quote {
  width: clamp(280px, 30vw, 420px); flex: none; padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r);
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(#292929, #292929) border-box;
  display: flex; flex-direction: column; gap: 12px; transition: background .4s;
}
.quote:hover { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-border-dim) border-box; }
.quote__n { font-family: var(--display); font-size: 15px; text-transform: uppercase; }
.quote__r { font-family: var(--display); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.quote__t { font-size: 14px; line-height: 1.45; color: #d0d0d0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; gap: 20px; padding: clamp(18px, 2vw, 26px) 0;
  cursor: pointer; list-style: none; font-family: var(--display);
  font-size: clamp(15px, 1.5vw, 20px); text-transform: uppercase; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary em { font-style: normal; font-size: 12px; letter-spacing: .8px; color: var(--muted); flex: none; }
.faq summary .plus { margin-left: auto; position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--expo); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq__a { padding: 0 0 24px 32px; color: var(--muted); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; max-width: 60ch; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(80px, 12vw, 190px) var(--pad); display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; overflow: clip; }
.cta::before {
  content: ""; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: min(1200px, 100vw); height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(23, 232, 143, .14), rgba(0, 168, 90, .06) 45%, transparent 70%);
  filter: blur(12px);
}
.cta__t { position: relative; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(42px, 9.5vw, 150px); line-height: .85; letter-spacing: -.03em; }

/* ---------- Vista de proyecto ---------- */
.work-view { background: var(--bg); }
.wv { padding: 132px 0 0; }
.wv__head { padding-inline: var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.wv__back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.wv__back:hover { color: var(--fg); }
.wv__back svg { width: 15px; height: 15px; }
.wv__date { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.wv__title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 9vw, 132px); line-height: .84; letter-spacing: -.025em; color: #fff;
}
.wv__lead { max-width: 62ch; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; }
.wv__hero { margin: clamp(32px, 5vw, 64px) var(--pad) 0; overflow: hidden; border-radius: var(--r); }
.wv__hero img { width: 100%; height: clamp(300px, 58vw, 760px); object-fit: cover; will-change: transform; }
.wv__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  margin: clamp(28px, 4vw, 56px) var(--pad) 0; padding-block: clamp(20px, 2.6vw, 34px);
  border-block: 1px solid var(--line-2); text-align: center;
}
.wv__meta div { display: flex; flex-direction: column; gap: 8px; }
.wv__meta dt { font-family: var(--display); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.wv__meta dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.6vw, 22px); text-transform: uppercase; line-height: 1.1; }
.wv__body { padding: clamp(48px, 7vw, 110px) var(--pad) 0; display: grid; gap: clamp(48px, 7vw, 100px); }
.wv__block { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 4vw, 70px); align-items: start; }
.wv__block h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 44px); text-transform: uppercase; line-height: .9; }
.wv__block h2 em { display: block; font-style: normal; font-size: 12px; letter-spacing: .8px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.wv__block p { color: var(--muted); font-size: clamp(14px, 1.25vw, 17px); line-height: 1.5; max-width: 56ch; }
.wv__img { overflow: hidden; border-radius: var(--r); margin: 0; }
.wv__img img { width: 100%; height: clamp(260px, 44vw, 640px); object-fit: cover; }
.wv__zoom { margin: 0 auto; width: min(420px, 78%); overflow: hidden; border-radius: var(--r); }
.wv__zoom img { width: 100%; height: clamp(420px, 60vw, 760px); object-fit: cover; transform: scale(1.15); will-change: transform; }
.wv__ticker { margin-top: clamp(56px, 8vw, 110px); border-block: 1px solid var(--line-2); padding-block: 18px; }
.wv__ticker span {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.4vw, 80px); line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px #3a3a3a;
}
.wv__ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); -webkit-text-stroke: 0; }
.wv__next { padding: clamp(48px, 6vw, 90px) var(--pad); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }

/* ---------- Footer ---------- */
.foot { padding: clamp(40px, 5vw, 70px) var(--pad) 28px; border-top: 1px solid var(--line-2); background: var(--bg); }
.foot__grid { display: grid; grid-template-columns: repeat(2, auto) 1fr; gap: clamp(20px, 4vw, 60px); align-items: start; }
.foot__k, .foot__v { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.foot__v { color: var(--muted); }
.foot__bio { justify-self: end; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.45; }
.foot__links { display: flex; gap: 26px; margin-top: 36px; }
.foot__links a { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; position: relative; }
.foot__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--expo); }
.foot__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot__brand { margin-top: clamp(28px, 4vw, 56px); }
.foot__brand span {
  display: block; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(48px, 15.5vw, 240px); line-height: .8; letter-spacing: -.03em; color: #fff;
}
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.foot__bottom p, .foot__top { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.foot__top:hover { color: var(--fg); }

/* ---------- Animaciones ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform 1s var(--expo); transition-delay: calc(var(--d, 0) * 1ms); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready [data-reveal="image"] { opacity: 1; transform: none; position: relative; }
.reveal-ready [data-reveal="image"]::after {
  content: ""; position: absolute; inset: 0; background: var(--bg); z-index: 2;
  transform-origin: bottom; transition: transform 1.2s var(--expo); transition-delay: calc(var(--d, 0) * 1ms);
}
.reveal-ready [data-reveal="image"].is-in::after { transform: scaleY(0); }

.hero__title .ln > i, .wv__title .ln > i, .foot__brand span .ln > i {
  background: linear-gradient(180deg, #fff 50%, rgba(255, 255, 255, .5) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.foot__brand span .ln > i { background-image: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .22) 100%); }
.ln { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > i { display: inline-block; font-style: normal; transform: translateY(105%); transition: transform 1s var(--expo); transition-delay: calc(var(--i, 0) * 70ms); }
.is-in .ln > i, .ln.is-in > i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marq__track { animation: none; }
  .reveal-ready [data-reveal] { transform: none; transition: opacity .5s ease; }
  .reveal-ready [data-reveal="image"]::after { display: none; }
  .ln > i { transform: none; transition: none; }
  .hero__media img, .wv__hero img, .wv__zoom img, .vfloat { transform: none !important; }
  .stw { color: var(--fg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bg-lines i:nth-child(2) { display: none; }
  .phases, .stats { grid-template-columns: repeat(2, 1fr); }
  .plans, .tools { grid-template-columns: 1fr; }
  .about, .faq { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  .row__x { grid-column: span 2; }
  .srv { grid-template-columns: 50px 1fr 28px; }
  .srv p { grid-column: 2; }
  .wv__block { grid-template-columns: 1fr; }
  .wv__meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { padding: 18px var(--pad); }
  .nav__label, .nav__clock { font-size: 14px; }
  .hero { padding-top: 110px; }
  .hero__facts { grid-template-columns: 1fr; gap: 22px; }
  .fact { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 10px; }
  .fact__b { margin-left: auto; }
  .works, .wv__next { grid-template-columns: 1fr; }
  .work--wide { grid-column: auto; }
  .phases, .stats { grid-template-columns: 1fr; }
  .vfloat--l { top: auto; bottom: -4%; }
  .vfloat--r { top: -6%; }
  .statement { max-width: 16ch; }
  .gallery { grid-template-columns: 1fr; }
  .gal--d, .gal--e, .gal--f { grid-column: auto; margin-top: 0; height: clamp(220px, 60vw, 380px); }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bio { justify-self: start; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .wv { padding-top: 104px; }
}

/* ==========================================================================
   VISOR DE PIEZAS — pensado para posts 1080×1350 (4:5) y flyers 1920×1080 (16:9)
   ========================================================================== */
.pieces { padding: clamp(40px, 6vw, 80px) var(--pad) 0; }
.pieces__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.pieces__head h2 { font-family: var(--display); font-size: clamp(20px, 2.4vw, 32px); text-transform: uppercase; line-height: 1; }
.pieces__count { font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }

/* Rejilla que respeta el formato de cada pieza */
.pieces__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(12, 1fr); }
.piece { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); cursor: zoom-in; grid-column: span 4; }
.piece--v { grid-column: span 3; aspect-ratio: 4 / 5; }      /* 1080×1350 */
.piece--h { grid-column: span 6; aspect-ratio: 16 / 9; }     /* 1920×1080 */
.piece--sq { grid-column: span 4; aspect-ratio: 1; }         /* 1080×1080 */
.piece--story { grid-column: span 3; aspect-ratio: 9 / 16; } /* 1080×1920 */
.piece img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--expo); }
.piece:hover img { transform: scale(1.04); }
.piece__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--display); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 9px; border-radius: 99px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px);
  border: 1px solid rgba(23, 232, 143, .35); color: #7cffb2;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--expo);
}
.piece:hover .piece__tag { opacity: 1; transform: none; }
@media (max-width: 1024px) {
  .piece--v, .piece--story { grid-column: span 4; }
  .piece--h, .piece--sq { grid-column: span 6; }
}
@media (max-width: 760px) {
  .pieces__grid { grid-template-columns: repeat(2, 1fr); }
  .piece, .piece--v, .piece--h, .piece--sq, .piece--story { grid-column: span 1; }
  .piece--h { grid-column: span 2; }
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(0, 0, 0, .94); backdrop-filter: blur(10px); animation: lbIn .35s var(--expo); }
@keyframes lbIn { from { opacity: 0; } }
.lb.is-leaving { animation: lbOut .25s ease forwards; }
@keyframes lbOut { to { opacity: 0; } }
.lb__stage {
  position: relative; width: 100%; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(56px, 8vh, 90px) clamp(56px, 8vw, 110px);
}
.lb__img {
  max-width: 100%; max-height: 100%; min-width: 0; min-height: 0;
  width: auto; height: auto; object-fit: contain;
  border-radius: 8px; animation: lbImg .5s var(--expo);
}
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; transition: background .3s, border-color .3s;
}
.lb__nav:hover { background: var(--grad); color: #000; border-color: transparent; }
.lb__nav--prev { left: clamp(8px, 2vw, 26px); }
.lb__nav--next { right: clamp(8px, 2vw, 26px); }
.lb__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); }
.lb__close:hover { background: var(--grad); color: #000; }
.lb__bar {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; padding: 9px 18px; border-radius: 99px;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
  font-family: var(--display); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap;
}
.lb__bar b { color: #7cffb2; font-weight: 600; }
.lb__bar span { color: var(--muted); }
@media (max-width: 760px) { .lb__nav { width: 42px; height: 42px; } .lb__bar { font-size: 10.5px; gap: 10px; } }

/* ==========================================================================
   BOTÓN "MI CUENTA" · CURSOR VERDE · SCROLL FLUIDO
   ========================================================================== */

/* --- Botón flotante a tu Instagram --- */
.cuenta {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: #fff; color: #0a0a0a;
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  animation: cuentaIn .8s var(--expo) 1.1s both;
  transition: color .4s var(--expo), box-shadow .4s;
  isolation: isolate; overflow: hidden;
}
.cuenta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: translateY(101%); transition: transform .5s var(--expo);
}
.cuenta:hover::before { transform: none; }
.cuenta:hover { box-shadow: 0 12px 34px rgba(23, 232, 143, .35); }
.cuenta svg { width: 17px; height: 17px; stroke-width: 1.8; }
@keyframes cuentaIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@media (max-width: 600px) { .cuenta span { display: none; } .cuenta { padding: 0; width: 46px; justify-content: center; } }

/* --- Cursor verde --- */
.cursor {
  position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 9999;
  pointer-events: none; mix-blend-mode: difference; contain: layout style;
}
.cursor i, .cursor b {
  position: absolute; left: 0; top: 0; display: block; border-radius: 50%;
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%) scale(var(--s, 1));
}
.cursor i { width: 8px; height: 8px; background: #17e88f; transition: width .3s var(--expo), height .3s var(--expo), opacity .3s; }
.cursor b {
  width: 38px; height: 38px; border: 1px solid rgba(23, 232, 143, .75);
  transition: width .45s var(--expo), height .45s var(--expo), border-color .3s, opacity .3s;
}
/* Sobre algo pulsable, el aro crece y el punto se apaga */
.cursor.is-link i { opacity: 0; }
.cursor.is-link b { width: 62px; height: 62px; border-color: #17e88f; background: rgba(23, 232, 143, .1); }
/* Sobre una pieza del portafolio */
.cursor.is-zoom b { width: 78px; height: 78px; background: rgba(23, 232, 143, .14); }
.cursor.is-zoom i { opacity: 1; width: 4px; height: 4px; }
.cursor.is-hidden i, .cursor.is-hidden b { opacity: 0; }
/* Solo con ratón: en móvil o si se reduce el movimiento, no aparece */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none; } }
html.cursor-on, html.cursor-on * { cursor: none !important; }
html.cursor-on input, html.cursor-on textarea, html.cursor-on select, html.cursor-on .zp * { cursor: auto !important; }

/* --- Scroll fluido --- */
html.scroll-suave { scroll-behavior: auto; }
