/* ==========================================================
   smokstudio.com — estilos v2
   Un solo sistema: escala tipográfica de 6 tamaños, grilla de
   12 columnas y espaciado fijo entre secciones.
   ========================================================== */

:root {
  /* Color */
  --bg: #FAFAF8;
  --tint: #F1F0EC;
  --ink: #111111;
  --muted: #6E6E69;
  --line: rgba(17, 17, 17, 0.12);
  --dark: #111111;
  --placeholder: #E4E3DE;

  /* Tipografía — escala única */
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.5rem, 5vw, 4.75rem);   /* 40 → 76 */
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);       /* 28 → 44 */
  --fs-h3: clamp(1.125rem, 1.4vw, 1.375rem);   /* 18 → 22 */
  --fs-lead: clamp(1.125rem, 1.4vw, 1.3125rem);/* 18 → 21 */
  --fs-body: 1rem;                             /* 16 */
  --fs-small: 0.8125rem;                       /* 13 */

  /* Espaciado */
  --gutter: clamp(20px, 3vw, 40px);
  --col-gap: clamp(16px, 2vw, 24px);
  --section: clamp(88px, 10vw, 144px);
  --stack: clamp(40px, 5vw, 64px);
  --max: 1440px;
  --radius: 4px;
  --hd-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; padding: 0; list-style: none; border: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
main { padding-top: var(--hd-h); }

/* ---------- Tipografía ---------- */
.display { font-size: var(--fs-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.005em; }
.eyebrow { font-size: var(--fs-small); font-weight: 500; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--ink); margin-right: 6px; }
.muted { color: var(--muted); }
.link { display: inline-flex; gap: 6px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .2s; }
.link:hover { opacity: .6; }

/* ---------- Botones / tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
  font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: var(--fs-small); padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ==========================================================
   HEADER
   ========================================================== */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 300; height: var(--hd-h);
  transition: transform .5s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.hd.is-scrolled { background: rgba(250, 250, 248, .85); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom-color: var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.hd__logo { justify-self: start; line-height: 0; }
.hd__logo img { width: 104px; transition: filter .3s; }
.hd__nav { display: flex; gap: 32px; }
.hd__nav a { position: relative; font-size: 0.9375rem; font-weight: 500; padding: 6px 0; }
.hd__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hd__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); letter-spacing: .06em; margin-right: 8px; }
.lang a { color: var(--muted); transition: color .2s; }
.lang a:hover, .lang a[aria-current] { color: var(--ink); }
.lang span { color: var(--line); }
body.menu-open .hd .lang { opacity: 0; pointer-events: none; }
.menu__lang .lang a { color: #8A8A85; }
.menu__lang .lang a[aria-current], .menu__lang .lang a:hover { color: #fff; }
.hd__burger { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.hd__burger:hover { border-color: var(--ink); }
.hd__burger i { position: absolute; left: 12px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .3s var(--ease), background .3s; }
.hd__burger i:nth-of-type(1) { top: 15px; }
.hd__burger i:nth-of-type(2) { top: 22px; }

/* Menú abierto */
body.menu-open { overflow: hidden; }
body.menu-open .hd { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
body.menu-open .hd__logo img { filter: invert(1); }
body.menu-open .hd__nav { opacity: 0; pointer-events: none; }
body.menu-open .hd .lang { transition: opacity .3s; }
body.menu-open .hd__cta { background: #fff; color: var(--ink); border-color: #fff; }
body.menu-open .hd__burger { border-color: rgba(255,255,255,.4); }
body.menu-open .hd__burger i { background: #fff; top: 18.5px; }
body.menu-open .hd__burger i:nth-of-type(1) { transform: rotate(45deg); }
body.menu-open .hd__burger i:nth-of-type(2) { transform: rotate(-45deg); }
.hd__nav { transition: opacity .3s; }

/* ==========================================================
   MENÚ OVERLAY
   ========================================================== */
.menu {
  position: fixed; inset: 0; z-index: 250; background: var(--dark); color: #fff;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s; overflow-y: auto;
}
.menu[hidden] { display: block; }
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu__wrap { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--hd-h) + 6vh); padding-bottom: 32px; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 20px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1;
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), color .25s, padding-left .45s var(--ease);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu__nav:hover a { color: #6E6E69; }
.menu__nav a:hover, .menu__nav a:focus-visible { color: #fff; padding-left: 16px; }
.menu__num { font-size: var(--fs-small); color: #8A8A85; letter-spacing: .06em; min-width: 2.2em; }
.menu__nav sup { font-size: var(--fs-small); letter-spacing: 0; color: #8A8A85; align-self: flex-start; margin-top: 1em; }
.menu__foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); opacity: 0; transition: opacity .6s .3s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot div { display: flex; flex-direction: column; gap: 4px; }
.menu__foot .eyebrow { color: #8A8A85; margin-bottom: 4px; }
.menu__foot a:hover { opacity: .6; }

/* ==========================================================
   SECCIONES
   ========================================================== */
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .eyebrow { color: #8A8A85; }
.section--dark .eyebrow span { color: #fff; }


/* Dos columnas: etiqueta + contenido */
.two { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); }
.two > .eyebrow { grid-column: 1 / 4; padding-top: 6px; }
.two__body { grid-column: 4 / 11; display: flex; flex-direction: column; gap: 20px; }
.two__body p:not(.lead) { color: var(--muted); max-width: 62ch; }
.two__body .h3 { margin-top: 12px; }
.two__body .h3:first-child { margin-top: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 9vw, 128px); padding-bottom: var(--stack); }
.hero .eyebrow { margin-bottom: 24px; }
.hero__title { max-width: 18ch; }
.hero--page .hero__title { max-width: 22ch; }
.hero__bottom { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); margin-top: var(--stack); align-items: end; }
.hero__lead { grid-column: 1 / 7; color: var(--muted); max-width: 44ch; }
.hero__ctas { grid-column: 9 / 13; justify-self: end; display: flex; gap: 12px; flex-wrap: wrap; }
.hero--page .hero__ctas { margin-top: 32px; justify-self: start; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); margin-top: var(--stack); padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--fs-small); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.facts dd { font-size: 0.9375rem; line-height: 1.55; }
.facts a { border-bottom: 1px solid var(--line); }
.facts a:hover { border-color: var(--ink); }
.project__intro { margin-top: 32px; max-width: 52ch; color: var(--muted); }

/* ---------- Media ---------- */
.reel video, .reel .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); margin-top: var(--stack); }
.pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }

/* ---------- Índice (Work) ---------- */
.idx__head, .idx__row { display: grid; grid-template-columns: 4fr 4fr 3fr 40px; gap: var(--col-gap); align-items: center; }
.idx__head { padding-bottom: 12px; font-size: var(--fs-small); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.idx ul { border-top: 1px solid var(--ink); }
.idx__row { padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), color .2s; }
.idx__name { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }
.idx__kind, .idx__sector { font-size: 0.9375rem; color: var(--muted); }
.idx__arrow { justify-self: end; transition: transform .3s var(--ease); }
.idx ul:hover .idx__row { color: #A3A39E; }
.idx ul:hover .idx__row:hover { color: var(--ink); padding-left: 12px; }
.idx__row:hover .idx__arrow { transform: translateX(4px); }
.idx__preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 300px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius);
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .25s, transform .35s var(--ease);
}
.idx__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Testimonios ---------- */
.rv { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); }
.rv__slides { grid-column: 4 / 13; min-height: 260px; }
.rv__slide { animation: fade .6s var(--ease); }
.rv__slide[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.rv blockquote { font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; }
.rv figcaption { display: flex; flex-direction: column; margin-top: 32px; }
.rv figcaption span { color: #8A8A85; font-size: 0.9375rem; }
.rv__nav { grid-column: 4 / 13; display: flex; align-items: center; gap: 8px; margin-top: 40px; }
.rv__count { font-size: var(--fs-small); color: #8A8A85; margin-right: auto; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.rv__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); transition: background .25s, color .25s; }
.rv__btn:hover { background: #fff; color: var(--ink); }

/* ---------- Clientes ---------- */
.clients { columns: 4; column-gap: var(--col-gap); }
.clients li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.clients a { display: block; padding: 12px 0; font-size: 0.9375rem; transition: opacity .2s, padding .4s var(--ease); }
.clients a:hover { opacity: .55; padding-left: 6px; }

/* ---------- Fundadora ---------- */
.founder { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: center; }
.founder__photo { grid-column: 1 / 5; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
.founder__text { grid-column: 6 / 12; display: flex; flex-direction: column; gap: 20px; }
.founder__text p:not(.lead):not(.eyebrow) { color: var(--muted); max-width: 60ch; }

/* ---------- Galería de proyecto ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--col-gap); }
.gallery > *:nth-child(3n + 1) { grid-column: 1 / -1; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
.next { display: block; margin-top: var(--section); border-top: 1px solid var(--line); }
.next__inner { display: flex; flex-direction: column; gap: 12px; padding-block: var(--stack); }
.next__name b { display: inline-block; font-weight: 400; transition: transform .4s var(--ease); }
.next:hover .next__name b { transform: translateX(10px); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); }
.contact__intro { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 24px; }
.contact__intro .lead { color: var(--muted); }
.contact__list { margin-top: 16px; border-top: 1px solid var(--line); }
.contact__list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.contact__list dt { color: var(--muted); }
.contact__list a:hover { opacity: .6; }
.form { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 28px; }
.form legend { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; font-size: var(--fs-lead); border-radius: 0; resize: vertical; transition: border-color .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #A3A39E; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: 0.9375rem; }
.form__status.is-ok { color: #2F7A4F; }
.form__status.is-error { color: #B3261E; }

/* ---------- CTA + Footer ---------- */
.cta { background: var(--dark); color: #fff; padding-block: var(--section); }
.cta__inner { display: flex; flex-direction: column; gap: 24px; }
.cta .eyebrow { color: #8A8A85; }
.cta__title { font-size: var(--fs-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; }
.cta__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.cta__mail { border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.cta__mail:hover { border-color: #fff; }
.ft { background: var(--dark); color: #fff; padding-bottom: 24px; }
.ft .wrap { border-top: 1px solid rgba(255,255,255,.2); padding-top: 48px; }
.ft__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); font-size: 0.9375rem; }
.ft__about { grid-column: 1 / 5; color: #A3A39E; max-width: 34ch; }
.ft__grid > div { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.ft__grid > div:nth-of-type(1) { grid-column: 7 / 9; }
.ft__grid .eyebrow { color: #8A8A85; margin-bottom: 4px; }
.ft__grid a:hover { opacity: .6; }
.ft__logo { width: 100%; height: auto; margin-top: clamp(64px, 8vw, 120px); filter: invert(1); }
.ft__row { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: var(--fs-small); color: #8A8A85; }
.ft__row a:hover { color: #fff; }

/* ==========================================================
   COMPONENTES v3
   ========================================================== */

/* ---------- Tarjetas ---------- */
.grid-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--stack) var(--col-gap); }
.grid-work--6 { grid-template-columns: repeat(6, 1fr); }
.grid-work--6 .card--half { grid-column: span 3; }
.grid-work--6 .card--third { grid-column: span 2; }
.card { display: block; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--placeholder); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .5s var(--ease); }
.card { transition: transform .6s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card:hover .card__media img { filter: brightness(.94); }
.card__meta { display: flex; align-items: baseline; gap: 16px; padding-top: 16px; }
.card__name { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; position: relative; }
.card__name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.card:hover .card__name::after { transform: scaleX(1); transform-origin: left; }
.card__kind { margin-left: auto; font-size: 0.875rem; color: var(--muted); text-align: right; }

/* ---------- Tiras de imágenes ---------- */
.strip { overflow: hidden; padding-block: 8px; }
.strip__track { display: flex; gap: var(--col-gap); width: max-content; animation: strip 50s linear infinite; }
.strip--rev .strip__track { animation-direction: reverse; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip img { width: clamp(200px, 22vw, 320px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
@keyframes strip { to { transform: translateX(calc(-50% - var(--col-gap) / 2)); } }

/* ---------- CTA con marquesina ---------- */
.cta { position: relative; overflow: hidden; }
.cta__marquee { position: absolute; left: 0; right: 0; bottom: -0.18em; pointer-events: none; opacity: .06; }
.cta__track { display: flex; gap: .5em; width: max-content; font-size: clamp(6rem, 16vw, 15rem); font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; animation: strip 60s linear infinite; }
.cta__inner { position: relative; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 1rem; }

/* ---------- Siguiente proyecto ---------- */
.next__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.next__inner > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.next__thumb { width: clamp(160px, 22vw, 320px); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); }
.next__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.next:hover .next__thumb img { transform: scale(1.06); }
.hero__ctas--start { justify-self: start; margin-top: 32px; }
.facts dd span { display: block; }

/* ---------- Contacto oscuro ---------- */
.theme-dark { background: var(--dark); color: #fff; }
.theme-dark .hd.is-scrolled { background: rgba(17,17,17,.85); border-bottom-color: rgba(255,255,255,.12); }
.theme-dark .hd { color: #fff; }
.theme-dark .hd__logo img { filter: invert(1); }
.theme-dark .hd__cta { background: #fff; color: var(--ink); border-color: #fff; }
.theme-dark .hd__cta:hover { background: transparent; color: #fff; }
.theme-dark .hd__burger { border-color: rgba(255,255,255,.3); }
.theme-dark .hd__burger i { background: #fff; }
.theme-dark .lang a { color: #8A8A85; }
.theme-dark .lang a[aria-current], .theme-dark .lang a:hover { color: #fff; }
.theme-dark .lang span { color: rgba(255,255,255,.25); }
.theme-dark .eyebrow { color: #8A8A85; }
.theme-dark .contact__intro .lead, .theme-dark .contact__list dt { color: #A3A39E; }
.theme-dark .contact__list, .theme-dark .contact__list div { border-color: rgba(255,255,255,.15); }
.theme-dark .chip span { border-color: rgba(255,255,255,.25); }
.theme-dark .chip span:hover { border-color: #fff; }
.theme-dark .chip input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.theme-dark .field input, .theme-dark .field textarea { border-color: rgba(255,255,255,.25); color: #fff; }
.theme-dark .field input:focus, .theme-dark .field textarea:focus { border-color: #fff; }
.theme-dark .field input::placeholder, .theme-dark .field textarea::placeholder { color: #6E6E69; }
.theme-dark .form__status.is-ok { color: #7BD39A; }
.theme-dark .form__status.is-error { color: #FF8A80; }
.theme-dark .strip { padding-bottom: var(--section); }
.theme-dark .ft .wrap { border-top-color: rgba(255,255,255,.12); }

/* ---------- Cursor "Ver" ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 0.875rem; font-weight: 500; transform: scale(0); transition: transform .35s var(--ease);
}
.cursor.is-on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ==========================================================
   ANIMACIONES
   ========================================================== */
body { animation: pageIn .7s var(--ease) both; }
body.is-leaving { opacity: 0; transition: opacity .3s ease; }
@keyframes pageIn { from { opacity: 0; } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Texto palabra por palabra */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .wi { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.js [data-split].is-in .wi { transform: none; }
.js .menu [data-split] .wi { transform: none; }

/* Imágenes que se descubren */
.js .reveal-img { clip-path: inset(12% 0 0 0 round var(--radius)); opacity: 0; transition: clip-path 1.2s var(--ease), opacity .8s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; }
.js .reveal-img img, .js .reveal-img video { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.js .reveal-img.is-in img, .js .reveal-img.is-in video { transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .menu__foot { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .two > .eyebrow { grid-column: 1 / -1; }
  .two__body { grid-column: 1 / 11; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .clients { columns: 3; }
  .rv__slides, .rv__nav { grid-column: 1 / -1; }
  .contact__intro, .form { grid-column: 1 / -1; }
  .form { margin-top: var(--stack); }
  .founder__photo { grid-column: 1 / 6; }
  .founder__text { grid-column: 7 / 13; }
  .grid-work--6 .card--third { grid-column: span 3; }
}
@media (max-width: 860px) {
  .hd__nav { display: none; }
  .hd__inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 720px) {
  :root { --hd-h: 64px; }
  .lang { display: none; }
  .menu__lang .lang { display: flex; }
  .two__body { grid-column: 1 / -1; }
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero__lead, .hero__ctas { grid-column: auto; justify-self: start; }
  .grid-work, .grid-work--6 { grid-template-columns: 1fr; }
  .grid-work .card { grid-column: auto !important; }
  .card__meta { flex-direction: column; gap: 4px; }
  .card__kind { margin-left: 0; text-align: left; }
  .idx__head { display: none; }
  .idx__row { grid-template-columns: 1fr 24px; row-gap: 2px; }
  .idx__name { grid-column: 1; }
  .idx__kind { grid-column: 1; grid-row: 2; }
  .idx__arrow { grid-column: 2; grid-row: 1 / 3; }
  .clients { columns: 2; }
  .founder { grid-template-columns: 1fr; gap: var(--stack); }
  .founder__photo, .founder__text { grid-column: auto; }
  .founder__photo { max-width: 320px; }
  .gallery { grid-template-columns: 1fr; }
  .menu__foot { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .ft__about { grid-column: 1 / -1; }
  .ft__grid > div, .ft__grid > div:nth-of-type(1) { grid-column: auto; }
  .next__inner { flex-direction: column; align-items: flex-start; }
  .hd__cta { height: 36px; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .js [data-split] .wi { transform: none; }
}

/* Selector de idioma dentro del menú */
.menu__foot .lang { flex-direction: row; align-items: center; gap: 10px; margin: 0; font-size: 1rem; }

/* ==========================================================
   v4 — Servicios (home), servicios (studio), proceso, grilla Trabajo
   ========================================================== */
.statement { font-size: clamp(1.375rem, 2.3vw, 2.125rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }

/* Servicios Home — como smokstudio.com */
.sv { display: flex; flex-direction: column; align-items: center; }
.sv__lead { max-width: 900px; text-align: center; font-size: var(--fs-lead); color: var(--muted); }
.sv__lead strong { display: block; color: var(--ink); font-weight: 500; font-size: var(--fs-h2); letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 16px; }
.sv__collage { position: relative; width: 100%; max-width: 980px; margin-top: var(--stack); display: grid; grid-template-columns: 1.9fr 1fr; gap: var(--col-gap); align-items: start; }
.sv__collage figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.sv__collage img { width: 100%; height: auto; }
.sv__b { margin-top: 28%; }
.axis { width: 100%; max-width: 1000px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; margin-top: calc(var(--section) * .8); }
.axis__line { height: 1px; background: var(--line); overflow: hidden; }
.axis__line b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 1.2s var(--ease) .2s; }
.axis__line--r b { transform-origin: left; }
.axis.is-in .axis__line b { transform: scaleX(1); }
.axis__end { position: relative; display: flex; flex-direction: column; align-items: center; font-size: var(--fs-h3); }
.axis__end i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .5s var(--ease) 1.2s; }
.axis.is-in .axis__end i { transform: scale(1); }
.axis__end > span { position: absolute; top: 22px; white-space: nowrap; }
.axis__end:first-child > span { left: -20px; }
.axis__end--r > span { right: -14px; }
.axis__mark { width: clamp(90px, 13vw, 168px); margin: 0 clamp(16px, 3vw, 40px); opacity: 0; transform: scale(.85) rotate(-6deg); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.axis.is-in .axis__mark { opacity: 1; transform: none; }
.sv__bold { max-width: 920px; text-align: center; margin-top: calc(var(--section) * .7); font-size: var(--fs-h3); font-weight: 500; line-height: 1.45; }
.sv .center-cta { margin-top: 40px; }
.center-cta { display: flex; justify-content: center; margin-top: var(--stack); }

/* Servicios Studio — listen / shape */
.srv-list { border-top: 1px solid var(--ink); }
.srv { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: start; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); position: relative; }
.srv::before { content: ""; position: absolute; inset: 0; background: var(--tint); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.srv:hover::before { transform: scaleY(1); }
.srv__k { grid-column: 1 / 3; font-size: var(--fs-lead); color: var(--muted); font-style: italic; padding-top: .55em; transition: transform .6s var(--ease), color .3s; }
.srv__k--r { grid-column: 12 / 13; justify-self: end; }
.srv:hover .srv__k { color: var(--ink); transform: translateX(8px); }
.srv:hover .srv__k--r { transform: translateX(-8px); }
.srv__main { grid-column: 3 / 7; display: flex; flex-direction: column; gap: 6px; }
.srv__num { font-size: var(--fs-small); color: var(--muted); }
.srv__title { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.srv__body { grid-column: 7 / 12; display: flex; flex-direction: column; gap: 16px; padding-top: 1.6em; }
.srv__body p { color: var(--muted); max-width: 52ch; }

/* Proceso — eje con puntos (mismo lenguaje que entender — crear) */
.tl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); padding-top: 40px; }
.tl__line { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line); }
.tl__line b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.tl.is-in .tl__line b { transform: scaleX(1); }
.tl__step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-right: 12px; }
.tl__dot { position: absolute; top: -40px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .5s var(--ease); transition-delay: calc(.3s + var(--i) * .35s); }
.tl.is-in .tl__dot { transform: scale(1); }
.tl__num { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.tl__step p { color: var(--muted); font-size: 0.9375rem; max-width: 34ch; }
.tl__step > * { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.4s + var(--i) * .35s); }
.tl.is-in .tl__step > * { opacity: 1; transform: none; }
.tl__step > .tl__dot { opacity: 1; }

/* Trabajo — filtros + grilla escalonada */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--stack); }
.filter { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.filter sup { font-size: .7em; color: var(--muted); margin-left: 2px; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter[aria-pressed="true"] sup { color: #A3A39E; }
.grid-stagger { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(56px, 7vw, 112px); }
.grid-stagger .card:nth-child(even) { margin-top: clamp(80px, 12vw, 200px); margin-bottom: calc(clamp(80px, 12vw, 200px) * -1); }
.grid-stagger .card.is-hidden { display: none; }
.grid-stagger.is-filtered .card { margin-top: 0; margin-bottom: 0; }
.grid-stagger + * { margin-top: 0; }
.page-work .section--flush { padding-bottom: calc(var(--section) + 120px); }

@media (max-width: 1024px) {
  .srv__k { grid-column: 1 / 3; }
  .srv__main { grid-column: 3 / 8; }
  .srv__body { grid-column: 3 / 12; padding-top: 0; }
  .srv__k--r { display: none; }
  .tl { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .tl__line { display: none; }
  .tl__dot { top: -20px; }
}
@media (max-width: 720px) {
  .sv__lead, .sv__bold { text-align: left; }
  .sv { align-items: stretch; }
  .sv__collage { grid-template-columns: 1fr 0.6fr; }
  .axis__end > span { font-size: 1rem; }
  .axis__end:first-child > span { left: -6px; }
  .axis__end--r > span { right: -4px; }
  .srv { grid-template-columns: 1fr; gap: 12px; }
  .srv__k, .srv__main, .srv__body { grid-column: auto; padding: 0; }
  .tl { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; }
  .tl::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .tl__dot { top: 6px; left: -28px; }
  .grid-stagger { grid-template-columns: 1fr; }
  .grid-stagger .card:nth-child(even) { margin: 0; }
  .page-work .section--flush { padding-bottom: var(--section); }
}

/* ==========================================================
   v5
   ========================================================== */
/* Encabezado de sección: etiqueta + link arriba, título debajo */
.sh { margin-bottom: var(--stack); padding-top: 20px; border-top: 1px solid var(--line); }
.section--dark .sh { border-top-color: rgba(255,255,255,.2); }
.sh__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(20px, 2.5vw, 32px); }
.sh__title { max-width: 22ch; }

/* Estudio: texto sobre el estudio */
.two__body .statement { color: var(--ink); }
.two__body p.reveal:not(.statement) { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 56ch; }

/* Correo del CTA sin subrayado */
.cta__mail--plain { border-bottom: 0; padding-bottom: 0; transition: opacity .2s; }
.cta__mail--plain:hover { opacity: .6; }

/* Trabajo: filas alternadas contenido / imagen */
.feats { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 144px); }
.feat { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: center; }
.feat__body { grid-column: 1 / 5; grid-row: 1; display: flex; flex-direction: column; gap: 16px; }
.feat__media { grid-column: 6 / 13; grid-row: 1; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--placeholder); }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s var(--ease); }
.feat__media:hover img { filter: brightness(.94); }
.feat--rev .feat__body { grid-column: 9 / 13; }
.feat--rev .feat__media { grid-column: 1 / 8; }
.feat__title { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.feat__text { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.feat__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.feat__meta dt { font-size: var(--fs-small); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.feat__meta dd { font-size: 0.9375rem; }
.feat__btn { align-self: flex-start; margin-top: 8px; }

/* Estudio: servicios con el mismo lenguaje del Inicio */
.axis--tight { margin-top: var(--stack); }
.svx-list { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); margin-top: calc(var(--section) * .7); }
.svx { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 10px; background: var(--tint); transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.svx:hover { background: var(--ink); color: #fff; transform: translateY(-4px); }
.svx:hover .svx__k, .svx:hover .svx__text { color: #B5B5B0; }
.svx:hover .tags li { border-color: rgba(255,255,255,.25); color: #D5D5D0; }
.svx__k { font-size: 0.9375rem; font-style: italic; color: var(--muted); }
.svx__title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.svx__text { color: var(--muted); font-size: 0.9375rem; flex: 1; }
.js .svx.reveal { transition-delay: calc(var(--i) * .1s); }

/* Carrusel después de testimonios */
.strip-sec { padding-block: var(--section) 0; }

/* Proyecto: link simple + relacionados */
.next-link { padding-top: var(--stack); display: flex; justify-content: flex-end; }
.grid-work--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .svx-list { grid-template-columns: 1fr; }
  .feat__body, .feat--rev .feat__body { grid-column: 1 / 6; }
  .feat__media { grid-column: 6 / 13; }
  .feat--rev .feat__body { grid-column: 8 / 13; }
  .feat--rev .feat__media { grid-column: 1 / 8; }
  .grid-work--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sh__top { flex-direction: column; gap: 8px; }
  .feat { grid-template-columns: 1fr; gap: 20px; }
  .feat__body, .feat--rev .feat__body, .feat__media, .feat--rev .feat__media { grid-column: auto; grid-row: auto; }
  .grid-work--3 { grid-template-columns: 1fr; }
  .next-link { justify-content: flex-start; }
}
.two__body p.statement { color: var(--ink); }
.rv__slides, .rv__nav { grid-column: 1 / 11; }
@media (max-width: 1024px) { .rv__slides, .rv__nav { grid-column: 1 / -1; } }

/* ==========================================================
   v6
   ========================================================== */
/* Encabezado centrado (servicios) */
.sh--center { text-align: center; }
.sh--center .sh__top { justify-content: center; }
.sh--center .sh__title { margin-inline: auto; }

/* Texto del proyecto en oscuro */
.two__body p.lead.reveal { color: var(--ink); }

/* Carrusel dentro de testimonios (fondo oscuro, se funde con CTA y footer) */
.rv-strip { margin-top: var(--section); }
.section--dark .strip img { background: #222; }
.section--dark + .section, .section--dark + .cta { }

/* Colaboraciones con miniatura */
.idx__head--thumb, .idx__row--thumb { grid-template-columns: 120px 4fr 4fr 3fr 40px; }
.idx__thumb { display: block; width: 120px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--placeholder); }
.idx__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.idx__row--thumb:hover .idx__thumb img { transform: scale(1.06); }
.idx__row--thumb { padding-block: 14px; }
@media (max-width: 720px) {
  .idx__row--thumb { grid-template-columns: 96px 1fr 24px; column-gap: 14px; }
  .idx__row--thumb .idx__thumb { width: 96px; grid-row: 1 / 3; }
  .idx__row--thumb .idx__name { grid-column: 2; }
  .idx__row--thumb .idx__kind { grid-column: 2; grid-row: 2; }
  .idx__row--thumb .idx__arrow { grid-column: 3; grid-row: 1 / 3; }
}
.section--dark:has(.rv-strip) { padding-bottom: 0; }
.rv-strip { padding-bottom: var(--stack); }

/* Trabajo: grilla 2x2 (imagen arriba, texto abajo) */
.feats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(56px, 7vw, 96px) var(--col-gap); margin-top: clamp(72px, 9vw, 144px); }
.feat--stack { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.feat--stack .feat__media { width: 100%; }
.feat--stack .feat__body { gap: 14px; }
.feat--stack .feat__text { -webkit-line-clamp: 3; }
@media (max-width: 720px) { .feats-grid { grid-template-columns: 1fr; } }
.idx__head-first { grid-column: 1 / 3; }
.feats-grid.grid-work { gap: var(--stack) var(--col-gap); }

/* Galería vertical (4:5) en 2 columnas; videos a todo el ancho */
.gallery--portrait > *:nth-child(3n + 1) { grid-column: auto; }
.gallery--portrait > figure:has(video) { grid-column: 1 / -1; }
.gallery figure { margin: 0; }
.gallery img { height: auto; }
/* Revelado más rápido en las galerías de proyecto */
.page-project .js .reveal-img, .js .page-project .reveal-img { transition-duration: .8s, .5s; }
.reel--cover .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
@media (max-width: 720px) { .gallery--portrait { grid-template-columns: 1fr; } }
.gallery + .gallery { margin-top: var(--col-gap); }
.gallery--portrait > figure:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - var(--col-gap) / 2); justify-self: center; }
@media (max-width: 720px) { .gallery--portrait > figure:last-child:nth-child(odd) { width: 100%; } }
.gallery img { aspect-ratio: auto 16 / 10; }
.gallery--portrait img { aspect-ratio: auto 4 / 5; }
.gallery--mix > *:nth-child(3n + 1) { grid-column: auto; }
.gallery--mix > .g-full { grid-column: 1 / -1; }
.gallery--mix > .g-center { grid-column: 1 / -1; width: calc(50% - var(--col-gap) / 2); justify-self: center; }
@media (max-width: 720px) { .gallery--mix > .g-center { width: 100%; } }
