/* ===========================================================
   1 A 1 — Business Intelligence
   Rediseño: pergamino (blanco hueso) como color principal ·
   índigo profundo como tinta · esquinas rectas ·
   Playfair en toda la página · minimal/líneas
   =========================================================== */

:root {
  /* ===== Paleta de identidad ===== */
  --space-indigo: #22223B;
  --dusty-grape: #4A4E69;
  --lilac-ash: #9A8C98;
  --almond-silk: #C9ADA7;
  --parchment: #FAF7F1;

  /* Acento (identidad fija) */
  --accent: var(--space-indigo);
  /* Subrayado de acento (CTA auditoría + idioma activo en la navbar) */
  --nav-underline: var(--dusty-grape);

  /* Fondos — base pergamino (modo claro con superficies cálidas) */
  --bg: var(--parchment);
  --bg-2: color-mix(in srgb, var(--parchment) 88%, var(--almond-silk));
  /* panel ligeramente teñido (cálido) */
  --bg-deep: color-mix(in srgb, var(--parchment) 86%, var(--dusty-grape));
  /* superficie más profunda / greige */

  /* Tinta — índigo profundo, alto contraste sobre pergamino.
     (El token sigue llamándose --bone por compatibilidad; ahora lleva el índigo) */
  --bone: var(--space-indigo);
  --bone-2: color-mix(in srgb, var(--space-indigo) 84%, #000);
  --ink: var(--bone);
  --ink-soft: color-mix(in srgb, var(--bone) 70%, transparent);
  --ink-faint: color-mix(in srgb, var(--bone) 44%, transparent);

  /* Líneas */
  --line: color-mix(in srgb, var(--bone) 20%, transparent);
  --line-strong: color-mix(in srgb, var(--bone) 42%, transparent);

  /* Tipografía — la fuente del logo en toda la página */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1600px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 11vw, 150px);
  --frame: clamp(14px, 2.4vw, 30px);
  /* inset del marco de página */
  --motion: 1;
  /* 1 = animaciones activas, 0 = apagadas (Tweak) */
  --nav-h: clamp(80px, 7vw, 100px);
  /* alto de la barra de navegación */
  --nav-pad: clamp(18px, 2.8vw, 36px);
  /* aire sobre la barra (flotante) */

  /* Curvas de movimiento unificadas (suavizado de nav + reveals + títulos) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

::selection {
  background: var(--bone);
  color: var(--bg);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.04;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Etiqueta micro (mono) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.eyebrow.center {
  justify-content: center;
}

/* Índice editorial de sección: ( 01 / POR QUÉ YO ) */
.eyebrow .sec-no {
  font-style: normal;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow .sec-no::after {
  content: "/";
  color: var(--ink-faint);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.lead {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  max-width: 56ch;
  text-wrap: pretty;
  font-weight: 400;
}

/* ============ Botones (texto con subrayado) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0 0 3px 0;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .12s;
  white-space: nowrap;
  position: relative;
  box-shadow: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.btn-primary:hover {
  background: transparent;
  color: var(--bone);
  border-bottom-color: var(--bone);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-bottom-color: var(--line);
}

.btn-ghost:hover {
  background: transparent;
  color: var(--bone);
  border-bottom-color: var(--bone);
}

.btn svg,
.btn .ico {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-soft);
  transition: transform .2s ease, color .2s ease;
}

.btn:hover svg,
.btn:hover .ico {
  color: var(--bone);
}

.btn .arrow {
  transition: transform .2s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-top: var(--nav-pad);
  transition: border-color .45s var(--ease-out), background .45s var(--ease-out), backdrop-filter .45s var(--ease-out), padding .5s var(--ease-out);
}

.nav .shell {
  max-width: 1280px;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.nav.menu-open {
  background: var(--bg);
}

/* Hairline de progreso de lectura bajo la nav */
.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 51;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease-out), transform .12s ease-out;
}

.nav.scrolled .nav-progress {
  opacity: 1;
}

.nav-cta-link {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid var(--nav-underline);
  transition: color .2s ease, border-color .2s ease;
}

.nav-cta-link:hover {
  color: var(--nav-underline);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  height: var(--nav-h);
  transition: height .5s var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 33px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-mark .dot {
  color: color-mix(in srgb, var(--bone) 55%, transparent);
  font-weight: 400;
}

.brand-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-sub .bs-role {
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}

@media (max-width: 520px) {
  .brand-sub {
    font-size: 9.5px;
    padding-left: 11px;
    gap: 1px;
  }
}

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 3vw, 48px);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s;
  position: relative;
  padding: 10px 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  flex: none;
}

.lang {
  display: inline-flex;
  gap: 14px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-mono);
}

.lang button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 6px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.lang button:hover {
  color: var(--ink);
}

.lang button.on {
  color: var(--ink);
  border-bottom-color: var(--nav-underline);
}

.nav-cta {
  padding: 12px 22px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  padding: 0;
  border-radius: 0;
}

.nav-toggle:hover {
  border-color: var(--bone);
  background: color-mix(in srgb, var(--bone) 8%, transparent);
}

.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: calc(100svh - var(--nav-h));
  background: var(--bg);
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 40px var(--gutter);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.3, .8, .4, 1);
  border-top: 1px solid var(--line);
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-drawer-links > a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  transition: padding-left .2s;
}

.nav-drawer-links > a:hover {
  padding-left: 8px;
  color: var(--bone);
}

.drawer-arrow {
  opacity: 0.6;
  transition: transform .2s;
}

.nav-drawer-links > a:hover .drawer-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.nav-drawer-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
}

.nav-drawer-bottom .lang {
  align-self: flex-start;
}

.nav-drawer-bottom .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 940px) {

  .nav-links,
  .nav-right .lang,
  .nav-cta-link {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-right {
    flex: 1;
    justify-content: flex-end;
  }
}

/* ============ Marco de página + crosshairs ============ */
.pageframe {
  position: absolute;
  inset: var(--frame);
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 2;
}

.crosshair {
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  z-index: 3;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--line-strong);
}

.crosshair::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.crosshair::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-50%);
}

.crosshair.tl {
  left: calc(var(--frame) - 6px);
  top: calc(var(--frame) - 6px);
}

.crosshair.tr {
  right: calc(var(--frame) - 6px);
  top: calc(var(--frame) - 6px);
}

.crosshair.bl {
  left: calc(var(--frame) - 6px);
  bottom: calc(var(--frame) - 6px);
}

.crosshair.br {
  right: calc(var(--frame) - 6px);
  bottom: calc(var(--frame) - 6px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  /* La navbar es transparente y el hero se extiende bajo ella (margin-top negativo):
     este es el ÚNICO lienzo de fondo de navbar + hero. */
  margin-top: calc(-1 * (var(--nav-h) + var(--nav-pad)));
  padding-top: calc(var(--nav-h) + var(--nav-pad));
  /* Lienzo atmosférico único navbar + hero. Foco de luz cálido fuera de la
     esquina superior derecha que se derrama y cae hacia índigo en la base.
     Capas suaves (sin círculos visibles) sobre base índigo. */
  background:
    /* halo claro principal (fuente de luz, esquina superior derecha) */
    radial-gradient(132% 118% at 118% -12%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(242, 233, 228, 0.55) 18%,
      rgba(201, 173, 167, 0.28) 38%,
      rgba(154, 140, 152, 0.14) 58%,
      rgba(242, 233, 228, 0) 82%),
    /* tinte lila secundario, más amplio (profundidad) */
    radial-gradient(120% 125% at 88% -22%,
      rgba(154, 140, 152, 0.18) 0%,
      rgba(201, 173, 167, 0.10) 40%,
      rgba(242, 233, 228, 0) 74%),
    /* leve sombreado cálido hacia la esquina inferior izquierda */
    radial-gradient(115% 120% at -12% 118%,
      rgba(201, 173, 167, 0.40) 0%,
      rgba(242, 233, 228, 0) 62%),
    var(--parchment);
  background-repeat: no-repeat;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Grano de película muy sutil: rompe los degradados y da textura cinematográfica */
.hero::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='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

html.motion-off .hero::after {
  opacity: 0.035;
}

/* El contenido del hero se desvanece suavemente al hacer scroll */
@supports (animation-timeline: scroll()) {
  .hero-inner {
    animation: heroFade linear both;
    animation-timeline: scroll(root);
    animation-range: 0 85vh;
  }

  html.motion-off .hero-inner {
    animation: none;
  }
}

@keyframes heroFade {
  to {
    opacity: 0.4;
  }
}

.hero-vlines {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-top: clamp(24px, 3.5vw, 48px);
  padding-bottom: clamp(48px, 7vw, 100px);
  padding-left: clamp(8px, 1.2vw, 18px);
}

.hero-main {
  grid-column: 1;
  align-self: end;
  padding-left: clamp(16px, 2.5vw, 40px);
}

.hero-visual {
  position: relative;
  grid-column: 2;
  align-self: start;
  width: calc(100% + var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}

.hero-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 12;
  max-height: 70vh;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 1.4s ease;
}

/* Badge de métrica flotante (sobre la esquina sup-izq de la imagen) */
.hero-stat-card {
  position: absolute;
  z-index: 6;
  top: clamp(28px, 5vh, 56px);
  left: calc(-1 * clamp(36px, 4vw, 80px));
  background: var(--bone);
  color: var(--bg-deep);
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5);
}

.hero-stat-card .stat-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-card .stat-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: color-mix(in srgb, var(--bg-deep) 78%, transparent);
}

.hero-shot-bar {
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.hero-shot-dots {
  display: flex;
  gap: 7px;
}

.hero-shot-dots i {
  width: 8px;
  height: 8px;
  background: var(--line-strong);
}

.hero-shot-url {
  flex: 1;
  height: 22px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.hero-shot-url svg {
  width: 11px;
  height: 11px;
  color: var(--ink-soft);
}

.hero-shot-media {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.hero-shot-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-shot-media image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: clamp(30px, 5vw, 44px);
  }

  .hero-main,
  .hero-visual {
    grid-column: 1;
  }

  .hero-shot {
    aspect-ratio: 16 / 11;
    max-height: 52vh;
  }

  .hero-stat-card {
    top: auto;
    left: 0;
    bottom: -22px;
    padding: 14px 18px;
    max-width: 200px;
  }
}

/* Meta del hero: estado de disponibilidad + coordenadas */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.2vw, 40px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  padding: 9px 14px;
}

.hero-status .pulse {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--bone);
  animation: ping 2.6s ease-out infinite;
}

html.motion-off .hero-status .pulse {
  animation: none;
}

.hero-coord {
  color: var(--ink-faint);
}

@media (max-width: 720px) {
  .hero-coord {
    display: none;
  }
}

/* Indicador de scroll — gota que cae por la línea */
.hero-scrollcue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(54px + 56px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cue-txt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cue-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--line);
  overflow: hidden;
}

.cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--bone);
  animation: cueDrop 2s ease-in-out infinite;
}

@keyframes cueDrop {
  0% {
    top: -40%;
  }

  65%,
  100% {
    top: 110%;
  }
}

html.motion-off .cue-line::after {
  animation: none;
}

@media (max-width: 980px),
(max-height: 700px) {
  .hero-scrollcue {
    display: none;
  }
}

.hero h1 {
  font-size: clamp(48px, 6.2vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: clamp(40px, 9vw, 78px);
    max-width: 100%;
  }
}

.hero .title-part-1 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.88em;
  letter-spacing: -0.03em;
}

.hero .title-part-2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--bone);
}

.hero-sweep {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: clamp(22px, 3vw, 40px) 0;
  overflow: hidden;
}

.hero-sweep::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bone), transparent);
  animation: sweepX 5s linear infinite;
}

@keyframes sweepX {
  from {
    transform: translateX(-180px);
  }

  to {
    transform: translateX(min(100vw, var(--maxw)));
  }
}

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero-lead {
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
  flex-wrap: wrap;
}

.hero-ctas .btn-primary {
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 3px 0;
}

.hero-ctas .btn-primary:hover {
  background: transparent;
  border-bottom-color: var(--bone);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color .2s ease, color .2s ease;
}

.hero-link:hover {
  border-color: var(--bone);
  color: var(--bone);
}

.hero-link svg {
  color: var(--ink-soft);
  transition: transform .2s ease;
}

.hero-link:hover svg {
  transform: translate(2px, -2px);
  color: var(--bone);
}

@media (max-width: 620px) {
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Ticker / marquee (línea en movimiento) */
.ticker {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  height: 54px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  flex: none;
  align-items: center;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

.ticker-track span::after {
  content: "✳";
  color: var(--ink-faint);
  font-size: 11px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Strip de logos (empresas afines) — reutiliza el marquee del ticker */
.ticker--logos {
  height: clamp(86px, 9vw, 104px);
}

.ticker--logos .ticker-track {
  animation-duration: 40s;
}

.logo-cell {
  padding: 0 clamp(22px, 3vw, 46px);
  display: inline-flex;
  align-items: center;
}

/* Sin el asterisco separador del ticker de texto */
.logo-cell::after {
  content: none !important;
}

.logo-cell image-slot {
  width: clamp(112px, 12vw, 150px);
  height: clamp(40px, 4.4vw, 52px);
  filter: grayscale(1);
  opacity: 0.58;
  transition: opacity .35s ease, filter .35s ease;
}

.logo-cell image-slot:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Pausa el desplazamiento al pasar el cursor para poder ver/soltar un logo */
.ticker--logos:hover .ticker-track {
  animation-play-state: paused;
}

/* ============ Secciones genéricas ============ */
section.band {
  padding-block: var(--section-y);
  position: relative;
}

.band.bg-2 {
  background: var(--bg-2);
}

.band.bg-deep {
  background: var(--bg-deep);
}

/* Sección invertida — blanco hueso (intercala con el cerúleo) */
.band.invert {
  background: var(--bone);
  --ink: var(--bg-deep);
  --ink-soft: color-mix(in srgb, var(--bg-deep) 74%, transparent);
  --ink-faint: color-mix(in srgb, var(--bg-deep) 46%, transparent);
  --line: color-mix(in srgb, var(--bg-deep) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--bg-deep) 34%, transparent);
}

.band.invert .value:hover,
.band.invert .svc:hover {
  background: color-mix(in srgb, var(--bg-deep) 5%, transparent);
}

.band.invert .value li::before,
.band.invert .svc li::before {
  background: var(--bg-deep);
}

.band.invert .btn-primary {
  background: transparent;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 3px 0;
}

.band.invert .btn-primary:hover {
  background: transparent;
  color: var(--bg-deep);
  border-bottom-color: var(--bg-deep);
}

.band.invert .btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0 0 3px 0;
}

.band.invert .btn-ghost:hover {
  background: transparent;
  color: var(--bg-deep);
  border-bottom-color: var(--bg-deep);
}

.band.invert ::selection {
  background: var(--bg-deep);
  color: var(--bone);
}

.sec-head {
  max-width: 720px;
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(32px, 5vw, 62px);
  margin-top: 20px;
  letter-spacing: -0.015em;
}

/* Línea animada bajo títulos de sección — mismo destello que el hero-sweep */
.sec-head h2::after,
.showcase h2::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: clamp(20px, 3vw, 34px);
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 44%, var(--bone) 50%, var(--line) 56%, var(--line) 100%);
  background-size: 300% 100%;
  animation: sweepBg 5s linear infinite;
}

/* Variante para secciones invertidas (fondo hueso, línea oscura) */
.band.invert .sec-head h2::after,
.audit .sec-head h2::after {
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--bg-deep) 22%, transparent) 0%,
      color-mix(in srgb, var(--bg-deep) 22%, transparent) 44%,
      var(--bg-deep) 50%,
      color-mix(in srgb, var(--bg-deep) 22%, transparent) 56%,
      color-mix(in srgb, var(--bg-deep) 22%, transparent) 100%);
  background-size: 300% 100%;
}

@keyframes sweepBg {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0% 0;
  }
}

html.motion-off .sec-head h2::after,
html.motion-off .showcase h2::after {
  animation: none;
}

/* ===== Mask-reveal de títulos de sección: el texto sube desde detrás de
   la línea inferior, que se dibuja al entrar en pantalla ===== */
.reveal-title .title-clip {
  display: block;
  overflow: hidden;
  /* aire para que descendentes (g, y, p) no se recorten, sin mover el layout */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.reveal-title .title-rise-inner {
  display: block;
  will-change: transform;
}

/* Estado animado sólo cuando el JS de reveal está activo */
html.reveal-on .reveal-title .title-rise-inner {
  transform: translateY(112%);
  transition: transform .9s var(--ease-out);
}

html.reveal-on .reveal-title.in .title-rise-inner {
  transform: translateY(0);
}

/* La línea inferior (::after en .sec-head) se dibuja de izquierda a derecha */
html.reveal-on .sec-head h2.reveal-title::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out) .12s;
}

html.reveal-on .sec-head h2.reveal-title.in::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal-title .title-rise-inner { transform: none; transition: none; }
  html.reveal-on .sec-head h2.reveal-title::after { transform: none; }
}

.sec-head .lead {
  margin-top: 22px;
}

.sec-head.center .lead {
  margin-inline: auto;
}

.sec-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

/* ============ Por qué — secuencia editorial objeción → respuesta ============ */
.why-list {
  margin-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.why-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(30px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: padding-left .35s ease;
}

.why-row:hover {
  padding-left: clamp(0px, 1vw, 14px);
}

.why-row-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.why-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .85;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
  letter-spacing: -0.02em;
}

.why-fear {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 25px);
  line-height: 1.32;
  color: var(--ink);
}

.why-row-body h3 {
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.14;
}

.why-row-body p {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  margin-top: 14px;
  max-width: 52ch;
}

@media (max-width: 820px) {
  .why-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ============ Servicios — split editorial (aside fija + lista) ============ */
.svc-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}

.svc-aside {
  position: sticky;
  top: calc(var(--nav-h) + clamp(24px, 4vh, 56px));
  display: flex;
  flex-direction: column;
}

.svc-aside h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  margin-top: 20px;
  letter-spacing: -0.015em;
}

.svc-aside .lead {
  margin-top: 22px;
}

.svc-aside-cta {
  align-self: flex-start;
  margin-top: clamp(26px, 3vw, 38px);
}

.svc-list {
  border-top: 1px solid var(--line);
}

.svc-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: clamp(14px, 1.8vw, 26px);
  align-items: start;
  padding: clamp(24px, 3vw, 40px) 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: inherit;
  text-align: left;
  transition: padding-left .3s ease;
}

.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--bone);
  transition: width .3s ease;
}

.svc-row:hover {
  padding-left: 22px;
}

.svc-row:hover::before {
  width: 3px;
}

.svc-row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  padding-top: 9px;
  min-width: 22px;
}

.svc-row-ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background .25s, color .25s;
}

.svc-row:hover .svc-row-ico {
  background: var(--bone);
  color: var(--bg-deep);
}

.svc-row-ico svg {
  width: 20px;
  height: 20px;
}

.svc-row-main {
  min-width: 0;
}

.svc-row-main h3 {
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.12;
}

.svc-row-main>p {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 60ch;
}

.svc-row-tags {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.svc-row-tags li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.svc-row-tags li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--bone);
  opacity: .55;
}

.svc-row-go {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background .25s, color .25s;
}

.svc-row:hover .svc-row-go {
  background: var(--bone);
  color: var(--bg-deep);
}

.svc-row-go svg {
  transition: transform .25s;
}

.svc-row:hover .svc-row-go svg {
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .svc-split {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 44px);
  }

  .svc-aside {
    position: static;
  }
}

@media (max-width: 600px) {
  .svc-row {
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
  }

  .svc-row-num {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
    align-self: center;
  }

  .svc-row-ico {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .svc-row-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .svc-row-go {
    display: none;
  }
}

/* ============ Desarrollo web — sala de galería (pin + scroll horizontal) + lightbox ============ */
.gfilters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 44px;
  border-bottom: 1px solid var(--line);
}

.gfilter {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 0 2px 16px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  transition: color .18s;
}

.gfilter .c {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.gfilter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.gfilter:hover {
  color: var(--ink);
}

.gfilter.on {
  color: var(--ink);
}

.gfilter.on .c {
  color: var(--bone);
}

.gfilter.on::after {
  transform: scaleX(1);
}

/* La sección se estira (100vh + recorrido del muro) y la sala queda pineada */
.gwall {
  padding-block: 0;
}

/* Capa WebGL (Three.js). Oculta por defecto; el JS añade .gl-on al activar.
   El track DOM permanece (opacity:0) como capa accesible: foco, teclado, lector. */
.gwall-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 3;
}

.gwall-stage.gl-on .gwall-gl {
  display: block;
}

.gwall-stage.gl-on .gwall-track {
  opacity: 0;
}

/* "La pieza se vuelve un mundo": al enfocar, el lienzo ocupa toda la pantalla */
.gwall.focused .gwall-gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 190;
  background: var(--bg-deep);
}

/* Case-study sobre el lienzo WebGL (reemplaza al lightbox en modo GL) */
.gw-case {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s;
}

.gw-case.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* El case-study flota a pantalla completa sobre fotografías con un scrim oscuro:
   su texto se mantiene claro (pergamino) aunque el tema global sea claro. */
.gw-case {
  --ink: var(--parchment);
  --ink-soft: color-mix(in srgb, var(--parchment) 72%, transparent);
  --ink-faint: color-mix(in srgb, var(--parchment) 46%, transparent);
  --line: color-mix(in srgb, var(--parchment) 22%, transparent);
  --line-strong: color-mix(in srgb, var(--parchment) 42%, transparent);
}

.gw-case .gw-case-type {
  color: var(--parchment);
}

.gw-case-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 28, 38, .30) 0%, transparent 24%, transparent 46%, rgba(8, 28, 38, .80) 100%);
}

.gw-case-close {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 40px);
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-deep) 42%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .25s;
}

.gw-case-close:hover {
  background: var(--bone);
  color: var(--bg-deep);
  transform: rotate(90deg);
}

.gw-case-body {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(40px, 7vh, 88px);
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gw-case-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.gw-case-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  margin-top: 10px;
}

.gw-case-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.gw-case-body>p {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  max-width: 56ch;
  margin-top: 16px;
}

.gw-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.gw-case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 5px 11px;
}

.gw-case-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(22px, 3vw, 32px);
  flex-wrap: wrap;
}

.gw-case-actions .btn-primary {
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 3px 0;
}

.gw-case-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.gw-case-arrows {
  display: flex;
  margin-left: auto;
}

.gw-case-arrows button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}

.gw-case-arrows button:hover {
  background: var(--bone);
  color: var(--bg-deep);
}

.gw-case-arrows button+button {
  border-left: 0;
}

.gw-case.open .gw-case-body>* {
  opacity: 0;
}

/* anime revela en cascada */
@media (max-width: 600px) {
  .gw-case-arrows {
    margin-left: 0;
  }
}

.gwall-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: clamp(64px, 9vh, 112px);
  padding-bottom: clamp(20px, 4vh, 44px);
}

.gwall .sec-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin-top: 14px;
}

.gwall .sec-head h2::after {
  margin-top: clamp(14px, 2vh, 24px);
}

.gwall .sec-head .lead {
  font-size: clamp(14px, 1.1vw, 16px);
  margin-top: 12px;
  max-width: 60ch;
}

.gwall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.gwall-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: none;
  padding-bottom: 4px;
}

.gwall-room {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 7px 12px;
  white-space: nowrap;
}

.gwall-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.gwall-hint svg {
  animation: hintNudge 1.8s ease-in-out infinite;
}

@keyframes hintNudge {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

html.motion-off .gwall-hint svg {
  animation: none;
}

.gwall-bar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.gwall .gfilters {
  margin-top: 14px;
  flex: 1;
}

.gwall-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding-bottom: 14px;
}

.gwall-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.gwall-bar {
  display: block;
  width: clamp(90px, 12vw, 180px);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.gwall-bar i {
  display: block;
  height: 100%;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
}

/* El muro: viewport horizontal + track que se traduce con el scroll vertical */
.gwall-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gwall-stage::after {
  /* línea de piso de la sala */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(8px, 3vh, 30px);
  height: 1px;
  background: var(--line);
}

.gwall-track {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 90px);
  padding-inline: var(--gutter);
  padding-top: 14px;
  /* deja respirar la etiqueta "Pieza NN" sobre el marco */
  will-change: transform;
}

/* Pieza: marco de museo + placa */
.gw-piece {
  flex: none;
  width: clamp(280px, 62vh, 540px);
  margin: 0;
  cursor: pointer;
  outline-offset: 6px;
}

.gw-piece.hide {
  display: none;
}

.gw-piece:nth-child(even) {
  transform: translateY(clamp(12px, 3vh, 32px));
}

.gw-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: clamp(10px, 1.1vw, 16px);
  background: color-mix(in srgb, var(--bone) 4%, transparent);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, .65);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .3s, box-shadow .35s;
}

.gw-piece:hover .gw-frame,
.gw-piece:focus-visible .gw-frame {
  transform: translateY(-8px);
  border-color: var(--bone);
  box-shadow: 0 48px 90px -44px rgba(0, 0, 0, .8);
}

.gw-no {
  position: absolute;
  top: -9px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-2);
  padding: 0 8px;
}

.gw-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
}

.gw-art image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gw-plaque {
  margin-top: clamp(12px, 1.6vh, 18px);
  padding-left: 14px;
  border-left: 2px solid var(--bone);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gw-piece-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.gw-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink);
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gw-title svg {
  flex: none;
  opacity: .6;
  transition: transform .25s, opacity .25s;
}

.gw-piece:hover .gw-title svg {
  transform: translate(3px, -3px);
  opacity: 1;
}

.gw-tags {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* Revelado cinematográfico — clip-path slice + blur→foco + número kinético.
   La clase .cine la añade el JS; sin JS / sin anime todo queda visible. */
.gw-piece {
  position: relative;
}

.gwall .gw-frame {
  z-index: 1;
}

.gw-index {
  position: absolute;
  top: -.52em;
  left: -.16em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(88px, 11vw, 188px);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--bone) 17%, transparent);
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.gwall.cine .gw-art image-slot {
  clip-path: inset(0 0 100% 0);
  filter: blur(16px);
  transform: scale(1.06);
  transition: clip-path .95s cubic-bezier(.16, 1, .3, 1), filter .9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.gwall.cine .gw-piece.in-view .gw-art image-slot {
  clip-path: inset(0 0 0 0);
  filter: blur(0);
  transform: scale(1);
}

.gwall.cine .gw-plaque>* {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .gwall.cine .gw-art image-slot {
    clip-path: none;
    filter: none;
    transform: none;
    transition: none;
  }

  .gwall.cine .gw-plaque>* {
    opacity: 1;
  }
}

/* Cierre de sala — CTA */
.gw-end {
  flex: none;
  width: clamp(260px, 30vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-right: var(--gutter);
}

.gw-end h3 {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.08;
}

/* Pantallas bajas: compactar cabecera para que el muro respire */
@media (max-height: 720px) {
  .gwall .sec-head .lead {
    display: none;
  }

  .gwall-sticky {
    padding-top: clamp(56px, 8vh, 80px);
  }
}

/* Táctil / pantallas chicas / reduced-motion: sin pin, scroll horizontal nativo con snap */
@media (max-width: 880px),
(pointer: coarse),
(prefers-reduced-motion: reduce) {
  .gwall {
    padding-block: var(--section-y);
  }

  .gwall-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0;
    display: block;
  }

  .gwall .sec-head .lead {
    display: block;
  }

  .gwall-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gwall-meta {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-bottom: 0;
  }

  .gwall-hint {
    display: none;
  }

  /* sin pin, el muro se desliza con swipe */
  .gwall-progress {
    display: none;
  }

  .gwall-stage {
    display: block;
    margin-top: 28px;
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .gwall-stage::after {
    display: none;
  }

  .gwall-track {
    padding-inline: var(--gutter);
  }

  .gw-piece {
    width: min(78vw, 420px);
    scroll-snap-align: center;
  }

  .gw-piece:nth-child(even) {
    transform: none;
  }

  .gw-end {
    scroll-snap-align: center;
  }
}

/* Lightbox / pop-up */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg-deep) 78%, #000);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lb-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  transform: translateY(18px) scale(.985);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), opacity .35s;
}

.lightbox.open .lb-panel {
  transform: none;
  opacity: 1;
}

.lb-media {
  position: relative;
  border-right: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--bg-deep);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.lb-bar {
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.lb-dots {
  display: flex;
  gap: 7px;
}

.lb-dots i {
  width: 8px;
  height: 8px;
  background: var(--line-strong);
}

.lb-url {
  flex: 1;
  height: 22px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.lb-url svg {
  width: 11px;
  height: 11px;
  color: var(--ink-soft);
}

.lb-slot-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.lb-slide {
  position: absolute;
  inset: 0;
  animation: lbIn .45s ease;
}

.lb-slide image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: translateX(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.lb-info {
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}

.lb-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}

.lb-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  margin-top: 22px;
}

.lb-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  margin-top: 12px;
  line-height: 1.06;
}

.lb-info p {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 16px;
}

.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.lb-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
}

.lb-nav {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lb-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}

.lb-arrows {
  display: flex;
  gap: 0;
}

.lb-arrows button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}

.lb-arrows button:hover {
  background: var(--bone);
  color: var(--bg);
}

.lb-arrows button+button {
  border-left: 0;
}

.lb-arrows svg {
  width: 18px;
  height: 18px;
}

.lb-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  width: 46px;
  height: 46px;
  background: var(--bone);
  color: var(--bg);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: transform .2s;
}

.lb-close:hover {
  transform: translate(50%, -50%) rotate(90deg);
}

.lb-close svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .lb-panel {
    grid-template-columns: 1fr;
    max-height: 100%;
    overflow: auto;
  }

  .lb-media {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .lb-close {
    transform: translate(0, -50%);
    right: 8px;
  }

  .lb-close:hover {
    transform: translate(0, -50%) rotate(90deg);
  }
}

/* ============ Auditoría — invertido (blanco hueso) ============ */
.audit {
  background: var(--bone);
  color: var(--bg-deep);
  overflow: clip;
}

.audit .shell {
  position: relative;
}

/* Crosshairs oscuros (eco del hero) sobre el fondo claro */
.audit .crosshair::before,
.audit .crosshair::after {
  background: color-mix(in srgb, var(--bg-deep) 34%, transparent);
}

.audit .eyebrow {
  color: color-mix(in srgb, var(--bg-deep) 60%, transparent);
}

.audit .eyebrow::before {
  background: color-mix(in srgb, var(--bg-deep) 40%, transparent);
}

.audit .eyebrow .sec-no {
  color: var(--bg-deep);
}

.audit .eyebrow .sec-no::after {
  color: color-mix(in srgb, var(--bg-deep) 40%, transparent);
}

.audit h2 {
  color: var(--bg-deep);
  font-size: clamp(32px, 4.6vw, 58px);
  margin-top: 18px;
  letter-spacing: -0.015em;
}

.audit p {
  font-family: var(--font-sans);
  color: color-mix(in srgb, var(--bg-deep) 78%, transparent);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 20px;
  max-width: 46ch;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.audit-pitch {
  position: relative;
  z-index: 1;
}

.audit-free {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: clamp(22px, 3vw, 38px);
  font-family: var(--font-mono);
}

.audit-free .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 13vw, 184px);
  line-height: .8;
  color: var(--bg-deep);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: flex-start;
  will-change: transform;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.audit-free .big .cur {
  font-size: .42em;
  margin-top: .12em;
  color: color-mix(in srgb, var(--bg-deep) 50%, transparent);
}

.audit-free .big .zero {
  font-variant-numeric: tabular-nums;
}

.audit-free .sm {
  font-size: 12px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--bg-deep) 62%, transparent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 15ch;
  padding-bottom: .55em;
}

.audit .btn-primary {
  background: transparent;
  color: var(--bg-deep);
  margin-top: 30px;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--bg-deep) 42%, transparent);
  padding: 0 0 3px 0;
}

.audit .btn-primary:hover {
  background: transparent;
  color: var(--bg-deep);
  border-bottom-color: var(--bg-deep);
}

.audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--bg-deep) 22%, transparent);
}

.audit-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg-deep) 22%, transparent);
  font-family: var(--font-sans);
  font-size: 15px;
  color: color-mix(in srgb, var(--bg-deep) 88%, transparent);
}

.audit-list .chk {
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--bg-deep);
  display: grid;
  place-items: center;
}

.audit-list .chk svg {
  width: 13px;
  height: 13px;
  color: var(--bg-deep);
}

/* Columna de diagnóstico — el escáner barre la lista al entrar en vista */
.audit-diag {
  position: relative;
}

.audit-diag-tag {
  position: absolute;
  top: -28px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg-deep) 45%, transparent);
}

.audit-diag-tag::before {
  content: "▮ ";
  color: color-mix(in srgb, var(--bg-deep) 60%, transparent);
}

.audit-scan {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 0;
  height: 70px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-deep) 13%, transparent) 70%, color-mix(in srgb, var(--bg-deep) 28%, transparent));
  border-bottom: 1px solid color-mix(in srgb, var(--bg-deep) 60%, transparent);
}

/* Estados iniciales SÓLO cuando se animará (la clase .arm la añade el JS) */
.audit.arm .audit-list li {
  opacity: 0;
}

.audit.arm .audit-free .big {
  opacity: 0;
}

@media (max-width: 820px) {
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .audit-diag {
    margin-top: 8px;
  }

  .audit-diag-tag {
    position: static;
    display: block;
    margin-bottom: 14px;
  }
}

/* ============ Contacto ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 90px);
  margin-top: 56px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.contact-channel {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s, background .25s;
}

.contact-channel:hover {
  padding-left: 16px;
  background: color-mix(in srgb, var(--bone) 5%, transparent);
}

.contact-channel .ci {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}

.contact-channel .ci svg {
  width: 20px;
  height: 20px;
}

.contact-channel .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-channel .val {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
}

.form {
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 44px);
  background: color-mix(in srgb, var(--bone) 4%, transparent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px 2px;
  background: transparent;
  transition: border-color .18s;
  width: 100%;
}

.field select {
  color: var(--ink);
}

.field select option {
  color: #122;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--bone);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 3px 0;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 16px;
}

.form-ok {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--bone);
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  min-height: 18px;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-deep);
  color: var(--ink-soft);
  padding-block: 70px 44px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: clip;
}

.footer .shell {
  position: relative;
  z-index: 1;
}

/* Marca gigante de cierre, recortada al borde inferior */
.footer-mega {
  position: absolute;
  left: 50%;
  bottom: -0.15em;
  transform: translateX(-50%);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-size: clamp(120px, 26vw, 420px);
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--bone) 12%, transparent);
}

.footer-mega span {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--bone) 6%, transparent);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer .brand-mark {
  color: var(--ink);
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--ink);
  max-width: 18ch;
  margin-top: 22px;
  line-height: 1.2;
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 11px;
  transition: color .15s, gap .2s;
  position: relative;
}

.footer-col a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--bone);
  transition: width .25s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-col a:hover::before {
  width: 14px;
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.footer-built {
  margin-left: auto;
}

.totop {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background .2s, color .2s, transform .25s;
}

.totop:hover {
  background: var(--bone);
  color: var(--bg-deep);
  transform: translateY(-3px);
}

.totop svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .footer-built {
    margin-left: 0;
  }
}

/* En móvil el FAB de chat flota sobre la base; reservamos espacio para que no tape el botón "volver arriba" */
@media (max-width: 820px) {
  .footer {
    padding-bottom: 96px;
  }
}

/* ============ Reveal ============ */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.reveal-on [data-reveal] {
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

html.reveal-on [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(26px);
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal]:not(.in) {
    opacity: 1;
    transform: none;
  }

  .hero-sweep::after,
  .ticker-track,
  .hero-inner,
  .sec-head h2::after,
  .showcase h2::after,
  .show-card::after {
    animation: none !important;
  }
}

html.motion-off .ticker-track {
  animation: none !important;
}

html.motion-off .hero-sweep::after {
  animation: none !important;
  display: none;
}

/* ============ Cursor flecha ============ */
/* ============ Custom Cursor (Dot & Ring) ============ */
html.cursor-custom-active,
html.cursor-custom-active * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  /* Centrado con la propiedad translate: se compone con el transform que fija JS,
     así los cambios de tamaño no necesitan ajustar márgenes por estado */
  translate: -50% -50%;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cursor-dot.show,
.cursor-ring.show {
  opacity: 1;
}

/* Punto central — blanco con mix-blend-mode para contraste automático */
.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  mix-blend-mode: difference;
}

/* Anillo exterior — línea fina con mix-blend-mode para adaptarse a fondos claros y oscuros */
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, 0.05);
  mix-blend-mode: difference;
}

/* Hover sobre enlaces/botones: el punto se disuelve y el anillo respira */
.cursor-dot.hot {
  width: 0;
  height: 0;
  opacity: 0;
}

.cursor-ring.hot {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Click: el anillo se contrae y el punto crece levemente */
.cursor-dot.down {
  width: 9px;
  height: 9px;
}

.cursor-ring.down {
  width: 26px;
  height: 26px;
}

@media (hover: none),
(pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ============ Sede — contorno de Baja California ============ */
.sede {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px 4px 6px;
}

.sede-map {
  flex: none;
  position: relative;
  width: clamp(170px, 18vw, 240px);
}

.sede-img {
  width: 100%;
  aspect-ratio: 1076 / 1348;
  display: block;
  background-color: var(--dusty-grape);
  -webkit-mask-image: url("assets/baja-line.png");
  mask-image: url("assets/baja-line.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color 0.3s ease;
  opacity: 0.8;
}

.sede-marker {
  position: absolute;
  left: 17.5%;
  top: 6.5%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  animation: ping 2.6s ease-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  }

  70%,
  100% {
    box-shadow: 0 0 0 18px transparent;
  }
}

.sede-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sede-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.sede-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  line-height: 1.1;
}

.sede-note {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34ch;
}

html.motion-off .sede-marker {
  animation: none;
}

/* ============ Hero Floating Island Nav ============ */
.hero-island-nav {
  position: absolute;
  left: calc(var(--frame) + 24px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-deep) 85%, transparent);
  border: 1px solid var(--line-strong);
  padding: 16px 12px;
  border-radius: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.hero-island-nav .island-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}

.hero-island-nav .island-btn.btn-primary {
  background: var(--bone);
  color: var(--bg-deep);
}

.hero-island-nav .island-btn.btn-primary:hover {
  background: var(--bone-2);
  transform: scale(1.08);
}

.hero-island-nav .island-btn.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.hero-island-nav .island-btn.btn-ghost:hover {
  border-color: var(--bone);
  background: color-mix(in srgb, var(--bone) 8%, transparent);
  transform: scale(1.08);
}

.hero-island-nav .island-btn .tooltip {
  position: absolute;
  left: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  padding: 8px 16px;
  border-radius: 0;
  font-size: 13px;
  font-family: var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-island-nav .island-btn:hover .tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 980px) {
  .hero-island-nav {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 12px;
    gap: 16px;
  }

  .hero-island-nav .island-btn {
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 14px 28px;
  }

  .hero-island-nav .island-btn.btn-primary {
    border-radius: 0;
  }

  .hero-island-nav .island-btn.btn-ghost {
    border-radius: 0;
  }

  .hero-island-nav .island-btn .tooltip {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    margin-left: 8px;
    font-size: 15px;
    font-family: inherit;
    font-weight: inherit;
    box-shadow: none;
  }

  .hero-island-nav .island-btn:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 620px) {
  .hero-island-nav {
    flex-direction: column;
    width: 100%;
  }

  .hero-island-nav .island-btn {
    width: 100%;
  }
}

/* ============ ÍNDICE WEB — tarjetas estilo Showcase (preview + click → portafolio) ============ */
.web-index {
  position: relative;
  background: var(--bg);
  padding-block: var(--section-y);
  overflow-x: clip;
  border-top: 1px solid var(--line);
}
.wix-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 90px);
}
.wix-head .sec-head h2 { font-size: clamp(32px, 4.4vw, 62px); margin-top: 18px; }
.wix-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-faint);
  max-width: 36ch;
  margin-left: auto;
  align-self: end;
}

/* Lienzo de 3 tarjetas: laterales en flujo, central superpuesta */
.wix-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(60px, 9vw, 150px);
  row-gap: 24px;
  padding-block: clamp(20px, 4vw, 48px);
}
.wix-pos { position: relative; z-index: 10; }
.wix-pos.pos-c {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  z-index: 20;
  width: min(46%, 460px);
}

/* Tarjeta — enlace clicable con browser-bar + media + caption */
.wix-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.65);
  will-change: transform;
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), border-color .3s, box-shadow .35s;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.wix-card:hover {
  border-color: var(--bone);
  box-shadow: 0 56px 100px -40px rgba(0, 0, 0, 0.8);
}

/* Destello perimetral — idéntico al Showcase */
.wix-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 5;
  padding: 1px;
  background: conic-gradient(from var(--sweep-ang),
    transparent 0%, transparent 72%,
    var(--bone) 86%,
    transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderSweep 7s linear infinite;
}

.pos-c .wix-card::after { animation-delay: -2.3s; }
.pos-r .wix-card::after { animation-delay: -4.6s; }

html.motion-off .wix-card::after { animation: none; display: none; }
.wix-card .hero-shot-media { aspect-ratio: 4 / 3; flex: none; }
.pos-c .wix-card { box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.75); }

/* Pie de imagen de cada tarjeta */
.wix-cap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}
.wix-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}
.wix-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink);
  line-height: 1.18;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wix-title svg {
  flex: none;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: transform .25s ease, opacity .25s ease;
}
.wix-card:hover .wix-title svg {
  opacity: 1;
  transform: translate(0, 0);
}
.wix-company {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* CTA al pie */
.wix-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 6vw, 72px);
}
.wix-footer .btn-primary {
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 3px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .wix-head { grid-template-columns: 1fr; align-items: start; }
  .wix-note { margin-left: 0; margin-top: 12px; }
  .wix-stage { grid-template-columns: 1fr; gap: 24px; }
  .wix-pos.pos-c { position: relative; top: auto; left: auto; translate: none; width: 100%; z-index: 10; }
}

/* ============ ÍNDICE WEB — listado con preview flotante ============ */
.web-list-section {
  border-top: none; /* remove duplicate border-top if stacked directly below cards */
}

.wix-list {
  margin-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.wix-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(30px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: padding-left 0.35s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.wix-row:hover {
  padding-left: clamp(0px, 1.2vw, 16px);
}

.wix-row-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.wix-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.85;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
  letter-spacing: -0.02em;
}

.wix-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 25px);
  line-height: 1.32;
  color: var(--ink);
}

.wix-row-body h3 {
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.14;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s var(--ease-out), font-style 0.3s var(--ease-out), font-weight 0.3s var(--ease-out), font-size 0.3s var(--ease-out);
}

.wix-row-body h3 svg {
  opacity: 0.2;
  transform: translate(-3px, 3px);
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.2s;
}

.wix-row:hover .wix-row-body h3 {
  font-size: clamp(26px, 2.8vw, 36px); /* El tamaño más grande y fijo durante el hover */
  font-style: italic;
  font-weight: 500;
  color: var(--dusty-grape);
  animation: cycleFonts 4.8s infinite;
}

.wix-row:hover .wix-row-body h3 svg {
  opacity: 1;
  color: var(--dusty-grape);
  transform: translate(0px, 0px);
}

@keyframes cycleFonts {
  0%, 16.6% { font-family: Georgia, serif; }
  16.7%, 33.3% { font-family: Garamond, "EB Garamond", serif; }
  33.4%, 50% { font-family: "Times New Roman", Times, serif; }
  50.1%, 66.6% { font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif; }
  66.7%, 83.3% { font-family: "Bookman Old Style", Bookman, Garamond, serif; }
  83.4%, 100% { font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, serif; }
}

.wix-row-body p {
  margin-top: 14px;
  color: var(--ink-dim);
  max-width: 50ch;
}

/* Ventana flotante de preview */
.wix-hover-preview {
  position: fixed;
  width: 520px;
  height: 340px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 40px -10px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  opacity: 0;
  scale: 0.88;
  transform: translateY(12px);
  pointer-events: none;
  z-index: 1001;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              scale 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.wix-hover-preview.visible {
  opacity: 1;
  scale: 1;
  transform: translateY(0);
}

/* Hide the search/URL bar inside the preview */
.wix-hover-preview .hero-shot-bar {
  display: none;
}

/* Image styling in preview window */
.wix-hover-preview .hero-shot-media {
  flex: 1;
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}

/* ---- Bring-to-front backdrop blur overlay ---- */
.web-list-section .wix-backdrop-blur {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.web-list-section .wix-backdrop-blur.active {
  opacity: 1;
}


/* Responsividad para lista */
@media (max-width: 900px) {
  .wix-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 28px;
  }
  .wix-row-body p {
    margin-top: 8px;
  }
}

/* ============ SHOWCASE — tarjetas en movimiento ============ */
.showcase {
  position: relative;
  background: var(--bg);
  padding-block: var(--section-y);
  overflow-x: clip;
  border-top: 1px solid var(--line);
}

.showcase-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.showcase h2 {
  font-size: clamp(34px, 4.4vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase .title-part-1 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.88em;
  letter-spacing: -0.03em;
}

.showcase .title-part-2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--bone);
}

.showcase-micro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 38ch;
  margin-left: auto;
}

.showcase-para {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.showcase-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-faint);
}

/* Lienzo de coordenadas: laterales en flujo, central superpuesta */
.showcase-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(60px, 9vw, 150px);
  row-gap: 24px;
  padding-block: clamp(20px, 4vw, 48px);
}

.show-pos {
  position: relative;
  z-index: 10;
}

.show-pos.pos-c {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 20;
  width: min(46%, 460px);
}

.show-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.65);
  will-change: transform;
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Destello que recorre el contorno del marco — versión perimetral del hero-sweep */
@property --sweep-ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.show-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 5;
  padding: 1px;
  background: conic-gradient(from var(--sweep-ang),
      transparent 0%, transparent 72%,
      var(--bone) 86%,
      transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderSweep 7s linear infinite;
}

/* Desfase por tarjeta para que las luces no viajen sincronizadas */
.pos-c .show-card::after {
  animation-delay: -2.3s;
}

.pos-r .show-card::after {
  animation-delay: -4.6s;
}

@keyframes borderSweep {
  to {
    --sweep-ang: 360deg;
  }
}

html.motion-off .show-card::after {
  animation: none;
  display: none;
}

.show-card .hero-shot-media {
  aspect-ratio: 4 / 3;
  flex: none;
}

.pos-c .show-card {
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.75);
}

/* Pie de imagen de cada tarjeta */
.show-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.show-cap .cap-top {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.show-cap .cap-top em {
  font-style: normal;
  color: var(--ink-faint);
  margin-right: 6px;
}

.show-cap .cap-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .showcase-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .showcase-micro {
    margin-left: 0;
  }

  .showcase-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .show-pos.pos-c {
    position: relative;
    top: auto;
    left: auto;
    translate: none;
    width: 100%;
    z-index: 10;
  }
}

/* ============ Widget flotante de chat ============ */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone);
  color: var(--bg-deep);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, background 0.2s ease;
}

.chat-fab:hover {
  transform: translateY(-3px);
  background: var(--bone-2);
}

/* ============ Navegación: pestaña activa (ruta actual) ============ */
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-drawer-links > a.active {
  color: var(--bone);
}

/* ============ Página "Próximamente" (Industrias / Herramientas) ============ */
.coming-soon {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--nav-h) - 160px);
  padding-block: var(--section-y);
}

.coming-soon .sec-head {
  margin-inline: auto;
}

.coming-soon-actions {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 40px);
}

/* ============ Tarjetas con imagen: esquinas un poco redondeadas ============ */
:root {
  --card-radius: 12px;
}

.hero-shot,
.wix-card,
.show-card {
  border-radius: var(--card-radius);
}

/* el destello perimetral debe seguir la curva del marco */
.wix-card::after,
.show-card::after {
  border-radius: var(--card-radius);
}

/* piezas de la galería (marco de museo + imagen) */
.gw-frame {
  border-radius: var(--card-radius);
}

.gw-art {
  border-radius: calc(var(--card-radius) - 4px);
}

/* ===========================================================
   /trabajo — Exposición editorial (catálogo curatorial impreso)
   =========================================================== */
:root {
  --soft-white: #ffffff;
  --paper-warm: color-mix(in srgb, var(--parchment) 88%, var(--almond-silk));
  --frame-sand: color-mix(in srgb, var(--parchment) 74%, var(--almond-silk));
  --hairline: color-mix(in srgb, var(--space-indigo) 16%, transparent);
  --hairline-soft: color-mix(in srgb, var(--space-indigo) 9%, transparent);
}

/* Lienzo de papel cálido para toda la sala editorial + el carrusel */
.work-exhibition,
.gallery.gwall {
  background: var(--paper-warm);
}

.work-exhibition {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 80px));
  padding-bottom: clamp(60px, 9vw, 130px);
  overflow: clip;
}

/* ---- Hero editorial ---- */
.exh-hero {
  max-width: 1000px;
}

.exh-hero-top {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 26px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.exh-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dusty-grape);
}

.exh-room {
  margin-left: auto;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  padding: 7px 13px;
  white-space: nowrap;
}

.exh-title-main {
  font-weight: 700;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: clamp(22px, 3.2vw, 44px);
  max-width: 17ch;
  text-wrap: balance;
}

.exh-lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: clamp(18px, 2vw, 28px);
}

.exh-rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: clamp(30px, 4vw, 54px) 0 0;
}

/* ---- Filtros editoriales (navegación, no pills) ---- */
.exh-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(22px, 2.6vw, 34px);
}

.exh-filter {
  background: none;
  border: 0;
  padding: 4px 0 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.exh-filter:hover {
  color: var(--ink);
}

.exh-filter.on {
  color: var(--ink);
  border-bottom-color: var(--nav-underline);
}

.exh-filter-sep {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  opacity: 0.5;
}

/* ---- Retícula asimétrica del catálogo ---- */
.exh-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(28px, 3.4vw, 64px);
  row-gap: clamp(64px, 9vw, 150px);
  margin-top: clamp(52px, 7vw, 110px);
  align-items: start;
  grid-auto-flow: row dense;
}

.exh-c-7 { grid-column: span 7; }
.exh-c-5 { grid-column: span 5; }
.exh-c-6 { grid-column: span 6; }
.exh-c-12 { grid-column: span 12; }

/* "colgadas" a distinta altura: respiración irregular y artesanal */
.exh-drop { margin-top: clamp(40px, 6vw, 120px); }
.exh-protagonist { margin-top: clamp(20px, 3vw, 48px); }
.exh-hide { display: none; }
.exh-piece { position: relative; }

/* botón que envuelve la imagen (abre el lightbox de la sala) */
.exh-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  position: relative;
}

/* placa de museo */
.exh-plate {
  position: absolute;
  top: -10px;
  left: clamp(16px, 1.6vw, 26px);
  z-index: 2;
  background: var(--paper-warm);
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* marco exterior color arena + marco interior fino (passepartout) */
.exh-frame {
  background: var(--frame-sand);
  padding: clamp(12px, 1.5vw, 26px);
  transition: background 0.5s ease;
}

.exh-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--soft-white);
  border: 1px solid var(--hairline);
}

.exh-c-5 .exh-img { aspect-ratio: 4 / 5; }
.exh-c-7 .exh-img { aspect-ratio: 3 / 2; }
.exh-c-12 .exh-img { aspect-ratio: 16 / 9; }

.exh-img image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
}

.exh-open:hover .exh-img image-slot {
  transform: scale(1.035);
}

.exh-open:hover .exh-frame {
  background: color-mix(in srgb, var(--frame-sand) 80%, var(--almond-silk));
}

.exh-open:focus-visible {
  outline: 1px solid var(--dusty-grape);
  outline-offset: 6px;
}

/* ---- Metadata editorial bajo la pieza ---- */
.exh-meta {
  margin-top: clamp(16px, 1.8vw, 24px);
  padding-top: clamp(12px, 1.2vw, 16px);
  border-top: 1px solid var(--hairline);
}

.exh-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dusty-grape);
}

.exh-piece-title {
  font-weight: 700;
  font-size: clamp(21px, 2.1vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 8px;
  color: var(--ink);
}

.exh-protagonist .exh-piece-title {
  font-size: clamp(26px, 3.2vw, 46px);
}

.exh-desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 48ch;
}

.exh-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 70px);
  margin-top: clamp(16px, 2vw, 24px);
}

.exh-col-h {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 9px;
}

.exh-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exh-col li {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}

.exh-col li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  background: var(--dusty-grape);
}

@media (max-width: 900px) {
  .exh-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(52px, 12vw, 84px);
  }
  .exh-piece { margin-top: 0; }
  .exh-img,
  .exh-c-5 .exh-img,
  .exh-c-7 .exh-img,
  .exh-c-12 .exh-img { aspect-ratio: 4 / 3; }
}

/* ===========================================================
   Carrusel "selección rápida" — suavizado editorial (sin look SaaS)
   =========================================================== */
.gwall-head-slim .eyebrow {
  font-family: var(--font-mono);
}

.gwall-bar-slim {
  justify-content: flex-end;
}

.gallery.gwall .gw-frame {
  background: var(--frame-sand);
  box-shadow: none;
  border-color: var(--hairline);
}

.gallery.gwall .gw-piece:hover .gw-frame,
.gallery.gwall .gw-piece:focus-visible .gw-frame {
  box-shadow: none;
  border-color: var(--dusty-grape);
  transform: translateY(-6px);
}

.gallery.gwall .gw-no {
  background: var(--paper-warm);
}

/* ===========================================================
   Preloader (animación de ingreso) + Skeleton de carga
   =========================================================== */

/* Bloquea el scroll mientras el preloader está visible */
html.preloading,
html.preloading body {
  overflow: hidden;
}

/* ---- Preloader: logotipo sobre tinta índigo que se abre como portal ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tamaño compartido por el logo de carga, el contorno y la máscara del portal. */
  --logo-w: clamp(180px, 34vw, 320px);
  /* Factor de zoom del portal (lo anima el JS frame a frame). Como crece el
     mask-size —no un transform— la máscara vectorial se redibuja nítida en cada
     escala: el borde de la silueta nunca se pixela. */
  --ps: 1;
  /* Respaldo de tinta durante la carga; se vuelve transparente al abrir el portal,
     de modo que el hueco del logo revele la página real detrás. */
  background: var(--space-indigo);
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility .5s ease;
}

/* Al abrir el portal el fondo se retira: la tinta la aportan las capas .portal-*  */
.preloader.is-portal {
  background: transparent;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Marco de página tenue (eco del hero) — por encima de la tinta del portal */
.preloader-corner {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--parchment) 30%, transparent);
  opacity: 1;
  animation: loaderCorner .8s ease .35s both;
}

.preloader-corner.tl { top: clamp(18px, 4vw, 40px); left: clamp(18px, 4vw, 40px); border-width: 1px 0 0 1px; }
.preloader-corner.tr { top: clamp(18px, 4vw, 40px); right: clamp(18px, 4vw, 40px); border-width: 1px 1px 0 0; }
.preloader-corner.bl { bottom: clamp(18px, 4vw, 40px); left: clamp(18px, 4vw, 40px); border-width: 0 0 1px 1px; }
.preloader-corner.br { bottom: clamp(18px, 4vw, 40px); right: clamp(18px, 4vw, 40px); border-width: 0 1px 1px 0; }

.preloader-logo-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--logo-w);
  height: auto;
  fill: var(--parchment);
  /* Base = estado final (visible) para poder transicionar al vaciado.
     El ingreso (barrido + desenfoque) lo aporta la animación con fill-mode both. */
  opacity: 1;
  transform: none;
  filter: none;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
  animation: loaderLogoIn .9s cubic-bezier(0.22, 1, 0.36, 1) .1s both;
}

/* Halo cálido que respira detrás del logotipo */
.preloader-glow {
  position: absolute;
  width: 132%;
  height: 230%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--almond-silk) 26%, transparent),
    transparent 72%);
  filter: blur(8px);
  opacity: .55;
  animation: loaderGlow 2.4s ease-in-out .5s infinite;
}

/* Barra de progreso + leyenda, centradas justo debajo del logo */
.preloader-loady {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + var(--logo-w) * 0.234 + 34px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
}

.preloader-bar {
  position: relative;
  width: clamp(150px, 30vw, 260px);
  height: 2px;
  background: color-mix(in srgb, var(--parchment) 16%, transparent);
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--almond-silk);
  animation: loaderBar 1s cubic-bezier(0.45, 0, 0.2, 1) .1s forwards;
}

.preloader.is-done .preloader-bar-fill {
  width: 100% !important;
  animation: none;
  transition: width .2s ease;
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--parchment) 64%, transparent);
  opacity: 0;
  animation: loaderText .5s ease .4s forwards;
}

/* ===========================================================
   Portal: el logo se convierte en una ventana/máscara hacia el sitio
   =========================================================== */

/* Contenedor del portal. El zoom lo aporta el crecimiento del mask-size de las
   capas internas (vectorial → nítido), no un transform sobre un raster.
   translate3d(0) promueve la capa para que los repaints de la máscara compositen en GPU. */
.portal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Tinta alrededor del logo: el logo queda recortado como hueco (rect XOR logo).
   Si el SVG de máscara fallara al cargar, el resultado es tinta sólida (a prueba de fallos). */
.portal-veil,
.portal-core {
  position: absolute;
  inset: 0;
  background: var(--space-indigo);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

.portal-veil {
  -webkit-mask-image: url(assets/logo.svg), linear-gradient(#000, #000);
          mask-image: url(assets/logo.svg), linear-gradient(#000, #000);
  -webkit-mask-position: center, center;
          mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
          mask-repeat: no-repeat, no-repeat;
  /* Alto explícito (= ancho × 428/915) para alinear al pixel con el logo en línea.
     El zoom crece el mask-size (vectorial → nítido), no un transform (raster → pixelado). */
  -webkit-mask-size: calc(var(--logo-w) * var(--ps)) calc(var(--logo-w) * 0.467760 * var(--ps)), 100% 100%;
          mask-size: calc(var(--logo-w) * var(--ps)) calc(var(--logo-w) * 0.467760 * var(--ps)), 100% 100%;
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* Tinta que rellena el interior del logo; se desvanece para "abrir" la ventana. */
.portal-core {
  -webkit-mask-image: url(assets/logo.svg);
          mask-image: url(assets/logo.svg);
  -webkit-mask-size: calc(var(--logo-w) * var(--ps)) calc(var(--logo-w) * 0.467760 * var(--ps));
          mask-size: calc(var(--logo-w) * var(--ps)) calc(var(--logo-w) * 0.467760 * var(--ps));
  opacity: 1;
}

/* Silueta/contorno que permanece cuando el relleno desaparece.
   Crece con --ps (mismo factor que el hueco); el trazo no escala (queda fino y nítido). */
.portal-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--logo-w) * var(--ps));
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  overflow: visible;
}

/* --- Etapa 2: vaciado — el relleno desaparece, queda el contorno --- */
.preloader.is-hollow .preloader-logo {
  animation: none;
  opacity: 0;
  filter: blur(7px);
  transform: scale(1.05);
  transition: opacity .42s ease, filter .42s ease,
              transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader.is-hollow .preloader-glow {
  animation: none;
  opacity: 0;
  transition: opacity .38s ease;
}

.preloader.is-hollow .preloader-loady {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .35s ease, transform .42s ease;
}

.preloader.is-hollow .preloader-corner {
  animation: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.preloader.is-hollow .portal-outline {
  opacity: 1;
  transition: opacity .4s ease;
}

/* --- Etapa 3: portal — se abre la ventana y el hueco crece (zoom vectorial nítido).
   El crecimiento del hueco lo conduce el JS animando --ps (mask-size), no un transform. --- */
.preloader.is-portal .portal-core {
  opacity: 0;
  transition: opacity .55s ease;
}

.preloader.is-portal .portal-outline {
  opacity: 0;
  transition: opacity .35s ease;
}

@keyframes loaderLogoIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(7px);
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes loaderGlow {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: .8; transform: scale(1.06); }
}

@keyframes loaderBar {
  0% { width: 0; }
  65% { width: 70%; }
  100% { width: 88%; }
}

@keyframes loaderText {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderCorner {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Skeleton: estructura provisional (nav + hero) ---- */
.skeleton-page {
  min-height: 100vh;
  padding-top: var(--nav-pad);
}

.sk {
  position: relative;
  border-radius: 4px;
  background-color: color-mix(in srgb, var(--bone) 8%, transparent);
  background-image: linear-gradient(100deg,
    transparent 20%,
    color-mix(in srgb, var(--bone) 7%, transparent) 40%,
    color-mix(in srgb, var(--bone) 12%, transparent) 50%,
    color-mix(in srgb, var(--bone) 7%, transparent) 60%,
    transparent 80%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: skShimmer 1.5s linear infinite;
}

@keyframes skShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.sk-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  height: var(--nav-h);
}

.sk-logo { width: 96px; height: 26px; }

.sk-nav-mid {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  margin-left: clamp(20px, 7vw, 110px);
}

.sk-navlink { width: 78px; height: 12px; }
.sk-navcta { width: 120px; height: 40px; margin-left: auto; border-radius: 2px; }

.sk-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  padding-top: clamp(40px, 8vw, 96px);
}

.sk-hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sk-eyebrow { width: 170px; height: 12px; margin-bottom: 6px; }
.sk-h1 { width: 100%; height: clamp(34px, 5vw, 56px); border-radius: 6px; }
.sk-h1.w55 { width: 55%; }
.sk-lead { width: 100%; height: 14px; }
.sk-lead.w80 { width: 80%; }

.sk-hero-btns {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.sk-btn { width: 184px; height: 48px; border-radius: 2px; }
.sk-btn.w40 { width: 120px; opacity: .7; }

.sk-hero-card {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
}

@media (max-width: 880px) {
  .sk-nav-mid { display: none; }
  .sk-hero {
    grid-template-columns: 1fr;
    gap: clamp(26px, 7vw, 44px);
  }
  .sk-hero-card { aspect-ratio: 16 / 10; }
}

/* Accesibilidad: sin movimiento, todo estático (sólo fade del overlay).
   El portal (vaciado + zoom) no se ejecuta: el JS hace un fundido simple. */
@media (prefers-reduced-motion: reduce) {
  .preloader-logo {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    -webkit-clip-path: none;
    clip-path: none;
  }
  .preloader-glow,
  .preloader-bar-fill,
  .preloader-corner,
  .preloader-text { animation: none; opacity: 1; }
  .preloader-bar-fill { width: 88%; }
  /* El portal nunca debe crecer ni revelar a saltos cuando se reduce el movimiento. */
  .preloader { --ps: 1; }
  .portal-outline { opacity: 0; }
  .sk { animation: none; }
}