/* =============================================================
   MARKETEROSTS — Sistema de diseño "Editorial claro"
   Base blanca, tinta negra real, púrpura de marca como color sólido.
   Cero degradados difuminados. Cero halos. Contraste medido.

   1. Tokens  2. Reset  3. Tipografía  4. Layout + temas
   5. Textura  6. Motion  7. Componentes  8. Secciones
   ============================================================= */

/* ---------- 1. TOKENS ------------------------------------- */
:root {
  /* superficies */
  --paper:   #FFFFFF;   /* blanco limpio */
  --paper-2: #F1F1F4;   /* gris mínimo: separa secciones sin ensuciar el blanco */
  --ink:     #120C18;   /* ciruela casi negra — más caro que el gris */
  --ink-2:   #1B1224;

  /* marca — muestreado del logo oficial */
  --violet:      #9900CC;
  --violet-deep: #6A008E;
  --violet-soft: #EEDCF6;

  /* semánticos: cada bloque los reescribe */
  --bg:        var(--paper);
  --fg:        var(--ink);
  --fg-2:      #45414C;          /* 9.6:1 sobre blanco */
  --fg-3:      #5F5967;          /* 6.6:1 sobre blanco */
  --accent:    var(--violet);
  --rule:      rgba(18, 12, 24, .13);
  --rule-hard: rgba(18, 12, 24, .26);

  /* medidas */
  --gutter: clamp(20px, 4.2vw, 72px);
  --maxw: 1580px;
  --nav-h: 78px;

  /* tipografía */
  --f-display: "Zodiak", "Iowan Old Style", Georgia, serif;
  --f-body: "Switzer", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* easings propios */
  --e-out:   cubic-bezier(.16, 1, .3, 1);
  --e-brand: cubic-bezier(.19, 1, .22, 1);
}

/* bloques oscuros */
.t-ink {
  --bg: var(--ink);
  --fg: #F4F4F6;
  --fg-2: #BEB8C6;    /* 9:1 sobre tinta */
  --fg-3: #948D9E;    /* 5.4:1 sobre tinta */
  --accent: #D07BF5;
  --rule: rgba(244, 244, 246, .18);
  --rule-hard: rgba(244, 244, 246, .36);
}
/* bloque de color sólido */
.t-violet {
  --bg: var(--violet);
  --fg: #FFFFFF;
  --fg-2: rgba(255, 255, 255, .92);
  --fg-3: rgba(255, 255, 255, .84);
  --accent: #FFFFFF;
  --rule: rgba(255, 255, 255, .3);
  --rule-hard: rgba(255, 255, 255, .55);
}
.t-alt { --bg: var(--paper-2); }

/* ---------- 2. RESET -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: var(--f-body);
  font-size: clamp(16px, .42vw + 15px, 18px);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
::selection { background: var(--violet); color: #fff; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #EFEFF2; }
::-webkit-scrollbar-thumb { background: #C7C5CC; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ---------- 3. TIPOGRAFÍA --------------------------------- */
/* Serif editorial para titulares. Caja baja, no gritos en mayúsculas. */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.022em;
}
.d-xl { font-size: clamp(2.35rem, 7.2vw, 7.4rem); }
.d-lg { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.d-md { font-size: clamp(1.9rem, 3.5vw, 3.2rem); }
.d-sm { font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.1; }

.em { font-style: italic; font-weight: 400; color: var(--accent); }
.em-ink { font-style: italic; font-weight: 400; }

.kicker {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.5;
}
.lead { font-size: clamp(1.1rem, .6vw + 1rem, 1.42rem); line-height: 1.5; color: var(--fg-2); }
.body-2 { color: var(--fg-2); }
.muted { color: var(--fg-3); }

.idx { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--accent); }

/* ---------- 4. LAYOUT + TEMAS ------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.sect {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(76px, 9vw, 150px);
}
.sect--tight { padding-block: clamp(58px, 6.5vw, 104px); }
.rule { height: 1px; background: var(--rule); border: 0; }

.sect-head { display: grid; gap: 20px; margin-bottom: clamp(38px, 4.6vw, 72px); }
@media (min-width: 900px) {
  .sect-head { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; align-items: start; }
}
.sect-head__label { display: flex; align-items: center; gap: 12px; padding-top: 12px; }

/* ---------- 5. TEXTURA ------------------------------------ */
/* grano de papel: sutil, en multiply, para que no parezca pantalla */
.grain {
  /* Sobre crema el grano daba textura de papel; sobre blanco solo
     ensucia y lo abarata. Se queda fuera: el blanco tiene que ser limpio. */
  display: none;
  position: fixed; inset: 0;
  z-index: 9998; pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 6. MOTION PRIMITIVES -------------------------- */
.rv { display: block; overflow: hidden; padding-bottom: .06em; }
.rv > * { display: block; }
.has-js .rv > * { transform: translate3d(0, 105%, 0); }

.has-js [data-fade] { opacity: 0; transform: translate3d(0, 22px, 0); }
.has-js [data-clip] { clip-path: inset(0 0 100% 0); }
.has-js [data-scale] { transform: scale(1.1); }

/* ---------- 7. COMPONENTES -------------------------------- */

/* --- botones --- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 13px;
  padding: 16px 26px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--ink);
  color: var(--paper); background: var(--ink);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--e-out), border-color .45s var(--e-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--violet);
  transform: translate3d(0, 101%, 0);
  transition: transform .55s var(--e-brand);
}
.btn:hover { border-color: var(--violet); color: #fff; }
.btn:hover::before { transform: translate3d(0, 0, 0); }
.btn__arrow { transition: transform .45s var(--e-brand); flex: none; }
.btn:hover .btn__arrow { transform: translate3d(4px, -4px, 0); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--rule-hard); }
.btn--ghost:hover { color: #fff; border-color: var(--violet); }
.btn--lg { padding: 22px 38px; font-size: 12.5px; }

/* en bloques oscuros el botón se invierte */
.t-ink .btn, .t-violet .btn { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.t-ink .btn--ghost { background: transparent; color: var(--fg); border-color: var(--rule-hard); }
.t-violet .btn::before { background: var(--ink); }
.t-violet .btn:hover { border-color: var(--ink); color: #fff; }

/* --- enlace subrayado --- */
.ulink { position: relative; display: inline-block; }
.ulink::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--e-brand);
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }

/* --- cursor --- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
.cursor { width: 7px; height: 7px; background: var(--violet); border-radius: 50%; margin: -3.5px 0 0 -3.5px; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid var(--violet); border-radius: 50%; opacity: .45;
  transition: width .35s var(--e-out), height .35s var(--e-out), margin .35s var(--e-out), opacity .3s;
}
.cursor-ring.is-active { width: 62px; height: 62px; margin: -31px 0 0 -31px; opacity: .9; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none !important; } }

/* --- preloader --- */
#preloader { position: fixed; inset: 0; z-index: 10000; background: var(--paper); display: grid; place-items: center; }
html:not(.has-js) #preloader { display: none; }
.pl-mark { width: clamp(58px, 8vw, 92px); }
.pl-count {
  position: absolute; right: var(--gutter); bottom: clamp(22px, 4vw, 44px);
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .8; color: var(--ink); letter-spacing: -.04em;
}
.pl-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--violet); }
.pl-word { position: absolute; left: var(--gutter); bottom: clamp(26px, 4vw, 48px); }

/* --- navbar --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--e-out), border-color .4s, height .4s var(--e-out);
}
.nav.is-stuck {
  height: 64px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--rule);
}
.nav__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; transition: transform .55s var(--e-brand); }
.brand:hover .brand__mark { transform: rotate(-7deg); }
.brand__type { font-family: var(--f-body); font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
.brand__type i { font-style: normal; color: var(--violet); }

.nav__menu { display: none; gap: clamp(18px, 2.2vw, 36px); align-items: center; }
@media (min-width: 1000px) { .nav__menu { display: flex; } }
.nav__link {
  position: relative; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .08em; color: var(--fg-2); padding-block: 5px;
  transition: color .3s var(--e-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--violet); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--e-brand);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { display: none; }
@media (min-width: 1000px) { .nav__cta { display: inline-flex; padding: 12px 20px; } }

.burger { display: inline-flex; flex-direction: column; gap: 6px; padding: 12px; margin-right: -12px; }
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .4s var(--e-brand), opacity .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--paper);
  padding: calc(var(--nav-h) + 26px) var(--gutter) 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--e-brand);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.menu__item { overflow: hidden; }
.menu__item a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.1rem, 10vw, 3.4rem); line-height: 1.15; letter-spacing: -.025em;
  transform: translateY(105%);
  transition: transform .65s var(--e-brand), color .3s;
}
.menu.is-open .menu__item a { transform: translateY(0); }
.menu__item:nth-child(2) a { transition-delay: .05s; }
.menu__item:nth-child(3) a { transition-delay: .1s; }
.menu__item:nth-child(4) a { transition-delay: .15s; }
.menu__item:nth-child(5) a { transition-delay: .2s; }
.menu__item a:hover { color: var(--violet); }
.menu__item span { font-family: var(--f-mono); font-size: 11px; color: var(--violet); }

/* ---------- 8. HERO --------------------------------------- */
.hero { background: var(--bg); color: var(--fg); padding-top: calc(var(--nav-h) + clamp(26px, 5vh, 62px)); }
.hero__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.hero__type { margin-block: clamp(30px, 5vh, 62px) 0; }
/* en desktop los saltos del titular son decisión de diseño;
   en móvil dejamos que el navegador ajuste o se sale del encuadre */
@media (min-width: 760px) { .hero__type h1 > .rv { white-space: nowrap; } }
@media (max-width: 759px) { .hero__type h1 > .rv { overflow: visible; } }
/* la regla púrpura que corta la línea: bloque sólido, no degradado */
.hero__row { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.hero__dash { flex: 1 1 auto; min-width: 40px; height: clamp(4px, .5vw, 7px); background: var(--accent); }

.hero__bottom {
  margin-top: clamp(34px, 5vh, 64px);
  display: grid; gap: 26px;
  border-top: 1px solid var(--rule); padding-top: 24px;
}
.hero__note { max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (min-width: 860px) {
  .hero__bottom { grid-template-columns: minmax(300px, 44%) minmax(0, 1fr); gap: 24px 40px; }
  .hero__note { grid-area: 1 / 1; }
  .hero__actions { grid-area: 1 / 2; justify-self: end; align-self: end; }
  .hero__meta {
    grid-area: 2 / 1 / 3 / -1; flex-direction: row; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--rule); padding-top: 16px;
  }
}
.hero__slots { display: flex; align-items: center; gap: 9px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #1E9E5A; animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 158, 90, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(30, 158, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0); }
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue__line { display: block; width: 46px; height: 1.5px; background: var(--rule-hard); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--violet);
  animation: cueRun 2.1s var(--e-brand) infinite;
}
@keyframes cueRun { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* banda de imagen a sangre — el ancla real del hero */
.hero__band { margin-top: clamp(34px, 5vw, 70px); position: relative; overflow: hidden; }
.hero__band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 700px) { .hero__band img { aspect-ratio: 4 / 3; } }
.hero__band figcaption {
  position: absolute; left: var(--gutter); bottom: 16px;
  background: var(--bg); color: var(--fg); padding: 8px 13px;
}

/* ---------- TICKER ---------------------------------------- */
.ticker {
  background: var(--bg); color: var(--fg);
  border-block: 1px solid var(--rule);
  padding-block: clamp(13px, 1.4vw, 19px);
  overflow: hidden;
}
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translate3d(-50%, 0, 0); } }
.ticker__item {
  display: inline-flex; align-items: center; gap: clamp(18px, 2.6vw, 40px);
  padding-right: clamp(18px, 2.6vw, 40px);
  font-family: var(--f-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em;
  white-space: nowrap;
}
.ticker__item i { font-style: normal; color: var(--accent); font-size: .5em; }

/* ---------- 9. HISTORIA ----------------------------------- */
.about__statement { max-width: 15ch; margin-bottom: clamp(38px, 4.4vw, 70px); }
.about__body { display: grid; gap: clamp(34px, 4vw, 62px); }
@media (min-width: 1000px) { .about__body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.about__figure { position: relative; }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__cap { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.about__cap::before { content: ""; width: 30px; height: 1.5px; background: var(--violet); flex: none; }

/* sello: bloque sólido girado, sin blur ni cristal */
.stamp {
  position: absolute; z-index: 3; right: -10px; top: -18px;
  transform: rotate(-6deg);
  padding: 10px 15px; background: var(--violet); color: #fff;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}
.about__text > p + p { margin-top: 1.1em; }
.about__mini {
  margin-top: clamp(28px, 3.2vw, 48px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid var(--rule); padding-top: 22px;
}
.about__mini b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.7rem); letter-spacing: -.02em; margin-bottom: 5px; }

/* ---------- 10. SERVICIOS --------------------------------- */
.svc__list { position: relative; border-bottom: 1px solid var(--rule-hard); }
.svc-row {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; gap: 8px 16px; align-items: baseline;
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left .5s var(--e-brand);
}
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 58px minmax(0, .95fr) minmax(0, 1fr) 24px; gap: 26px; align-items: center; }
  .svc-row:hover { padding-left: 16px; }
}
.svc-row::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1.5px; width: 100%;
  background: var(--violet); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--e-brand);
}
.svc-row:hover::after, .svc-row.is-open::after { transform: scaleX(1); }
.svc-row__idx { font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); transition: color .35s; }
.svc-row:hover .svc-row__idx { color: var(--violet); }
.svc-row__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.06; letter-spacing: -.022em;
  transition: color .4s var(--e-out);
}
.svc-row:hover .svc-row__title { color: var(--violet); }
.svc-row__desc { grid-column: 2 / -1; color: var(--fg-2); font-size: 1.02rem; max-width: 50ch; }
@media (min-width: 900px) { .svc-row__desc { grid-column: auto; } }
.svc-row__go { display: none; }
@media (min-width: 900px) {
  .svc-row__go { display: block; opacity: 0; transform: translate(-8px, 8px); transition: opacity .35s, transform .5s var(--e-brand); color: var(--violet); }
  .svc-row:hover .svc-row__go { opacity: 1; transform: none; }
}
.svc-preview {
  position: absolute; top: 0; left: 0; z-index: 5;
  width: clamp(180px, 15vw, 240px); aspect-ratio: 3 / 4;
  background-size: cover; background-position: center; background-color: var(--paper-2);
  opacity: 0; transform: scale(.85); pointer-events: none;
  box-shadow: 0 26px 55px -22px rgba(18, 12, 24, .5);
}
@media (max-width: 899px) { .svc-preview { display: none; } }

/* ---------- 11. PROCESO ----------------------------------- */
.process__track { position: relative; padding-left: clamp(24px, 3.4vw, 56px); }
.process__line { position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--violet); transform-origin: top center; }
.step {
  position: relative; display: grid; gap: 10px 30px;
  padding-block: clamp(24px, 3.2vw, 46px);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) { .step { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.step:last-child { border-bottom: 0; }
.step::before {
  content: ""; position: absolute;
  left: calc(clamp(24px, 3.4vw, 56px) * -1); top: calc(clamp(24px, 3.2vw, 46px) + 12px);
  width: 10px; height: 10px; background: var(--violet); transform: translateX(-4px);
}
.step__n {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: .9; letter-spacing: -.04em;
  color: var(--violet);
}
.step__t { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; }
.step__d { color: var(--fg-2); }

/* ---------- 12. PORTAFOLIO -------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 3vw, 42px); }
.filters button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 16px; border: 1.5px solid var(--rule-hard); color: var(--fg-2);
  transition: color .3s, border-color .3s, background-color .3s;
}
.filters button:hover { color: var(--fg); border-color: var(--fg); }
.filters button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.8vw, 30px); }
.work { grid-column: span 12; }
@media (min-width: 760px) { .work { grid-column: span 6; } .work--wide { grid-column: span 12; } }
@media (min-width: 1100px) {
  .work--wide  { grid-column: span 7; }
  .work--tall  { grid-column: span 5; }
  .work--third { grid-column: span 4; }
}
.work.is-hidden { display: none; }
.work__media { position: relative; overflow: hidden; background: var(--ink-2); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-brand); }
.work:hover .work__media img { transform: scale(1.045); }
.ar-4x3 { aspect-ratio: 4 / 3; }
.ar-3x4 { aspect-ratio: 3 / 4; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.work__go {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--violet); color: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--e-out), transform .55s var(--e-brand);
}
.work:hover .work__go { opacity: 1; transform: none; }
.work__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.work__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 1.3vw, 1.3rem); letter-spacing: -.02em; transition: color .3s; }
.work:hover .work__name { color: var(--accent); }
.work__tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); text-align: right; flex: none; }
.work--card .work__media { display: grid; place-items: center; border: 1.5px solid var(--rule-hard); background: transparent; }

/* ---------- 13. MÉTRICAS (bloque de color) ---------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(26px, 3vw, 44px) clamp(16px, 2vw, 34px) clamp(26px, 3vw, 44px) 0; border-top: 1.5px solid var(--rule); }
.stat__n {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .9; letter-spacing: -.04em;
}
.stat__n sup { font-size: .36em; vertical-align: super; opacity: .8; }
.stat__l { margin-top: 12px; }

/* ---------- 14. CTA FINAL --------------------------------- */
.cta__title { max-width: 16ch; }
.cta__row { margin-top: clamp(30px, 3.6vw, 48px); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 15. CONTACTO ---------------------------------- */
.contact { display: grid; gap: clamp(36px, 4.6vw, 70px); }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.contact__direct { display: grid; gap: 20px; margin-top: clamp(26px, 3vw, 38px); }
.dcard { border-top: 1px solid var(--rule); padding-top: 14px; }
.dcard b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; margin-top: 3px; }

.form { display: grid; gap: clamp(18px, 2vw, 24px); }
.form__row { display: grid; gap: inherit; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid rgba(18, 12, 24, .22); background: var(--paper);
  color: var(--ink); font-size: 1rem; border-radius: 0;
  transition: border-color .35s var(--e-out);
}
.field textarea { resize: vertical; min-height: 124px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); }
.field input::placeholder, .field textarea::placeholder { color: #8B8792; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

[data-form-status] { font-family: var(--f-mono); font-size: 12px; min-height: 1.2em; }
[data-form-status][data-state="ok"]  { color: #12703F; }
[data-form-status][data-state="err"] { color: #B3261E; }

/* ---------- 16. FOOTER ------------------------------------ */
.footer { background: var(--bg); color: var(--fg); padding-top: clamp(48px, 5.5vw, 86px); padding-bottom: 28px; }
.footer__grid { display: grid; gap: clamp(32px, 3.6vw, 56px); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 2fr) 1fr 1fr minmax(0, 1.2fr); } }
.footer__lockup { width: clamp(130px, 13vw, 180px); }
.footer__col h4 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 15px; font-weight: 400; }
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__col a { color: var(--fg-2); transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(38px, 4.4vw, 64px); padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center;
}
.footer__wm {
  font-family: var(--f-display); font-weight: 700; font-style: italic;
  font-size: clamp(2.6rem, 13vw, 12rem); line-height: .9; letter-spacing: -.045em;
  color: var(--fg); opacity: .1;
  margin-top: clamp(26px, 3.4vw, 52px);
  user-select: none; pointer-events: none; white-space: nowrap;
}

/* =============================================================
   PUNTO MEDIO — el hero vuelve a ser un bloque oscuro.
   El drama vive arriba; el cuerpo de lectura se queda en papel.
   ============================================================= */

/* --- la nav nace sobre el hero oscuro y se invierte al pegarse --- */
.brand__marks { position: relative; width: 36px; height: 29px; flex: none; }
.brand__mark {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity .35s var(--e-out), transform .55s var(--e-brand);
}
.brand:hover .brand__mark { transform: rotate(-7deg); }

.nav { color: #F4F4F6; }
.nav .nav__link { color: rgba(244, 244, 246, .74); }
.nav .nav__link:hover, .nav .nav__link.is-active { color: #F4F4F6; }
.nav .nav__link::after { background: #D07BF5; }
.nav .brand__type i { color: #C13BFF; }
.nav .burger span { background: #F4F4F6; }
.nav .btn { border-color: #F4F4F6; background: #F4F4F6; color: var(--ink); }
.nav .brand__mark--dark { opacity: 0; }

.nav.is-stuck { color: var(--ink); }
.nav.is-stuck .nav__link { color: #4A4550; }
.nav.is-stuck .nav__link:hover, .nav.is-stuck .nav__link.is-active { color: var(--ink); }
.nav.is-stuck .nav__link::after { background: var(--violet); }
.nav.is-stuck .brand__type i { color: var(--violet); }
.nav.is-stuck .burger span { background: var(--ink); }
.nav.is-stuck .btn { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.nav.is-stuck .brand__mark--light { opacity: 0; }
.nav.is-stuck .brand__mark--dark { opacity: 1; }

/* con el menú móvil abierto (fondo papel) la nav se pone en tinta */
.nav.is-open-menu { color: var(--ink); }
.nav.is-open-menu .burger span { background: var(--ink); }
.nav.is-open-menu .brand__type i { color: var(--violet); }
.nav.is-open-menu .brand__mark--light { opacity: 0; }
.nav.is-open-menu .brand__mark--dark { opacity: 1; }

/* --- retícula de hairlines: solo en el hero, el detalle de estudio --- */
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero__grid span { border-right: 1px solid rgba(244, 244, 246, .07); }
.hero__grid span:first-child { border-left: 1px solid rgba(244, 244, 246, .07); }
@media (max-width: 760px) { .hero__grid { grid-template-columns: repeat(2, 1fr); } }
.hero > .wrap, .hero__band { position: relative; z-index: 1; }

/* el hero respira más: es el único bloque que puede permitírselo */
.hero { padding-bottom: 0; }
.hero .d-xl { font-size: clamp(2.4rem, 7.6vw, 8.2rem); }

/* --- filete de color bajo la etiqueta de sección --- */
.sect-head__label::after {
  content: ""; flex: 1; height: 1.5px; background: var(--accent); opacity: .5; max-width: 46px;
}

/* --- keyline en las imágenes: el borde fino que delata cuidado --- */
.about__figure > div, .work__media, .hero__band { position: relative; }
.about__figure > div::after, .work__media::after, .hero__band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(18, 12, 24, .09);
}
.t-ink .work__media::after, .hero__band::after { box-shadow: inset 0 0 0 1px rgba(244, 244, 246, .14); }
