/* ==========================================================================
   Jábega Producciones — estilos
   Tipografías: Archivo (expandida, black) ≈ logotipo · Outfit ≈ "PRODUCCIONES"
   ========================================================================== */

:root {
  --ink: #0b0b0a;
  --ink-2: #161614;
  --paper: #efece6;
  --paper-2: #e4e0d8;
  --grey: #8b8882;

  --bg: var(--ink);
  --fg: var(--paper);
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  --muted: color-mix(in srgb, var(--fg) 58%, transparent);

  --f-display: "Archivo", "Arial Black", sans-serif;
  --f-sans: "Outfit", system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 44px);
  --radius: 4px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --fs-xs: 0.75rem;
  --fs-s: 0.9375rem;
  --fs-m: clamp(1.0625rem, 0.9rem + 0.4vw, 1.3rem);
  --fs-l: clamp(1.5rem, 1rem + 1.6vw, 2.6rem);
  --fs-xl: clamp(2.4rem, 1rem + 5.4vw, 6.8rem);
  --fs-xxl: clamp(3.2rem, 0.6rem + 10vw, 13rem);
}

.theme-light { --bg: var(--paper); --fg: var(--ink); }
.theme-dark  { --bg: var(--ink);   --fg: var(--paper); }
.theme-light, .theme-dark {
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  --muted: color-mix(in srgb, var(--fg) 58%, transparent);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: var(--fs-m);
  font-weight: 350;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
::selection { background: var(--paper); color: var(--ink); }
.theme-light ::selection { background: var(--ink); color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--paper); color: var(--ink); padding: 8px 14px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: none;
}
.h-xxl { font-size: var(--fs-xxl); }
.h-xl  { font-size: var(--fs-xl); }
.h-l   { font-size: var(--fs-l); line-height: 1.02; letter-spacing: -0.025em; }
.label {
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.lead { font-size: var(--fs-l); font-weight: 300; line-height: 1.18; letter-spacing: -0.015em; }
.muted { color: var(--muted); }
.statement {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.9rem, 0.9rem + 3.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.statement .soft { color: var(--muted); }

/* Líneas para reveal (el JS anima el span interior) */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; will-change: transform; }

/* ---------- Layout ---------- */
.section { position: relative; background: var(--bg); color: var(--fg); padding: clamp(96px, 14vw, 200px) var(--gutter); }
.section--tight { padding-block: clamp(72px, 9vw, 130px); }
.wrap { max-width: 1680px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-bottom: 18px; margin-bottom: clamp(40px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}

/* ---------- Botones / enlaces ---------- */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  border: 1px solid currentColor; overflow: hidden; isolation: isolate;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--fg);
  border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--fg); }

.link-line { position: relative; display: inline-block; }
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.link-line:hover::after, .link-line[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Grano ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Cabecera ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo svg { width: 46px; height: auto; }
.nav__logo svg.nav__word { width: auto; height: 22px; }
.nav__logo span { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 1.15rem; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.menu-btn { display: none; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; height: 44px; }
.menu-btn i { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn span.bars { display: grid; gap: 6px; }
.is-menu-open .menu-btn .bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
.is-menu-open .menu-btn .bars i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.is-menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu ul { list-style: none; }
.menu li { overflow: hidden; border-bottom: 1px solid rgba(239, 236, 230, .14); }
.menu li a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(1.9rem, 8.6vw, 4.4rem); letter-spacing: -0.035em; line-height: 1;
  transform: translateY(100%); transition: transform .8s var(--ease-out);
}
.menu li a small { font-family: var(--f-sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .2em; color: var(--grey); }
.is-menu-open .menu li a { transform: none; }
.is-menu-open .menu li:nth-child(2) a { transition-delay: .05s; }
.is-menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
.is-menu-open .menu li:nth-child(4) a { transition-delay: .15s; }
.is-menu-open .menu li:nth-child(5) a { transition-delay: .2s; }
.is-menu-open .menu li:nth-child(6) a { transition-delay: .25s; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-s); color: var(--grey); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot {
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out);
}
.cursor.is-link .cursor__dot { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label .cursor__dot { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor__label { color: #000; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- Loader y transición ---------- */
.loader {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
.loader__eye { width: min(34vw, 260px); clip-path: inset(50% 0 50% 0); }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; display: flex; justify-content: space-between; color: var(--grey); }
.loader__count { font-variant-numeric: tabular-nums; }
html:not(.js-loading) .loader { display: none; }

.curtain {
  position: fixed; inset: 0; z-index: 85; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(100%);
}
.curtain svg { width: min(22vw, 150px); opacity: 0; }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 28px; overflow: hidden;
}
/* Agua dentro de las letras (se activa desde JS) */
.hero__word { position: relative; }
.hero__fill {
  position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none;
  -webkit-mask: url(../img/wordmark.svg) center / 100% 100% no-repeat;
          mask: url(../img/wordmark.svg) center / 100% 100% no-repeat;
}
.hero__word.is-water .hero__fill { display: block; }
.hero__top { display: flex; justify-content: flex-end; align-items: flex-start; gap: 24px; }
.hero__tc { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #e0412f; animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0; } }
.hero__logo { width: min(100%, calc((100svh - 270px) * 1.62)); margin-inline: auto; display: grid; justify-items: center; gap: clamp(14px, 2.2vw, 34px); }
.hero__eye { width: 48.3%; will-change: transform; }
.hero__eye svg { width: 100%; height: auto; }
.hero__word { width: 100%; }
.hero__word svg, .hero__prod svg { width: 100%; height: auto; }
.hero__prod { width: 100%; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; }
.hero__bottom p { max-width: 34ch; font-size: var(--fs-s); color: var(--grey); }
.scroll-cue { display: flex; align-items: center; gap: 12px; color: var(--grey); }
.scroll-cue i { position: relative; display: block; width: 1px; height: 38px; background: rgba(239,236,230,.2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Cabecera de página interior ---------- */
.page-hero {
  position: relative; min-height: 78svh; background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--gutter) clamp(40px, 5vw, 72px); overflow: hidden;
}
.page-hero__meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(3rem, 0.2rem + 11.5vw, 15rem); }
.page-hero__foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: clamp(28px, 4vw, 60px); padding-top: 22px; border-top: 1px solid var(--line);
}
.page-hero__foot p { grid-column: 7 / -1; }
.page-hero__eye { position: absolute; right: var(--gutter); top: 120px; width: clamp(80px, 12vw, 180px); opacity: .9; }

/* ---------- Intro / manifiesto ---------- */
.intro .grid > .label { grid-column: 1 / 4; }
.intro .statement { grid-column: 4 / -1; }
.intro__foot { grid-column: 4 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; margin-top: clamp(40px, 5vw, 72px); }
.intro__foot p { max-width: 44ch; color: var(--muted); }

/* ---------- Lista de servicios ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc {
  position: relative; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.svc > a, .svc > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32ch) 40px; align-items: center; gap: var(--gutter);
  padding: clamp(20px, 2.6vw, 38px) 0;
  transition: padding .6s var(--ease), color .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.svc:hover::before { transform: scaleY(1); transform-origin: top; }
.svc:hover > a, .svc:hover > div { color: var(--bg); padding-inline: 20px; }
.svc:hover .svc__d { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.svc__t {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(1.8rem, 0.6rem + 4.2vw, 5.2rem); letter-spacing: -0.035em; line-height: .95;
}
.svc__d { font-size: var(--fs-s); color: var(--muted); transition: color .5s; }
.svc__a { justify-self: end; width: 22px; height: 22px; transition: transform .6s var(--ease); }
.svc:hover .svc__a { transform: rotate(-45deg); }

/* ---------- Marquee ---------- */
.marquee { background: var(--paper); color: var(--ink); overflow: hidden; padding-block: clamp(18px, 2.4vw, 34px); border-block: 1px solid rgba(11,11,10,.1); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); padding-right: clamp(22px, 3vw, 48px);
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(2.4rem, 1rem + 5vw, 6.4rem); letter-spacing: -0.035em; line-height: 1; white-space: nowrap;
}
.marquee__item.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee__item svg { width: clamp(46px, 6vw, 96px); height: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Marcos "próximamente" (sustituir por imagen/vídeo) ---------- */
.frame {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-2); color: var(--paper);
}
.frame--portrait { aspect-ratio: 4 / 5; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.frame__ph::before {
  content: ""; position: absolute; inset: 16px;
  background:
    linear-gradient(currentColor, currentColor) top left / 18px 1px,
    linear-gradient(currentColor, currentColor) top left / 1px 18px,
    linear-gradient(currentColor, currentColor) top right / 18px 1px,
    linear-gradient(currentColor, currentColor) top right / 1px 18px,
    linear-gradient(currentColor, currentColor) bottom left / 18px 1px,
    linear-gradient(currentColor, currentColor) bottom left / 1px 18px,
    linear-gradient(currentColor, currentColor) bottom right / 18px 1px,
    linear-gradient(currentColor, currentColor) bottom right / 1px 18px;
  background-repeat: no-repeat; opacity: .5;
}
.frame__ph svg { width: 22%; max-width: 120px; opacity: .14; transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
.frame:hover .frame__ph svg { opacity: .3; transform: scale(1.06); }
.frame__tag { position: absolute; left: 28px; bottom: 24px; right: 28px; display: flex; justify-content: space-between; color: rgba(239,236,230,.55); }
.frame__inner { position: absolute; inset: 0; will-change: transform; }

/* ---------- Producciones ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) var(--gutter); }
.prod { grid-column: span 6; }
.prod:nth-child(4n+1) { grid-column: 1 / span 7; }
.prod:nth-child(4n+2) { grid-column: 9 / -1; margin-top: 22%; }
.prod:nth-child(4n+3) { grid-column: 2 / span 5; }
.prod:nth-child(4n+4) { grid-column: 7 / -1; margin-top: 12%; }
.prod__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.prod__meta h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: var(--fs-l); letter-spacing: -0.02em; line-height: 1; }
.prod.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 70px); }
.filter {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: background .4s, color .4s, border-color .4s;
}
.filter:hover { border-color: var(--fg); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.home-prod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.home-prod .frame:nth-child(2) { margin-top: 18%; }
.home-prod .frame:nth-child(3) { margin-top: 36%; }
.home-prod__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; margin-top: clamp(48px, 6vw, 90px); }
.home-prod__foot p { max-width: 40ch; }

/* ---------- Bloque dividido (videobooks, etc.) ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.split__media { grid-column: 1 / span 5; }
.split__body { grid-column: 7 / -1; display: grid; gap: 28px; }
.split__body .display { font-size: clamp(2.2rem, 0.8rem + 3.6vw, 5.4rem); }
.split__body p { max-width: 46ch; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta .label { display: block; margin-bottom: 28px; color: var(--muted); }
.cta__big { display: inline-block; font-size: var(--fs-xxl); }
.cta__big .line > span { transition: transform .8s var(--ease-out); }
.cta__big:hover .line > span { transform: translateY(-4%) skewX(-6deg); }
.cta__eye { width: clamp(70px, 8vw, 120px); margin: 0 auto clamp(28px, 4vw, 56px); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 130px) var(--gutter) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); }
.footer__col { grid-column: span 3; display: grid; align-content: start; gap: 10px; }
.footer__col:first-child { grid-column: 1 / span 6; }
.footer__col .label { color: var(--grey); margin-bottom: 8px; }
.footer__mail { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: clamp(1.2rem, 0.6rem + 1.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.05; overflow-wrap: anywhere; }
.footer__word { margin-top: clamp(64px, 9vw, 140px); }
.footer__word svg { width: 100%; height: auto; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(239,236,230,.14); color: var(--grey); }

/* ---------- Nosotros ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); counter-reset: v; }
.value { padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.value h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: var(--fs-l); letter-spacing: -0.02em; line-height: 1; }
.value p { color: var(--muted); max-width: 36ch; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.member h3 { margin-top: 16px; font-size: var(--fs-m); font-weight: 500; }
.member p { color: var(--muted); font-size: var(--fs-s); }

/* ---------- Servicios (detalle) ---------- */
.svc-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 1px solid var(--line); }
.svc-detail__n { grid-column: 1 / span 2; }
.svc-detail__t { grid-column: 3 / span 5; font-size: clamp(2rem, 0.8rem + 3.6vw, 4.6rem); }
.svc-detail__b { grid-column: 8 / -1; display: grid; gap: 22px; align-content: start; }
.svc-detail__b > p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-s); }

/* Proceso — scroll horizontal fijado */
.process { overflow: hidden; }
.process__head { padding: 0 var(--gutter); }
.process__track { display: flex; gap: var(--gutter); padding: 0 var(--gutter); width: max-content; }
.step {
  width: clamp(290px, 30vw, 460px); height: min(64vh, 560px); flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(22px, 2.4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius);
}
.step h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: var(--fs-l); letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.step p { color: var(--muted); }

/* ---------- Videobooks ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(18px, 2vw, 28px) 0; font-size: var(--fs-l); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 28px; max-width: 62ch; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gutter); }
.contact__info { grid-column: 1 / span 6; display: grid; gap: 40px; align-content: start; }
.contact__info .label { color: var(--muted); margin-bottom: 10px; display: block; }
.contact__info a.big { overflow-wrap: anywhere; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: clamp(1.2rem, 0.6rem + 1.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.05; }
.form { grid-column: 8 / -1; display: grid; gap: 8px; }
.field { position: relative; border-bottom: 1px solid var(--line); transition: border-color .4s; }
.field:focus-within { border-color: var(--fg); }
.field label, .field__label { display: block; padding-top: 22px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 10px 0 16px; font-size: var(--fs-m); outline: none; border-radius: 0; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }
.field select option { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 18px; }
.chip { display: contents; }
.field .chip { padding: 0; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: var(--fs-s); cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.chip span:hover { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; }
.form__foot p { font-size: var(--fs-s); color: var(--muted); max-width: 34ch; }

/* ---------- Animación: estados iniciales (sólo con JS y sin reduced-motion) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(40px); }
.anim [data-lines] .line > span { transform: translateY(105%); }
.anim [data-hero-eye] { clip-path: inset(50% 0 50% 0); }
.anim [data-hero-word] { clip-path: inset(100% 0 0 0); }
.anim [data-hero-prod], .anim [data-intro] { opacity: 0; }
.anim:not(.js-loading) .curtain { transform: none; }
.anim:not(.js-loading) .curtain svg { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .intro .grid > .label { grid-column: 1 / -1; margin-bottom: 28px; }
  .intro .statement, .intro__foot { grid-column: 1 / -1; }
  .svc > a, .svc > div { grid-template-columns: minmax(0, 1fr) 28px; }
  .svc__d { display: none; }
  .home-prod { grid-template-columns: 1fr 1fr; }
  .home-prod .frame:nth-child(3) { display: none; }
  .split__media, .split__body { grid-column: 1 / -1; }
  .prod, .prod:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .values { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .svc-detail__n { grid-column: 1 / -1; margin-bottom: 14px; }
  .svc-detail__t, .svc-detail__b { grid-column: 1 / -1; }
  .svc-detail__t { margin-bottom: 22px; }
  .contact__info, .form { grid-column: 1 / -1; }
  .page-hero__foot p { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-child { grid-column: 1 / -1; }
  .hero__bottom p { display: none; }
  .process__track { flex-direction: column; width: auto; }
  .step { width: 100%; height: auto; min-height: 280px; }
}
@media (max-width: 560px) {
  .hero__top .label:last-child { display: none; }
  .team { grid-template-columns: 1fr; }
  .home-prod { grid-template-columns: 1fr; }
  .home-prod .frame:nth-child(n) { margin-top: 0; }
  .home-prod .frame:nth-child(2) { display: none; }
  .sec-head { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
