/* ==========================================================================
   BERUM — Landing page
   Requiere tokens.css
   Regla de texto: los titulares en mayúsculas usan interlineado ≥ 1.05 para
   que las tildes (Á É Í Ó Ú Ñ) nunca toquen la línea de arriba.
   ========================================================================== */

/* Ritmo uniforme --------------------------------------------------------
   Interlineado: texto 1.5 · itálica y manuscrita 1.3 · mayúsculas 1.05.
   Espacios verticales: --sp-1 8px · --sp-2 16px · --sp-3 24px · --sp-4 32–48px. */
:root { --lh-text: 1.5; --lh-serif: 1.3; --lh-caps: 1.05; --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: clamp(32px, 3.5vw, 48px); }

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-text); font-size: var(--t-body); line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--sp-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

/* Superficies */
.on-paper { background: var(--paper); color: var(--ink); }
.on-cream { background: var(--sand); color: var(--ink); }
.on-ink { background: var(--ink); color: var(--cream); --fg-soft: rgba(252, 241, 219, .72); --line: rgba(252, 241, 219, .18); }
.on-teal { background: var(--ink); color: var(--cream); --fg-soft: rgba(252, 241, 219, .78); --line: rgba(252, 241, 219, .2); }
.on-orange { background: var(--orange); color: var(--ink); --fg-soft: rgba(26, 26, 26, .78); --line: rgba(26, 26, 26, .22); }

/* Grano de marca */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22; mix-blend-mode: overlay;
}
.grain > * { position: relative; z-index: 2; }

/* Degradados de marca */
.tone-ember { background:
  radial-gradient(60% 60% at 28% 0%, #f25e00 0%, transparent 70%),
  radial-gradient(40% 40% at 8% 95%, rgba(230, 220, 203, .55) 0%, transparent 70%),
  radial-gradient(45% 50% at 95% 100%, rgba(193, 69, 0, .55) 0%, transparent 75%),
  linear-gradient(165deg, #5a2408 0%, #1a1a1a 50%, #0d0d0d 100%); }
.tone-dusk { background:
  radial-gradient(55% 50% at 10% 10%, #f25e00 0%, transparent 70%),
  linear-gradient(150deg, #3a2414 0%, #1b222b 55%, #0a1520 100%); }
.tone-ocean { background:
  radial-gradient(50% 45% at 90% 20%, #fffbf5 0%, transparent 70%),
  radial-gradient(55% 50% at 12% 35%, #3a8a93 0%, transparent 70%),
  radial-gradient(50% 50% at 85% 95%, #6b5246 0%, transparent 70%),
  linear-gradient(170deg, #2c6d75 0%, #1b1b1b 100%); }
.tone-mint { background:
  radial-gradient(50% 45% at 30% 75%, #fffbe8 0%, transparent 70%),
  radial-gradient(55% 50% at 90% 85%, #12424b 0%, transparent 70%),
  linear-gradient(150deg, #10414b 0%, #4f8c8e 55%, #c9ddd0 100%); }
.tone-sand { background:
  radial-gradient(60% 45% at 60% 35%, #fff6e3 0%, transparent 70%),
  radial-gradient(60% 50% at 20% 100%, #1d1d1d 0%, transparent 70%),
  linear-gradient(180deg, #f6f6f7 0%, #a59a88 70%, #4a4238 100%); }
.tone-ash { background:
  radial-gradient(50% 60% at 85% 30%, #efefef 0%, transparent 70%),
  linear-gradient(110deg, #555 0%, #232323 40%, #8a8a8a 100%); }

/* Tipografía ------------------------------------------------------------- */
.headline {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  line-height: var(--lh-caps); letter-spacing: 0; padding-top: .06em;
}
.headline .serif {
  display: block; font-family: var(--f-serif); font-style: italic; text-transform: none;
  font-size: .8em; line-height: var(--lh-serif); letter-spacing: -0.01em; margin-top: .12em;
}
.t-xl { font-size: var(--t-xl); }
.t-l { font-size: var(--t-l); }
.hand { font-family: var(--f-hand); font-weight: 400; line-height: var(--lh-serif); }
.c-orange { color: var(--orange); }
.c-teal { color: var(--accent-on-light); }
.c-aqua { color: var(--orange); }

.label {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--t-micro); font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.label::before { content: ""; width: .55em; height: .55em; background: var(--orange); flex: none; border-radius: 50%; }
.on-orange .label::before { background: var(--ink); }
.lede { font-size: var(--t-s); line-height: var(--lh-text); }
.prose { max-width: var(--measure); }
.prose p { color: var(--fg-soft, rgba(26, 26, 26, .72)); }
.prose p:last-child { margin-bottom: 0; }
.prose .strong { color: inherit; font-weight: 500; }

/* Botones ---------------------------------------------------------------- */
.btn {
  --bg: var(--orange); --fg: var(--ink); --bd: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: .85em 1.5em; border: 1.5px solid var(--bd); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); }
.on-ink .btn:hover, .on-teal .btn:hover, .hero .btn:hover { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; }
.on-orange .btn { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); }
.on-orange .btn:hover { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.on-orange .btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--sm { min-height: 42px; padding: .55em 1.15em; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: color .3s var(--ease); }
.link-arrow:hover { color: var(--orange); }
.link-arrow svg { width: 1em; height: 1em; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; padding: .35em .85em; border-radius: var(--r-pill); border: 1px solid rgba(26, 26, 26, .16); font-size: .875rem; line-height: var(--lh-serif); }

/* Header ----------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--cream); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header.is-solid { background: rgba(242, 236, 226, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 rgba(26, 26, 26, .1); }
.brand { margin-right: auto; display: block; text-decoration: none; }
.brand-mark { display: block; width: 60px; height: 46px; background: currentColor;
  -webkit-mask: url('../assets/brand/logo-berum-wordmark.svg') center / contain no-repeat;
          mask: url('../assets/brand/logo-berum-wordmark.svg') center / contain no-repeat; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a { position: relative; padding-block: 6px; text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid currentColor; border-radius: 50%; background: none; cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), background .3s; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: var(--ink); color: var(--cream); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s; }
.menu-open .mobile-menu { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease); }
.menu-open .site-header { background: transparent; color: var(--cream); box-shadow: none; backdrop-filter: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.6rem, 12vw, 4rem); line-height: var(--lh-caps); text-decoration: none; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 40; display: inline-flex; align-items: center; height: 56px; padding: 0 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 600; font-size: .9375rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); transition: background .3s, opacity .3s; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease), margin .45s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { background: var(--orange); color: var(--ink); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 120px; margin-left: 10px; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* Espacios de imagen/video -------------------------------------------------
   Sin archivo, el espacio muestra un degradado de marca (se ve terminado).
   Agrega ?espacios a la URL para ver qué archivo espera cada uno. */
.slot { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: var(--ratio, 4 / 5); border-radius: var(--slot-r, 0); background: var(--ink-2); }
.slot > img, .slot > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.slot-bg { position: absolute; inset: 0; z-index: 0; }
.slot.is-filled .slot-bg { display: none; }
.slot-info { display: none; }
.show-slots .slot-info { display: flex; position: absolute; left: 10px; right: 10px; top: 10px; z-index: 5; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 8px; background: rgba(10,10,10,.72); color: #fffbf5; font: 10.5px/1.35 ui-monospace, Menlo, monospace; }
.show-slots .slot-info b { font: 600 11px/1.3 var(--f-text); letter-spacing: .06em; text-transform: uppercase; }
.show-slots .slot.is-filled .slot-info { display: none; }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   SECCIONES
   ========================================================================== */

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-pause { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 16px); z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid rgba(252, 241, 219, .5); border-radius: 50%; background: rgba(10, 10, 10, .35); color: var(--cream); cursor: pointer; transition: border-color .3s, background .3s; }
.hero-pause:hover { border-color: var(--cream); background: rgba(10, 10, 10, .6); }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 75% at 15% 85%, rgba(10,10,10,.75) 0%, transparent 70%), linear-gradient(180deg, rgba(10,10,10,.65) 0%, rgba(10,10,10,.5) 40%, rgba(10,10,10,.82) 100%); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 3; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(24px, 4vh, 48px); font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 6.4rem); max-width: 100%; }
.hero h1 .serif { font-size: .66em; max-width: 22ch; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3) 64px; align-items: end; margin-top: var(--sp-3); }
.hero-foot p { margin: 0; max-width: 54ch; color: rgba(252, 241, 219, .86); }
.hero-foot .hand { display: block; margin-top: 0; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--cream); }

/* Manifiesto */
.manifesto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 110px); align-items: start; }
.manifesto h2 .serif { color: var(--accent-on-light); }
.manifesto-note { margin-top: var(--sp-3); }
.manifesto-note .hand { display: inline-block; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.manifesto-note svg { width: min(100%, 360px); height: 14px; color: var(--orange); margin-top: 2px; }
.manifesto-note svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.manifesto-close { margin-top: var(--sp-2); font-family: var(--f-serif); font-style: italic; font-size: var(--t-m); line-height: var(--lh-serif); max-width: 24ch; }

/* Encabezado de sección */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-3) clamp(40px, 6vw, 96px); align-items: end; margin-bottom: var(--sp-4); }
.sec-head p { margin: 0; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.service { display: flex; flex-direction: column; gap: var(--sp-2); padding: clamp(24px, 2.8vw, 40px); border-radius: var(--r-l); background: var(--card); }
.service-num { font-family: var(--f-wide); font-weight: 900; font-size: .75rem; color: var(--orange); }
.service h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2rem, 3vw, 2.8rem); line-height: var(--lh-caps); padding-top: .06em; }
.service h4 { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: var(--lh-serif); }
.service p { margin: 0; color: rgba(26, 26, 26, .72); }
.service .pills { margin-top: 4px; }
.service .link-arrow { margin-top: auto; align-self: flex-start; }
.service--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(32px, 4vw, 64px); background: var(--ink); color: var(--cream); }
.service--featured p { color: rgba(252, 241, 219, .78); }
.service--featured .pill { border-color: rgba(252, 241, 219, .25); }
.service--featured .col { display: flex; flex-direction: column; gap: 14px; }
.ads { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; margin-top: clamp(12px, 1.4vw, 20px); padding: clamp(20px, 2.4vw, 32px) clamp(24px, 2.8vw, 40px); border-radius: var(--r-l); border: 1.5px dashed rgba(26, 26, 26, .25); }
.ads h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: var(--lh-caps); padding-top: .06em; }
.ads p { margin: 0; color: rgba(26, 26, 26, .72); max-width: 70ch; }

/* Fotografía: tarjeta ancha con producciones de @sebascano.foto */
.service--photo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-3) clamp(32px, 4vw, 64px); align-items: center; }
.service--photo .col { display: flex; flex-direction: column; gap: var(--sp-2); }
.service-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-1); }
.service-links [hidden] { display: none; }
.photo-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-feed:empty { display: none; }
.pf-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.pf-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease), transform .8s var(--ease); }
.pf-tile img.is-active { opacity: 1; }
.pf-tile:hover img { transform: scale(1.04); }

/* Pauta: tarjeta ancha y compacta */
.service--wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num num num" "t h link" "t p link"; gap: var(--sp-1) clamp(24px, 3vw, 48px); align-items: center; background: transparent; border: 1.5px dashed rgba(26, 26, 26, .25); }
.service--wide .service-num { grid-area: num; }
.service--wide h3 { grid-area: t; }
.service--wide h4 { grid-area: h; }
.service--wide p { grid-area: p; }
.service--wide .link-arrow { grid-area: link; margin-top: 0; align-self: center; }

/* Plan 90 días */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 6vw, 100px); align-items: start; }
.plan h2 { font-size: var(--t-xxl); }
.plan h2 .serif { font-size: .42em; color: var(--ink); max-width: 26ch; }
.plan-intro { margin: var(--sp-3) 0; color: var(--fg-soft); max-width: 48ch; }
.plan small { display: block; margin-top: 16px; font-size: var(--t-micro); color: var(--fg-soft); max-width: 46ch; line-height: var(--lh-text); }
.plan-cols { display: grid; gap: 22px; }
.plan-col { padding-top: 16px; border-top: 1.5px solid var(--ink); }
.plan-col h3 { font-family: var(--f-hand); font-size: 1.7rem; color: var(--ink); margin-bottom: 10px; line-height: var(--lh-serif); }
.plan-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.plan-col li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.plan-col li b { font-family: var(--f-wide); font-weight: 900; min-width: 1.2em; }

/* Trabajo */
.work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.work-item { position: relative; display: block; border-radius: 10px; overflow: hidden; color: var(--cream); text-decoration: none; }
.work-item .slot { --ratio: 4 / 5; }
.work-item .slot > img, .work-item .slot > video { transition: transform 1s var(--ease); }
.work-item:hover .slot > img, .work-item:hover .slot > video { transform: scale(1.04); }
.work-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 48px 16px 14px; background: linear-gradient(transparent, rgba(10, 10, 10, .65)); }
.work-meta b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: var(--lh-caps); }
.work-meta span { font-size: .8125rem; text-align: right; color: rgba(252, 241, 219, .85); line-height: var(--lh-serif); }
.ig-tag { position: absolute; top: 10px; left: 10px; z-index: 5; padding: .3em .75em; border-radius: var(--r-pill); background: rgba(242, 236, 226, .92); color: var(--ink); font-size: .75rem; font-weight: 600; line-height: var(--lh-serif); white-space: nowrap; }

/* Galería en movimiento (se arma con js/main.js desde feed.json) */
.gallery { display: grid; gap: clamp(10px, 1.2vw, 16px); margin-inline: calc(var(--gutter) * -1); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.g-row { overflow: hidden; }
.g-track { display: flex; width: max-content; animation: deslizar var(--dur, 60s) linear infinite; }
.g-copy { display: contents; }
.g-row--rev .g-track { animation-direction: reverse; }
.gallery:hover .g-track, .gallery:focus-within .g-track { animation-play-state: paused; }
@keyframes deslizar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.g-tile { position: relative; flex: none; width: clamp(200px, 19vw, 280px); aspect-ratio: 4 / 5; margin-right: clamp(10px, 1.2vw, 16px); border-radius: 10px; overflow: hidden; background: var(--ink-2); color: var(--cream); text-decoration: none; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-tile:hover img { transform: scale(1.05); }
.g-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(10, 10, 10, .65)); }
.g-meta b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 1.8vw, 1.8rem); line-height: var(--lh-caps); }
.g-meta span { font-size: .75rem; text-align: right; color: rgba(252, 241, 219, .85); line-height: var(--lh-serif); }
/* Sin movimiento: fila deslizable a mano */
.gallery.is-static .g-row { overflow-x: auto; scrollbar-width: none; }
.gallery.is-static .g-track { animation: none; }
.gallery.is-static .g-copy { display: none; }

.work-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-2) 32px; margin-top: var(--sp-3); }
.work-cats { font-family: var(--f-serif); font-style: italic; font-size: var(--t-s); color: rgba(26, 26, 26, .65); }

/* Cómo trabajamos */
.how-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 100px); align-items: start; }
.how-top h2 .serif { color: var(--orange); }
.steps-hand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: var(--sp-3); font-family: var(--f-hand); font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: var(--lh-serif); color: var(--orange); }
.steps-hand svg { width: 40px; height: 18px; color: var(--cream); }
.steps { margin-top: var(--sp-4); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 20px 20px 0 0; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--f-wide); font-weight: 900; font-size: .75rem; color: var(--orange); }
.step h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: var(--lh-caps); margin: 10px 0 8px; padding-top: .06em; }
.step p { margin: 0; font-size: .9375rem; color: var(--fg-soft); }
.how-close { margin-top: var(--sp-4); font-family: var(--f-serif); font-style: italic; font-size: var(--t-m); line-height: var(--lh-serif); }

/* Experiencia + internacional */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(26, 26, 26, .15); }
.stat { padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(26, 26, 26, .15); }
.stat-num { font-family: var(--f-wide); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: var(--lh-caps); letter-spacing: -0.02em; white-space: nowrap; }
.stat-num small { font-size: .4em; letter-spacing: 0; margin-left: .15em; }
.stat p { margin: 10px 0 0; color: rgba(26, 26, 26, .7); max-width: 28ch; }
.sectors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: var(--sp-3); font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: var(--lh-caps); }
.sectors span + span::before { content: "·"; margin-right: 18px; color: var(--orange); }
.intl { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-3) clamp(32px, 5vw, 80px); align-items: center; margin-top: var(--sp-4); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-l); }
.intl h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.intl h2 .serif { color: var(--orange); }
.intl p { margin: var(--sp-2) 0 0; color: var(--fg-soft); max-width: 52ch; }
.intl-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.territories { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.territories li { display: inline-flex; align-items: baseline; gap: .5em; padding: .45em 1em; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .9375rem; }
.territories b { font-family: var(--f-wide); font-weight: 900; font-size: .7rem; color: var(--orange); }

/* Sobre Berum */
.about { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3) 64px; align-items: end; }
.about h2 { max-width: 40ch; }
.about h2 .serif { color: var(--orange); }
.about-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding-bottom: .3em; }
.about-side .hand { font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--accent-on-light); }
.about-side [hidden] { display: none; }
.ig-row { margin-top: var(--sp-4); }
.ig-row:empty { display: none; }
#berum { padding-block: calc(var(--section) * .75); }

/* Contacto */
.contact-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 100px); align-items: end; }
.contact-top h2 { font-size: var(--t-xl); }
.contact-top h2 .serif { font-size: .6em; }
.contact-top p { margin: 0 0 var(--sp-3); font-size: var(--t-s); line-height: var(--lh-text); max-width: 46ch; }
.contact-top .hand { display: block; font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 18px; }
.form-card[hidden] { display: none; }
.form-card { animation: abrir .5s var(--ease); margin-top: var(--sp-4); padding: clamp(24px, 3.4vw, 52px); border-radius: var(--r-l); background: var(--card); color: var(--ink); }
.form-card h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: var(--lh-caps); margin-bottom: var(--sp-3); padding-top: .06em; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 10px; }
.input { width: 100%; min-height: 50px; padding: 12px 0; border: 0; border-bottom: 1.5px solid rgba(26, 26, 26, .2); border-radius: 0; background: transparent; color: inherit; font-family: var(--f-text); font-size: 1.0625rem; transition: border-color .3s var(--ease); }
.input::placeholder { color: rgba(26, 26, 26, .4); }
.input:focus { outline: none; border-bottom-color: var(--orange); }
textarea.input { min-height: 110px; resize: vertical; line-height: var(--lh-text); }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%231a1a1a' stroke-width='1.6'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.phone-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check span { display: inline-flex; padding: .5em 1em; border-radius: var(--r-pill); border: 1px solid rgba(26, 26, 26, .2); font-size: .9375rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.check input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.check input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field-error { font-size: .875rem; color: var(--rust); }
.field-error:empty { display: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-actions small { color: rgba(26, 26, 26, .65); font-size: .875rem; max-width: 46ch; }
.form-done { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.is-sent .form, .is-sent .form-card > h3, .is-sent .form-card > .label { display: none; }
.is-sent .form-done { display: block; }
.form-done h3 { margin-bottom: 14px; }
.form-done p { color: rgba(26, 26, 26, .72); max-width: 50ch; }

@keyframes abrir { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* Legal */
.page-top { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: 32px; }
.legal section { padding-block: 40px; border-top: 1px solid rgba(26, 26, 26, .15); }
.legal h2 { font-size: var(--t-l); margin-bottom: 16px; }
.pending { display: inline-block; padding: .5em 1em; border: 1px dashed var(--orange); border-radius: var(--r-s); color: var(--rust); font-size: .9375rem; }

/* Footer */
.site-footer { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-logo { width: clamp(140px, 15vw, 200px); aspect-ratio: 429 / 353; background: currentColor;
  -webkit-mask: url('../assets/brand/logo-berum.svg') left center / contain no-repeat;
          mask: url('../assets/brand/logo-berum.svg') left center / contain no-repeat; }
.footer-grid .hand { display: block; margin-top: 20px; font-size: 1.7rem; color: var(--orange); }
.footer-col h4 { margin-bottom: 16px; font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(252, 241, 219, .55); }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; transition: color .3s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid rgba(252, 241, 219, .18); font-size: .875rem; color: rgba(252, 241, 219, .6); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step + .step { padding: 18px 20px 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav, .site-header .btn { display: none; }
  .menu-toggle { display: grid; }
  .hero-foot, .manifesto, .sec-head, .plan-grid, .how-top, .intl, .about, .contact-top, .service--featured, .service--photo, .ads { grid-template-columns: minmax(0, 1fr); }
  .service--wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "t" "h" "p" "link"; }
  .service--wide .link-arrow { justify-self: start; }
  .intl-side .btn { width: 100%; }
  .hero-meta { flex-direction: column; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn, .ads .btn, .form-actions .btn, .plan .btn { width: 100%; }
  .plan-col ul { grid-template-columns: minmax(0, 1fr); }
  .work { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .work::-webkit-scrollbar { display: none; }
  .work-item { flex: 0 0 72%; scroll-snap-align: start; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid rgba(26, 26, 26, .15); margin-top: 20px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-row { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
