/* ==========================================================
   DavidMotion — sistema de diseño v2
   Negro y gris oscuro · naranja Ultra · Bebas Neue + JetBrains Mono
   ========================================================== */
:root {
  --bg: #0a0a0b;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f5f5f7;
  --muted: #9c9ca3;
  --accent: #ff6a00;
  --accent-soft: #ff8a3d;
  --accent-glow: rgba(255, 106, 0, 0.32);

  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1360px;
  --radius: 22px;      /* medios y paneles, proporción Apple */
  --radius-sm: 12px;
  --pill: 980px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #0a0a0b; }

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

/* Grano de película */
.grain {
  position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: 0.9; letter-spacing: 0.012em;
}
h2 { font-size: clamp(3rem, 8.2vw, 7.5rem); }
h3 { font-size: 1.9rem; line-height: 1; letter-spacing: 0.02em; }
em { font-style: normal; color: var(--accent); }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(245, 245, 247, 0.55); }

.label {
  font: 400 0.7rem/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.label b { font-weight: 500; color: var(--accent); margin-right: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); margin-right: 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; border: 1px solid transparent; border-radius: var(--pill);
  font: 500 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .5s;
}
.btn--primary { background: var(--accent); color: #0a0a0b; }
.btn--primary:hover { background: var(--text); transform: translateY(-2px); box-shadow: 0 14px 44px var(--accent-glow); }
.btn--line { border-color: var(--line); background: transparent; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

.play { width: 0; height: 0; border-left: 8px solid currentColor; border-block: 5px solid transparent; }
.play--lg { border-left-width: 20px; border-block-width: 13px; margin-left: 5px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; gap: 40px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(10, 10, 11, .78); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line-soft); padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; padding-top: 2px;
  background: var(--accent); color: #0a0a0b; border-radius: 10px;
  font: 400 1.25rem/1 var(--display); letter-spacing: .03em;
}
.brand__name { font: 400 1.6rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.nav__links { display: flex; gap: 36px; }
.nav__links a { font: 400 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav__links a i { font-style: normal; color: var(--accent); margin-right: 8px; opacity: .8; }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 12px 20px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 34px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s, transform .5s var(--ease), visibility .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font: 400 3.4rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.menu nav a i { font: 400 .7rem var(--mono); font-style: normal; color: var(--accent); letter-spacing: .14em; }
.menu__foot { font: 400 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 17vh, 170px) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.hero__glow {
  position: absolute; top: -30%; right: -15%; width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .17), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero .container { position: relative; }
.hero__meta {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  font: 400 .7rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.hero__title {
  font-size: clamp(3.2rem, 14vw, 13rem); line-height: .86; letter-spacing: .005em;
  margin: clamp(26px, 4vw, 48px) 0 clamp(28px, 4vw, 52px);
}
.hero__title .outline { -webkit-text-stroke-width: 1.5px; }
.line { display: block; overflow: hidden; padding-top: .05em; }
.line > span { display: block; transform: translateY(108%); animation: rise 1.2s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }

.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 430px; color: var(--muted); font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Marco del reel con marcas de visor */
.reel { margin-top: clamp(48px, 7vw, 96px); }
.reel__frame {
  position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-2); box-shadow: 0 50px 130px -40px rgba(0, 0, 0, .9);
}
.reel__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__hud a { transition: color .3s; }
.reel__hud a:hover { color: var(--accent); }
.reel__placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 90% at 80% 25%, rgba(255, 106, 0, .6), transparent 62%),
    radial-gradient(60% 90% at 12% 95%, rgba(255, 138, 61, .16), transparent 65%),
    linear-gradient(135deg, #222226, #08080a);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.14) translate(-2%, 1.5%); } }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .7); z-index: 2; pointer-events: none; }
.corner--tl { top: 26px; left: 26px; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 26px; right: 26px; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 26px; left: 26px; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: 26px; right: 26px; border-bottom-width: 1px; border-right-width: 1px; }
.reel__hud {
  position: absolute; left: 62px; right: 62px; z-index: 2; display: flex; justify-content: space-between;
  font: 400 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.reel__hud--top { top: 32px; }
.reel__hud--bottom { bottom: 32px; }
.rec { display: flex; align-items: center; gap: 8px; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.reel__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3;
  width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(10, 10, 11, .3); backdrop-filter: blur(10px); cursor: pointer;
  display: grid; place-items: center; transition: transform .6s var(--ease), background .3s, border-color .3s, color .3s;
}
.reel__frame:hover .reel__play { transform: scale(1.08); background: var(--accent); border-color: var(--accent); color: #0a0a0b; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0 14px; }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { font: 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.marquee b { color: var(--accent); font-size: 1rem; font-weight: 400; translate: 0 -4px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 22px)); } }

/* ---------- Clientes ---------- */
.clients { padding: 44px 0; border-bottom: 1px solid var(--line); }
.clients__inner { display: flex; align-items: center; gap: clamp(28px, 6vw, 90px); flex-wrap: wrap; }
.clients__list { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; font: 400 1.5rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .34); }
.clients__list li { transition: color .3s; }
.clients__list li:hover { color: var(--text); }

/* ---------- Secciones ---------- */
.section { padding: clamp(84px, 12vw, 180px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section__head { display: grid; gap: 26px; margin-bottom: clamp(36px, 5vw, 70px); }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { display: grid; gap: 26px; }
.link { font: 400 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chip {
  position: relative; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: 400 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s;
}
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.chip:hover { color: var(--text); }
.chip.is-active { color: var(--accent); }
.chip.is-active::after { transform: scaleX(1); }

/* ---------- Grid de proyectos ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 56px) 24px; }
.card { grid-column: span 6; display: block; }
.card--wide { grid-column: span 12; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(50% 80% at var(--x, 80%) var(--y, 20%), rgba(255, 106, 0, .55), transparent 65%),
    linear-gradient(140deg, #232327, #09090b);
  transition: transform .9s var(--ease), filter .6s;
  filter: saturate(.75) brightness(.9);
}
.card--wide .card__media { aspect-ratio: 2.39 / 1; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__tc { z-index: 1; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.card:hover .card__media { transform: scale(.985); filter: none; }
.card__media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; transition: border-color .4s; }
.card:hover .card__media::after { border-color: rgba(255, 106, 0, .7); }
.card__tc { position: absolute; top: 16px; right: 18px; font: 400 .7rem var(--mono); letter-spacing: .12em; color: rgba(255, 255, 255, .8); opacity: 0; transition: opacity .4s; }
.card:hover .card__tc { opacity: 1; }
.card__body { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; padding-top: 18px; }
.card h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); transition: color .3s; }
.card:hover h3 { color: var(--accent); }
.card p { display: flex; gap: 10px; font: 400 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card p span + span::before { content: "/"; margin-right: 10px; opacity: .4; }
.card p span:first-child { color: var(--accent); }

/* ---------- Pictogramas ---------- */
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Servicios ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 90px 1fr 1.1fr auto; gap: 28px; align-items: center;
  padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease), background .5s;
}
.service:hover { padding-inline: 22px; background: linear-gradient(90deg, rgba(255, 106, 0, .07), transparent 70%); }
.service__n { display: grid; gap: 14px; justify-items: start; font: 400 .72rem var(--mono); letter-spacing: .14em; color: var(--accent); }
.service__n .ico { color: var(--text); transition: color .3s; }
.service:hover .service__n .ico { color: var(--accent); }
.service h3 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .9; transition: color .3s; }
.service:hover h3 { color: var(--accent); }
.service p { color: var(--muted); max-width: 420px; }
.service ul { display: grid; gap: 6px; justify-items: end; font: 400 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Paquetes */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.pack { display: grid; gap: 16px; align-content: start; justify-items: start; padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.pack + .pack { padding-left: 28px; border-left: 1px solid var(--line); }
.pack .ico { color: var(--text); transition: color .3s; }
.pack:hover .ico { color: var(--accent); }
.pack .label { color: var(--accent); }
.pack h3 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: .95; margin-top: -8px; }
.pack ul { display: grid; gap: 8px; color: var(--muted); }
.pack ul li { position: relative; padding-left: 18px; }
.pack ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }
.pack__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 400 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.pack__meta span + span::before { content: "/"; margin-right: 10px; opacity: .4; }
.promise { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: .95rem; }
.promise .ico { width: 22px; height: 22px; color: var(--accent); }
.promise b { font-weight: 500; color: var(--text); }

/* Formato vertical */
.vertical { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: clamp(20px, 3.4vw, 48px); margin-top: clamp(48px, 6vw, 84px); padding: clamp(24px, 3vw, 36px) 0; border-block: 1px solid var(--line); }
.vertical > div { display: grid; gap: 10px; }
.vertical h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .95; }
.vertical h3 em { font-style: normal; color: var(--accent); }
.vertical > p { color: var(--muted); max-width: 440px; }
.vertical .ico { width: 34px; height: 34px; color: var(--text); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 84px); }
.process li { position: relative; display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.process li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.process .ico { margin-bottom: 8px; color: var(--text); }
.process b { font: 400 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.process span { font: 400 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }

/* ---------- Notas ---------- */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.note-feature {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 60px; min-height: 440px;
  padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(75% 65% at 100% 0%, rgba(255, 106, 0, .22), transparent 62%), var(--bg-2);
  transition: border-color .4s;
}
.note-feature:hover { border-color: rgba(255, 106, 0, .7); }
.note-feature h3 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: .92; margin-bottom: 16px; }
.note-feature p { color: var(--muted); max-width: 440px; }
.note-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.note { position: relative; display: grid; gap: 10px; padding: 28px 56px 28px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease); }
.note:hover { padding-left: 16px; }
.note h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); transition: color .3s; }
.note:hover h3 { color: var(--accent); }
.note__arrow { position: absolute; right: 4px; top: 50%; translate: 0 -50%; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.note:hover .note__arrow { transform: translateX(6px); color: var(--accent); }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 55% at 72% 8%, rgba(255, 106, 0, .42), transparent 62%), linear-gradient(160deg, #26262b, #09090b);
  display: grid; place-items: end start; padding: 30px 56px;
}
.about__text { display: grid; gap: 28px; }
.tools { margin-top: clamp(64px, 9vw, 130px); }
.tools__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.tools__head h3 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.tools__head em { font-style: normal; color: var(--accent); }
.tools__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tools__grid > li { display: grid; gap: 16px; align-content: start; padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.tools__grid > li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.tools__grid .ico { color: var(--text); transition: color .3s; }
.tools__grid > li:hover .ico { color: var(--accent); }
.tools__grid .label { color: var(--accent); }
.tools__grid ul { display: grid; gap: 4px; font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.tools__grid a { color: var(--muted); font: 400 .68rem var(--mono); letter-spacing: .14em; transition: color .3s; }
.tools__grid a:hover { color: var(--accent); }
.about__bio { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 10px; }
.stats li { display: grid; gap: 6px; padding: 24px 20px 0 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { font: 400 clamp(3rem, 5.4vw, 5rem)/.9 var(--display); color: var(--accent); }
.stats span { font: 400 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(60% 55% at 90% 100%, rgba(255, 106, 0, .15), transparent 62%), var(--bg); }
.contact__title { font-size: clamp(3.2rem, 11.5vw, 11rem); line-height: .86; margin: 26px 0 clamp(40px, 6vw, 84px); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.contact__info > p { color: var(--muted); font-size: 1.1rem; max-width: 380px; margin-bottom: 36px; }
.contact__info dl { display: grid; grid-template-columns: 110px 1fr; }
.about { align-items: end; }
.contact__info dt, .contact__info dd { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.contact__info dt { font: 400 .68rem/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__info dd { font: 400 1.5rem/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.contact__info a { transition: color .3s; }
.contact__info a:hover { color: var(--accent); }

.form { display: grid; gap: 26px; }
.form label { display: grid; gap: 4px; font: 400 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 0 14px; background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; resize: vertical;
  font: 300 1.1rem var(--sans); text-transform: none; letter-spacing: 0; transition: border-color .3s;
}
.form select option { background: var(--bg-2); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer__word {
  font: 400 21.5vw/.78 var(--display); text-transform: uppercase; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14); padding-top: .14em; user-select: none;
}
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 26px; font: 400 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer a:hover { color: var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 85;
  display: flex; align-items: center; height: 58px; padding: 0 16px; border-radius: 999px;
  background: #25d366; color: #06240f; box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .14) inset;
  transition: transform .5s var(--ease), box-shadow .4s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #25d366; animation: ping 3s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: max-width .5s var(--ease), margin .5s var(--ease); }
.wa-float svg { flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(37, 211, 102, .35); }
.wa-float:hover .wa-float__label { max-width: 130px; margin-right: 10px; }

/* ==========================================================
   Movimiento
   Los estados ocultos solo aplican con .js (se activa en <head>
   si hay JavaScript y el usuario no pidió reducir movimiento).
   ========================================================== */

/* Revelado con desenfoque al entrar en pantalla */
.js .reveal {
  opacity: 0; transform: translateY(44px); filter: blur(10px);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out), filter 1.2s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Titulares: palabra por palabra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .16em; margin-top: -.16em; }
.w > span { display: inline-block; transform: translateY(112%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 100ms); }
.is-in .w > span, .is-in.w > span { transform: none; }

/* Hero ligado al scroll: el titular se aleja mientras el reel crece */
.nav { transition: background .4s, border-color .4s, padding .4s, transform .6s var(--ease-out); }
.nav.is-hidden { transform: translateY(-100%); }
.hero__title { transform: translateY(calc(var(--h, 0) * -70px)); opacity: calc(1 - var(--h, 0) * 1.15); }
.hero__meta { opacity: calc(1 - var(--h, 0) * 1.6); }
.hero__glow { transform: translateY(calc(var(--h, 0) * 160px)); }
.reel__frame {
  transform: scale(calc(.86 + .14 * var(--p, 1)));
  border-radius: calc(var(--radius) + 30px * (1 - var(--p, 1)));
  will-change: transform;
}

/* Proyectos: la imagen se abre desde un recorte */
.js .card.reveal { opacity: 1; transform: none; filter: none; }
.js .card.reveal .card__media {
  clip-path: inset(14% 7% 14% 7% round 44px); opacity: 0; transform: scale(1.05);
  transition: clip-path 1.5s var(--ease-out), opacity 1s var(--ease-out), transform 1.5s var(--ease-out), filter .6s;
  transition-delay: inherit;
}
.js .card.reveal .card__body { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out) .35s, transform 1.2s var(--ease-out) .35s; }
.js .card.reveal.is-in .card__media { clip-path: inset(0 round var(--radius)); opacity: 1; transform: none; }
.js .card.reveal.is-in .card__body { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover .card__media { transform: scale(.985); transition-duration: .9s; transition-delay: 0s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } }

/* Proceso: la línea se dibuja paso a paso */
.js .process li { border-top-color: transparent; }
.js .process li::after {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out);
}
.js .process li::before { transform: scale(0); transition: transform .7s var(--ease-out); }
.js .process li span, .js .process li b, .js .process li .ico { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .process.is-in li::after { transform: scaleX(1); }
.js .process.is-in li::before { transform: none; }
.js .process.is-in li span, .js .process.is-in li b, .js .process.is-in li .ico { opacity: 1; transform: none; }
.js .process li:nth-child(2)::after, .js .process li:nth-child(2)::before, .js .process li:nth-child(2) > * { transition-delay: .2s; }
.js .process li:nth-child(3)::after, .js .process li:nth-child(3)::before, .js .process li:nth-child(3) > * { transition-delay: .4s; }
.js .process li:nth-child(4)::after, .js .process li:nth-child(4)::before, .js .process li:nth-child(4) > * { transition-delay: .6s; }

/* Pie: la marca sube al llegar al final */
.footer__word { transform: translateY(calc((1 - var(--p, 1)) * 38%)); opacity: calc(.25 + .75 * var(--p, 1)); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .packs { grid-template-columns: 1fr; }
  .pack, .pack + .pack { padding: 28px 0; border-left: 0; }
  .vertical { grid-template-columns: auto 1fr; }
  .vertical > p, .vertical > .btn { grid-column: 1 / -1; justify-self: start; }
  .tools__grid { grid-template-columns: repeat(2, 1fr); }
  .tools__grid > li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .tools__grid > li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .service__n .ico { width: 24px; height: 24px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .service { grid-template-columns: 50px 1fr; gap: 12px 20px; }
  .service p, .service ul { grid-column: 2; }
  .service ul { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-items: start; }
  .notes, .about, .contact__inner { grid-template-columns: 1fr; }
  .note-feature { min-height: 340px; }
  .about__photo { max-width: 420px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
}
@media (max-width: 640px) {
  .tools__grid { grid-template-columns: 1fr; }
  .tools__grid > li, .tools__grid > li:not(:nth-child(3n+1)) { padding: 26px 0; border-left: 0; }
  .hide-sm { display: none; }
  .card, .card--wide { grid-column: span 12; }
  .card--wide .card__media { aspect-ratio: 16 / 9; }
  .reel__frame { aspect-ratio: 16 / 10; }
  .reel__play { width: 76px; height: 76px; }
  .reel__hud { left: 54px; right: 54px; font-size: .6rem; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .filters { gap: 22px; }
  .stats li + li { padding-left: 14px; }
  .form .btn { justify-self: stretch; }
  .wa-float { height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .line > span, .w > span { opacity: 1; transform: none; filter: none; }
  .hero__title, .hero__glow, .reel__frame, .footer__word { transform: none; opacity: 1; }
}

.footer__links { display: flex; gap: 28px; }

/* Franja de marcas con logos */
.clients__list { align-items: center; font: 400 .66rem/1.5 var(--mono); letter-spacing: .14em; }
.clients__list a { display: flex; align-items: center; gap: 14px; color: var(--muted); transition: color .3s; }
.clients__list img, .clients__mono { flex: none; width: 52px; height: 52px; border-radius: 50%; }
.clients__list img { object-fit: cover; filter: grayscale(1) brightness(1.7); opacity: .7; transition: filter .4s, opacity .4s; }
.clients__mono { display: grid; place-items: center; border: 1px solid currentColor; font: 400 1.05rem/1 var(--display); letter-spacing: .06em; font-style: normal; opacity: .7; transition: opacity .4s, color .3s; }
.clients__list a:hover { color: var(--text); }
.clients__list a:hover img { filter: none; opacity: 1; }
.clients__list a:hover .clients__mono { opacity: 1; color: var(--accent); }
@media (max-width: 640px) { .clients__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; } }

/* Reproductor incrustado (Bunny Stream) */
.reel__frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel--player .reel__frame { aspect-ratio: 16 / 9; background: #000; }
.reel figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font: 400 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reel figcaption a { transition: color .3s; }
.reel figcaption a:hover { color: var(--accent); }
@media (max-width: 640px) { .reel--player .reel__frame { aspect-ratio: 16 / 9; } }
