/* ==========================================================
   OG Studio — Design tokens
   Estilo: minimal editorial + tipografía bold
   ========================================================== */
:root {
  /* Color */
  --bg: #F4F2EE;          /* papel cálido */
  --surface: #EAE7E1;
  --ink: #0E0E0E;         /* texto principal — 17.4:1 sobre --bg */
  --muted: #5A5854;       /* texto secundario — 6.4:1 sobre --bg */
  --line: #D6D2CA;
  --accent: #0066FF;      /* azul de marca — 4.9:1 sobre --bg */
  --dark: #0E0E0E;
  --dark-muted: #A09C94;  /* 7.3:1 sobre --dark */

  /* Tipografía */
  --font-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --fs-hero: clamp(3.25rem, 11vw, 10.5rem);
  --fs-h2: clamp(2.5rem, 7vw, 6rem);
  --fs-h3: clamp(1.5rem, 3.4vw, 2.75rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: .8125rem;

  /* Espaciado (base 8) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-6: 3rem; --s-8: 4rem; --s-12: 6rem; --s-16: 8rem;
  --section: clamp(5rem, 12vw, 10rem);
  --gutter: clamp(1rem, 4vw, 3rem);

  /* Forma y movimiento */
  --radius: 999px;
  --radius-card: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --dur: .5s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 1rem; background: var(--ink); color: var(--bg); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section__head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-8); }
.eyebrow { font-size: var(--fs-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.h2 em { font-weight: 400; }
.grid-2 { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 2fr; gap: var(--s-8); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .9rem 1.6rem;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 1rem/1 var(--font-sans); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform .2s var(--ease);
}
.btn span { transition: transform var(--dur) var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 44px; padding: .7rem 1.2rem; font-size: .9375rem; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.link { font-weight: 500; border-bottom: 1px solid currentColor; padding-block: .75rem .15rem; }
.link:hover { color: var(--accent); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -.05em; }
.logo span { font-size: .6em; vertical-align: super; color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: var(--s-4); }
.nav__links a:not(.btn) { font-weight: 500; position: relative; padding-block: .75rem; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: .5rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); padding: var(--s-2) var(--gutter) var(--s-4); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links li { width: 100%; }
  .nav__links a:not(.btn) { display: block; font-size: 1.5rem; font-weight: 600; }
  .nav__links .btn { margin-top: var(--s-2); }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 var(--s-8); }
.hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: .88; letter-spacing: -.055em; margin: var(--s-3) 0 var(--s-8); }
.hero__title em { color: var(--accent); font-weight: 400; letter-spacing: -.03em; }
.hero__bottom { display: grid; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.hero__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding-block: var(--s-3); }
.marquee__track { display: flex; align-items: center; gap: var(--s-4); width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-size: clamp(1.75rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.marquee i { color: var(--accent); font-style: normal; font-size: 1.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Filosofía ---------- */
.manifesto__text { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.045em; margin-top: var(--s-3); }
.manifesto__text em { color: var(--accent); font-weight: 400; }
.manifesto__grid { display: grid; gap: var(--s-6); margin-top: var(--s-8); }
@media (min-width: 900px) { .manifesto__grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; } }
.manifesto__sub { font-size: var(--fs-lead); color: var(--muted); max-width: 38ch; }
.manifesto__tag { margin-top: var(--s-3); font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--ink); }
.manifesto__tag::before { content: ""; display: inline-block; width: 2rem; height: 1px; background: var(--ink); vertical-align: middle; margin-right: .75rem; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
.pillars li { padding-top: var(--s-2); border-top: 1px solid var(--ink); }
.pillars span { font-size: var(--fs-small); color: var(--accent); font-weight: 600; }
.pillars h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .35rem 0 .25rem; }
.pillars p { color: var(--muted); font-size: .9375rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); margin-top: var(--s-8); }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-1); position: relative; padding-top: var(--s-3); border-top: 1px solid var(--line); cursor: default; }
.stats > div::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.stats > div:nth-child(2)::before { transition-delay: .12s; }
.stats > div:nth-child(3)::before { transition-delay: .24s; }
.stats > div:nth-child(4)::before { transition-delay: .36s; }
.stats.is-counted > div::before { transform: scaleX(1); }
.stats dt { font-size: var(--fs-small); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats dd { font-size: clamp(2.75rem, 6.5vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s, transform .5s var(--ease); transform-origin: left bottom; }
.stats > div:hover dd { color: var(--accent); transform: translateY(-4px); }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s-2); }
.tags li { font-size: var(--fs-small); font-weight: 500; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.tags--dark li { border-color: #333; color: var(--bg); }

/* ---------- Servicios ---------- */
.services { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-1) var(--s-3);
  padding-block: var(--s-4); border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.service__num { font-size: var(--fs-small); color: var(--muted); padding-top: .6em; }
.service__title { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -.04em; line-height: 1; transition: color .3s, transform .5s var(--ease); }
.service__body { grid-column: 2; }
.service__desc { color: var(--muted); max-width: 48ch; }
@media (min-width: 900px) {
  .service { grid-template-columns: 5rem 1fr 1fr; align-items: center; }
  .service__body { grid-column: 3; }
  .service:hover { padding-block: var(--s-6); }
  .service:hover .service__title { color: var(--accent); transform: translateX(12px); }
}

/* ---------- Trabajo ---------- */
.section--dark { background: var(--dark); color: var(--bg); }
.section--dark .eyebrow { color: var(--dark-muted); }
/* ---------- Producción ---------- */
.extras { display: grid; gap: var(--s-4); }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.extra { display: flex; flex-direction: column; padding: var(--s-4); border: 1px solid #2a2a2a; border-radius: var(--radius-card); transition: border-color .3s, background .3s; }
.extra:hover { border-color: var(--accent); background: #141414; }
.extra__body { display: flex; flex-direction: column; flex: 1; }
.extra__body .extra__actions { margin-top: auto; padding-top: var(--s-4); }
.extra__body h3 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: var(--s-2) 0; }
.extra__body h3 em { display: block; }
.extra__body h3 em { color: var(--accent); }
.extra__body > p:not(.eyebrow) { color: var(--dark-muted); max-width: 46ch; }
.extra__body .link { display: inline-block; margin-top: var(--s-3); }

.gallery { display: flex; gap: .5rem; }
.gallery figure { flex: var(--r) 1 0; aspect-ratio: var(--r); overflow: hidden; border-radius: var(--radius-card); background: #1a1a1a; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gallery--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery--grid figure { aspect-ratio: 4 / 5; }

/* ---------- Clientes (carrusel de logos) ---------- */
.clients { padding-block: var(--s-4); border-block: 1px solid var(--line); }
.clients__inner { display: grid; gap: var(--s-2); align-items: center; }
@media (min-width: 768px) { .clients__inner { grid-template-columns: auto 1fr; gap: var(--s-6); } }
.clients__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: marquee 32s linear infinite; }
.clients__viewport:hover .clients__track { animation-play-state: paused; }
.clients__track li { flex: none; }
.clients__more { display: flex; align-items: center; gap: .6rem; }
.clients__more strong { font-size: 2.75rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.clients__more span { font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); line-height: 1.2; max-width: 6ch; }
.clients__track img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }

/* ---------- Proceso ---------- */
.process { display: grid; gap: var(--s-4); counter-reset: none; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-4); } }
.process li { padding-top: var(--s-3); border-top: 1px solid var(--ink); }
.process span { font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; color: var(--accent); line-height: 1; }
.process h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin: var(--s-2) 0 var(--s-1); }
.process p { color: var(--muted); }

/* ---------- Testimonio ---------- */
.quote { background: var(--surface); }
.ig { display: block; }
.ig__handle { font-size: clamp(2.5rem, 9vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-top: var(--s-2); overflow-wrap: anywhere; transition: color .3s; }
.ig__handle span { display: inline-block; color: var(--accent); transition: transform .5s var(--ease); }
.ig:hover .ig__handle { color: var(--accent); }
.ig:hover .ig__handle span { transform: translate(6px, -6px); }

/* ---------- Contacto ---------- */
.contact__title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: .92; letter-spacing: -.05em; margin: var(--s-3) 0; }
.contact__title em { color: var(--accent); }
.contact__lead { color: var(--muted); max-width: 40ch; }
.contact__info { margin-top: var(--s-4); display: grid; gap: .25rem; font-size: var(--fs-lead); font-weight: 500; }
.contact__info a { display: inline-block; padding-block: .35rem; border-bottom: 1px solid currentColor; }
.contact__info a:hover { color: var(--accent); }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-1); border: 0; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1.25rem/1.4 var(--font-sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: .6rem 0; min-height: 48px; border-radius: 0; resize: vertical;
  transition: border-color .3s;
}
.field select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E0E0E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .25rem center; padding-right: 2rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: #C4260A; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bg); padding: var(--s-12) 0 var(--s-4); overflow: hidden; }
.footer__big { font-size: clamp(4rem, 17vw, 16rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; white-space: nowrap; }
.footer__logo { width: 160px; height: auto; }
.footer__row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid #2a2a2a; color: var(--dark-muted); font-size: .9375rem; }
.footer__row ul { display: flex; gap: var(--s-3); }
.footer__row a { display: inline-block; padding-block: .6rem; }
.footer__row a:hover { color: var(--accent); }

/* ---------- Animación de aparición ---------- */
/* Solo se ocultan cuando hay JS, así nunca queda contenido invisible */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animaciones ---------- */
/* Barra de progreso de scroll */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 60; pointer-events: none; }

/* Nav que se esconde al bajar */
.nav { transition: background .3s, border-color .3s, transform .45s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }

/* Hero: líneas que suben */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; animation-delay: calc(var(--l) * .12s + .15s); }
.hero__eyebrow { opacity: 0; animation: fadeUp .8s var(--ease) .05s forwards; }
.hero__in { opacity: 0; animation: fadeUp 1s var(--ease) .6s forwards; }
.hero__title { will-change: transform; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Títulos de sección que emergen de una línea */
.js .split { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.js .split > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .split.is-visible > span { transform: none; }

/* Etiquetas en cascada */
.js .reveal .tags li { opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s, color .3s; transition-delay: calc(var(--t, 0) * 50ms + 350ms); }
.js .reveal.is-visible .tags li { opacity: 1; transform: none; }
.tags li:hover { background: var(--ink); color: var(--bg); }
.tags--dark li:hover { background: var(--bg); color: var(--ink); }

/* Imágenes con efecto cortina */
.js .gallery figure { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js .gallery figure img { transform: scale(1.18); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .gallery figure.is-visible { clip-path: inset(0 0 0 0); }
.js .gallery figure.is-visible img { transform: none; }
.js .gallery figure.is-visible:hover img { transform: scale(1.05); transition-delay: 0ms; transition-duration: .8s; }

/* Servicios: fondo que se desliza al pasar el ratón */
.service { position: relative; isolation: isolate; }
.service::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--surface); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.service:hover::before { transform: scaleY(1); }
.service__num { transition: color .3s; }
.service:hover .service__num { color: var(--accent); }

/* Pilares y proceso */
.pillars li, .process li { transition-property: opacity, transform, border-color; }
.pillars li:hover, .process li:hover { border-top-color: var(--accent); }
.pillars li:hover h3, .process li:hover h3 { color: var(--accent); }
.pillars h3, .process h3 { transition: color .3s; }

/* Botones: brillo que cruza */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn--magnetic { transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform .35s var(--ease); }

/* Formulario: etiqueta activa */
.field label, .field legend { transition: color .3s; }
.field:focus-within label { color: var(--accent); }

/* Instagram: flecha que invita */
.ig__handle span { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translate(6px, -6px); } }

/* ---------- Utilidades ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.extra__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); }
.extra__body .extra__actions .link { margin-top: 0; }
.section--soft { background: var(--surface); }

/* ---------- Páginas de detalle ---------- */
.page-hero { padding: 140px 0 var(--s-8); }
.crumb { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--s-1); }
.crumb span { transition: transform .4s var(--ease); }
.crumb:hover { color: var(--accent); }
.crumb:hover span { transform: translateX(-4px); }
.page-title { font-size: clamp(3rem, 9vw, 8.5rem); margin: var(--s-2) 0 var(--s-6); }
.page-title em { color: var(--accent); font-weight: 400; }
.page-hero__bottom { display: grid; gap: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .page-hero__bottom { grid-template-columns: 7fr 5fr; gap: var(--s-8); } }
.page-hero .hero__lead { max-width: 46ch; }
.facts { display: grid; gap: var(--s-2); }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: .15em; }
.facts dd { font-weight: 500; }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }

/* Galería de trabajos */
.work { display: grid; gap: var(--s-6) var(--s-3); align-items: start; }
@media (min-width: 700px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work__open { display: block; width: 100%; padding: 0; border: 0; background: #1a1a1a; border-radius: var(--radius-card); overflow: hidden; cursor: zoom-in; }
.work__open img { width: 100%; height: auto; transition: transform 1.6s var(--ease); }
.work__open:hover img { transform: scale(1.04); transition-duration: .8s; }
.work__item figcaption { display: grid; gap: .25rem; margin-top: var(--s-2); }
.work__item figcaption strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.work__item figcaption span:last-child { color: var(--dark-muted); max-width: 52ch; }
.work__tag { font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.js .work__item { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .work__item.is-visible { opacity: 1; transform: none; }

/* Qué incluye */
.includes { display: grid; gap: 0 var(--s-6); }
@media (min-width: 700px) { .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .includes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.includes li { padding: var(--s-4) 0; border-top: 1px solid var(--ink); }
.includes span { font-family: var(--font-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--accent); }
.includes h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin: var(--s-2) 0 var(--s-1); transition: color .3s; }
.includes p { color: var(--muted); max-width: 40ch; }
.includes li:hover h3 { color: var(--accent); }

/* Proceso de 4 pasos */
@media (min-width: 1100px) { .process--4 { grid-template-columns: repeat(4, 1fr); } }

/* DTF vs sublimación */
.compare { display: grid; gap: var(--s-3); }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__item { padding: var(--s-4); border: 1px solid #2a2a2a; border-radius: var(--radius-card); transition: border-color .3s; }
.compare__item:hover { border-color: var(--accent); }
.compare__tag { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.compare__item h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; margin: var(--s-3) 0 var(--s-1); }
.compare__item > p:not(.compare__tag) { color: var(--dark-muted); }
.compare__note { margin-top: var(--s-4); color: var(--dark-muted); font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; }

/* Otros servicios */
.more__grid { display: grid; gap: var(--s-3); }
@media (min-width: 800px) { .more__grid { grid-template-columns: 1fr 1fr; } }
.more__item { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: var(--s-3); padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--radius-card); transition: border-color .3s, background .3s; }
.more__item img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.more__body { display: grid; gap: .25rem; }
.more__body strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.more__arrow { font-size: 1.5rem; padding-right: var(--s-2); transition: transform .4s var(--ease), color .3s; }
.more__item:hover { border-color: var(--ink); background: var(--surface); }
.more__item:hover .more__arrow { transform: translateX(6px); color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--s-4) var(--gutter); border: 0; background: rgba(14,14,14,.94); color: var(--bg); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); animation: fadeIn .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: grid; justify-items: center; gap: var(--s-2); min-width: 0; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius-card); }
.lightbox figcaption { text-align: center; color: var(--dark-muted); max-width: 60ch; }
.lightbox figcaption strong { display: block; color: var(--bg); font-weight: 600; }
.lightbox__close { position: absolute; top: var(--s-2); right: var(--s-2); font-size: 2rem; line-height: 1; }
.lightbox__close, .lightbox__nav { width: 48px; height: 48px; background: none; border: 1px solid #333; border-radius: 50%; color: var(--bg); cursor: pointer; transition: background .3s, border-color .3s; }
.lightbox__nav { font-size: 1.25rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ajustes móvil ---------- */
@media (max-width: 767px) {
  :root { --section: 4.5rem; }
  .section__head { margin-bottom: var(--s-6); gap: var(--s-1); }

  /* Hero: sin pantalla completa, contenido arriba y CTA a todo el ancho */
  .hero { min-height: auto; padding: 120px 0 var(--s-6); }
  .hero .eyebrow { font-size: .6875rem; letter-spacing: .05em; }
  .hero__title { margin: var(--s-2) 0 var(--s-6); }
  .hero__bottom { gap: var(--s-3); }
  .hero__lead { max-width: none; font-size: 1.0625rem; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .hero__actions .btn { justify-content: center; }
  .hero__actions .link { align-self: center; }

  .marquee { padding-block: var(--s-2); }

  /* Filosofía */
  .manifesto__text { font-size: 2.5rem; }
  .manifesto__grid { margin-top: var(--s-4); gap: var(--s-4); }
  .manifesto__sub { font-size: 1.0625rem; }
  .manifesto__tag { font-size: 1.25rem; margin-top: var(--s-2); }
  .pillars { gap: var(--s-3) var(--s-2); }
  .pillars h3 { font-size: 1.125rem; }
  .pillars p { font-size: .875rem; }
  .stats { margin-top: var(--s-6); gap: var(--s-4) var(--s-3); }
  .stats dt { font-size: .6875rem; letter-spacing: .06em; }

  /* Servicios: número junto al título y texto a todo el ancho */
  .service { grid-template-columns: auto 1fr; align-items: baseline; gap: var(--s-1) var(--s-2); padding-block: var(--s-4); }
  .service__num { padding-top: 0; }
  .service__title { font-size: 1.625rem; }
  .service__body { grid-column: 1 / -1; }
  .tags { gap: .35rem; margin-top: var(--s-2); }
  .tags li { font-size: .75rem; padding: .25rem .65rem; }

  /* Producción */
  .extras { gap: var(--s-2); }
  .extra { padding: var(--s-3); }
  .extra__body h3 { font-size: 1.75rem; }
  .extra__body .link { margin-top: var(--s-2); }

  /* Proceso: número a la izquierda, más compacto */
  .process { gap: 0; }
  .process li { display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--s-2); padding-block: var(--s-3); border-top-color: var(--line); }
  .process li:first-child { border-top-color: var(--ink); }
  .process span { grid-row: 1 / span 2; font-size: 2rem; }
  .process h3 { margin: 0 0 .25rem; font-size: 1.25rem; }

  /* Instagram */
  .quote { padding-block: var(--s-8); }
  .ig__handle { font-size: 2.5rem; }

  /* Clientes */
  .clients { padding-block: var(--s-3); }
  .clients__track img { height: 44px; }
  .clients__more strong { font-size: 2.25rem; }

  /* Contacto */
  .contact .grid-2 { gap: var(--s-6); }
  .contact__title { margin: var(--s-2) 0; }
  .contact__info { margin-top: var(--s-3); font-size: 1.0625rem; }
  .form { gap: var(--s-3); }
  .form__row { gap: var(--s-3); }
  .form .btn { justify-self: stretch; justify-content: center; }

  /* Páginas de detalle */
  .page-hero { padding: 112px 0 var(--s-6); }
  .page-title { margin: var(--s-1) 0 var(--s-4); }
  .facts > div { grid-template-columns: 6rem 1fr; }
  .page-hero__actions { flex-direction: column; align-items: stretch; gap: var(--s-1); margin-top: var(--s-4); }
  .page-hero__actions .btn { justify-content: center; }
  .page-hero__actions .link { align-self: center; }
  .work { gap: var(--s-4); }
  .includes li { padding: var(--s-3) 0; }
  .includes h3 { font-size: 1.25rem; margin-top: var(--s-1); }
  .compare__item { padding: var(--s-3); }
  .more__item { grid-template-columns: 72px 1fr auto; gap: var(--s-2); }
  .more__item img { width: 72px; height: 72px; }
  .more__body strong { font-size: 1.0625rem; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__prev { grid-row: 2; justify-self: start; }
  .lightbox__next { grid-row: 2; justify-self: end; }

  /* Footer apilado y ordenado */
  .footer { padding-top: var(--s-8); }
  .footer__row { flex-direction: column; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-4); }
  .footer__row ul { order: 2; }
  .footer__row p { order: 3; font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation-duration: 60s; }
  .clients__track { animation-duration: 56s; }
}
