/* ==========================================================================
   Nuevas Ideas — hoja de estilos
   Orden: tokens → base → componentes (header, botones, menú) → secciones
          → páginas interiores → estados de motion → reduced-motion
   Pensado para WordPress: cada bloque es independiente y usa el prefijo .ni-
   ========================================================================== */

:root {
  --ink:        #15171A;   /* grafito profundo */
  --ink-2:      #23262B;
  --ink-3:      #33373D;
  --paper:      #F6F3EE;   /* blanco cálido */
  --paper-2:    #ECE7DF;
  --muted:      #5C5F65;   /* 6:1 sobre --paper */
  --muted-dark: rgba(246, 243, 238, .74);
  --gold:       #C9962F;   /* acento del logo: líneas y detalles */
  --gold-fill:  #D4A03A;   /* fondo de botón, texto grafito 7:1 */
  --gold-hover: #E3B456;
  --gold-ink:   #7F5E12;   /* dorado legible sobre claro */
  --gold-soft:  #E4C57E;   /* dorado legible sobre grafito */
  --line:       rgba(21, 23, 26, .14);
  --line-strong:rgba(21, 23, 26, .42);
  --line-light: rgba(246, 243, 238, .22);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1320px;
  --header-h: 84px;
  --header-h-solid: 64px;
  --section-y: clamp(80px, 11vw, 168px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h-solid) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500; font-stretch: 106%;
  line-height: 1.02; letter-spacing: -.028em; margin: 0; text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 2px; }
.ni-on-dark :focus-visible, .ni-on-dark:focus-visible { outline-color: var(--gold-soft); }
::selection { background: var(--gold-soft); color: var(--ink); }

.ni-skip { position: absolute; left: var(--gutter); top: -80px; z-index: 200; background: var(--gold-fill); color: var(--ink); padding: .75rem 1.1rem; font-weight: 600; text-decoration: none; }
.ni-skip:focus { top: 12px; }
.ni-wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.ni-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ni-cap { font-size: .78rem; letter-spacing: .01em; color: var(--muted); }
.ni-on-dark .ni-cap { color: rgba(246, 243, 238, .62); }

/* Líneas de título (el JS las anima; sin JS son texto normal) */
.ni-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ni-line__in { display: block; }

/* ---------- Botones ---------- */
.ni-btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem; min-height: 52px;
  padding: .85rem 1.55rem; border: 1px solid transparent; border-radius: 2px; overflow: hidden; isolation: isolate;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.ni-btn::before {           /* barrido de fondo */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .5s var(--ease-out);
}
.ni-btn:hover::before, .ni-btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.ni-btn svg { width: 20px; height: 20px; flex: none; transition: transform .45s var(--ease-out); }
.ni-btn:hover svg, .ni-btn:focus-visible svg { transform: translateX(3px) rotate(-8deg); }
.ni-btn .ni-arrow { width: 18px; height: 18px; }
.ni-btn:hover .ni-arrow, .ni-btn:focus-visible .ni-arrow { transform: translateX(5px); }

.ni-btn--wa { background: var(--gold-fill); color: var(--ink); }
.ni-btn--wa::before { background: var(--gold-hover); }
.ni-btn--ghost { border-color: rgba(246, 243, 238, .55); color: var(--paper); background: rgba(21, 23, 26, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ni-btn--ghost::before { background: var(--paper); }
.ni-btn--ghost:hover, .ni-btn--ghost:focus-visible { color: var(--ink); border-color: var(--paper); }
.ni-btn--line { border-color: var(--line-strong); color: var(--ink); }
.ni-btn--line::before { background: var(--ink); }
.ni-btn--line:hover, .ni-btn--line:focus-visible { color: var(--paper); border-color: var(--ink); }

.ni-link {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: .2rem;
  transition: background-size .45s var(--ease-out);
}
.ni-link svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.ni-link:hover, .ni-link:focus-visible { background-size: 35% 2px; }
.ni-link:hover svg, .ni-link:focus-visible svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.ni-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; color: var(--paper); }
.js .ni-header { position: fixed; transition: background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.ni-header__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: height .45s var(--ease-out); }
.ni-header.is-solid { background: rgba(246, 243, 238, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.ni-header.is-solid .ni-header__in { height: var(--header-h-solid); }
.ni-header.is-hidden { transform: translateY(-100%); }
.js .ni-header { transition: background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out), transform .5s var(--ease-out); }

.ni-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; position: relative; z-index: 2; }
/* Logo completo con transparencia: alto fijo, ancho según la proporción del archivo; sin fondo ni recorte */
.ni-brand__mark { display: flex; align-items: center; flex: none; height: 58px; transition: height .45s var(--ease-out); }
.ni-brand__mark img { display: block; height: 100%; width: auto; max-width: 180px; object-fit: contain; }
.is-solid .ni-brand__mark { height: 46px; }
@media (max-width: 899px) {
  .ni-brand { gap: .6rem; }
  .ni-brand__mark { height: 46px; }
  .is-solid .ni-brand__mark { height: 42px; }
}
.ni-brand__name { font-family: var(--font-display); font-weight: 600; font-stretch: 112%; font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.05; }
.ni-brand__name small { display: block; font: 500 .74rem/1.3 var(--font-body); letter-spacing: .01em; opacity: .72; margin-top: .15rem; }

.ni-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2.2rem); }
.ni-nav a:not(.ni-btn) { position: relative; text-decoration: none; font-weight: 500; font-size: .97rem; padding: .45rem 0; }
.ni-nav a:not(.ni-btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out);
}
.ni-nav a:not(.ni-btn):hover::after, .ni-nav a:not(.ni-btn):focus-visible::after, .ni-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.ni-nav .ni-btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.ni-nav__toggle { display: none; }

@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .ni-header__in { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: .6rem; }
  .ni-nav ul { flex-wrap: wrap; gap: .25rem 1.1rem; padding-bottom: .5rem; }

  .js .ni-header__in { flex-wrap: nowrap; height: var(--header-h); padding-block: 0; }
  .js .ni-header.is-solid .ni-header__in { height: var(--header-h-solid); }
  .js .ni-nav__toggle {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: 0 .2rem 0 .9rem;
    background: transparent; border: 0; cursor: pointer; font-weight: 600; font-size: .95rem;
  }
  .ni-nav__bars { position: relative; width: 26px; height: 14px; }
  .ni-nav__bars::before, .ni-nav__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform .45s var(--ease-out), top .45s var(--ease-out);
  }
  .ni-nav__bars::before { top: 2px; }
  .ni-nav__bars::after { top: 10px; }
  .is-menu-open .ni-nav__bars::before { top: 6px; transform: rotate(45deg); }
  .is-menu-open .ni-nav__bars::after { top: 6px; transform: rotate(-45deg); }

  .js .ni-nav {
    position: fixed; inset: 0; z-index: 1; background: var(--ink); color: var(--paper);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease-io), visibility 0s linear .6s;
  }
  .js .ni-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-io), visibility 0s; }
  .js .ni-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .js .ni-nav li { border-top: 1px solid var(--line-light); opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
  .js .ni-nav.is-open li { opacity: 1; transform: none; }
  .js .ni-nav.is-open li:nth-child(1) { transition-delay: .18s; }
  .js .ni-nav.is-open li:nth-child(2) { transition-delay: .23s; }
  .js .ni-nav.is-open li:nth-child(3) { transition-delay: .28s; }
  .js .ni-nav.is-open li:nth-child(4) { transition-delay: .33s; }
  .js .ni-nav.is-open li:nth-child(5) { transition-delay: .38s; }
  .js .ni-nav.is-open li:nth-child(6) { transition-delay: .43s; }
  .js .ni-nav li a:not(.ni-btn) { display: block; padding: 1rem 0; font-family: var(--font-display); font-weight: 500; font-stretch: 106%; font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -.02em; }
  .js .ni-nav li a:not(.ni-btn)::after { bottom: .6rem; right: auto; width: 2.5rem; }
  .js .ni-nav li:last-child { border-top: 0; padding-top: 1.4rem; }
  .js .ni-nav .ni-btn { width: 100%; justify-content: center; min-height: 54px; font-size: 1rem; }
  .is-menu-open .ni-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .is-menu-open .ni-header.is-solid .ni-brand__mark { height: 46px; }
}

/* ---------- Hero (home) ---------- */
.ni-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1200px; color: var(--paper); background: var(--ink); overflow: hidden; z-index: 1; }
.ni-hero__media { position: absolute; inset: 0; overflow: hidden; }
.ni-hero__frame { position: absolute; inset: 0; }
.ni-hero__poster, .ni-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.js .ni-hero__video { opacity: 0; transition: opacity 1.2s ease; }
.js .ni-hero__video.is-playing { opacity: 1; }
.ni-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 15, 17, .62) 0%, rgba(14, 15, 17, 0) 24%),
    linear-gradient(to top, rgba(14, 15, 17, .9) 0%, rgba(14, 15, 17, .55) 30%, rgba(14, 15, 17, 0) 62%),
    linear-gradient(to right, rgba(14, 15, 17, .72) 0%, rgba(14, 15, 17, .25) 48%, rgba(14, 15, 17, 0) 70%);
}
.ni-hero__content { position: absolute; left: 0; right: 0; bottom: clamp(72px, 12vh, 136px); z-index: 2; }
.ni-hero__content .ni-wrap { max-width: var(--maxw); }
.ni-hero h1 { font-size: clamp(2.75rem, 6.6vw, 6.6rem); font-weight: 500; font-stretch: 104%; line-height: .96; letter-spacing: -.04em; max-width: 11.5ch; margin-bottom: clamp(1.1rem, 2.2vw, 1.8rem); }
.ni-hero__lead { max-width: 34ch; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.5; color: var(--muted-dark); margin-bottom: clamp(1.6rem, 2.8vw, 2.4rem); }
.ni-cta { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.ni-hero__foot { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3.2vh, 36px); z-index: 2; }
.ni-hero__foot .ni-wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.ni-scroll-cue { display: inline-flex; align-items: center; gap: .8rem; font-size: .82rem; font-weight: 500; text-decoration: none; color: rgba(246, 243, 238, .82); }
.ni-scroll-cue__line { position: relative; width: 1px; height: 44px; background: rgba(246, 243, 238, .25); overflow: hidden; }
.ni-scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: var(--gold-soft); animation: ni-cue 2.2s var(--ease-io) infinite; }
@keyframes ni-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(230%); } }

@media (max-width: 899px) {
  .ni-hero { min-height: 560px; }
  .ni-hero__shade {
    background:
      linear-gradient(to bottom, rgba(14, 15, 17, .6) 0%, rgba(14, 15, 17, 0) 22%),
      linear-gradient(to top, rgba(14, 15, 17, .94) 0%, rgba(14, 15, 17, .7) 38%, rgba(14, 15, 17, .1) 70%);
  }
  .ni-hero__content { bottom: 84px; }
  .ni-hero__lead { max-width: 30ch; }
  .ni-cta .ni-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) { .ni-hero h1 { font-size: 2.45rem; } }

/* La sección que sigue al hero lo cubre al subir */
.ni-after-hero { position: relative; z-index: 2; background: var(--paper); }
.ni-after-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold); transform-origin: 0 50%; }

/* ---------- Secciones genéricas ---------- */
.ni-section { position: relative; padding-block: var(--section-y); }
.ni-h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }
.ni-h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
.ni-lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.ni-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* Estudio */
.ni-studio .ni-grid { row-gap: 3rem; align-items: start; }
.ni-studio__text { grid-column: 1 / span 6; }
.ni-studio__text .ni-h2 { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.ni-studio__text > p { max-width: 50ch; color: var(--ink-2); }
.ni-studio__fig { grid-column: 8 / span 5; margin: 0; position: relative; }
.ni-parallax { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.ni-parallax img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.ni-studio__fig figcaption { margin-top: .7rem; }
.ni-facts { margin-top: clamp(2rem, 4vw, 3rem); }
.ni-facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.ni-facts li:last-child { border-bottom: 1px solid var(--line); }
.ni-facts b { font-weight: 600; }
@media (max-width: 899px) {
  .ni-studio__text, .ni-studio__fig { grid-column: 1 / -1; }
  .ni-studio__fig { order: -1; }
  .ni-parallax { aspect-ratio: 4 / 3; }
  .ni-facts li { grid-template-columns: 1fr; gap: .1rem; }
}

/* Servicios: introducción + paneles apilados */
.ni-services-intro { padding-block: clamp(40px, 6vw, 96px) clamp(48px, 6vw, 88px); }
.ni-services-intro .ni-grid { align-items: end; row-gap: 1.2rem; }
.ni-services-intro .ni-h2 { grid-column: 1 / span 7; }
.ni-services-intro p { grid-column: 8 / span 5; margin: 0; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 899px) { .ni-services-intro .ni-h2, .ni-services-intro p { grid-column: 1 / -1; } }

.ni-panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; background: var(--paper); }
.ni-panel__veil { position: absolute; inset: 0; z-index: 3; background: #0e0f11; opacity: 0; pointer-events: none; }
.ni-panel__media { position: relative; overflow: hidden; margin: 0; background: var(--ink-2); }
.ni-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ni-panel__media figcaption { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; color: rgba(246, 243, 238, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.ni-panel__body { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h-solid) + clamp(32px, 5vw, 72px)) clamp(28px, 6vw, 104px) clamp(40px, 6vw, 88px); }
.ni-panel__count { font-size: .86rem; font-weight: 500; color: var(--muted); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.ni-panel__count::before { content: ""; width: 2.4rem; height: 1px; background: var(--gold); }
.ni-panel h3 { font-size: clamp(2rem, 3.6vw, 3.5rem); margin-bottom: 1.1rem; max-width: 14ch; }
.ni-panel__desc { color: var(--muted); max-width: 40ch; margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem); }
.ni-panel__list li { position: relative; padding: .78rem 0 .78rem 1.6rem; border-top: 1px solid var(--line); line-height: 1.4; transition: padding-left .45s var(--ease-out), color .3s; }
.ni-panel__list li:last-child { border-bottom: 1px solid var(--line); }
.ni-panel__list li::before { content: ""; position: absolute; left: 0; top: 1.42rem; width: .7rem; height: 1px; background: var(--gold); transition: width .45s var(--ease-out); }
.ni-panel__list li:hover { padding-left: 2.3rem; }
.ni-panel__list li:hover::before { width: 1.4rem; }
.ni-panel__sub { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); max-width: 52ch; }
.ni-panel__sub b { color: inherit; font-weight: 600; }
.ni-panel__go { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.ni-panel--flip .ni-panel__media { order: 2; }
.ni-panel--dark { background: var(--ink); color: var(--paper); }
.ni-panel--dark .ni-panel__desc, .ni-panel--dark .ni-panel__count, .ni-panel--dark .ni-panel__sub { color: var(--muted-dark); }
.ni-panel--dark .ni-panel__list li { border-color: var(--line-light); }
.ni-panel--sand { background: var(--paper-2); }

@media (min-width: 900px) {
  .ni-stack .ni-panel { position: sticky; top: 0; }
  .ni-stack .ni-panel + .ni-panel { box-shadow: 0 -1px 0 var(--gold); }
}
@media (max-width: 899px) {
  .ni-panel { grid-template-columns: 1fr; min-height: 0; }
  .ni-panel__media { aspect-ratio: 4 / 3; }
  .ni-panel--flip .ni-panel__media { order: 0; }
  .ni-panel__body { padding: clamp(32px, 8vw, 56px) var(--gutter) clamp(48px, 12vw, 72px); }
}

/* Orientación */
.ni-needs__head { max-width: 44rem; margin-bottom: clamp(2.4rem, 5vw, 4.4rem); }
.ni-needs__head p { color: var(--ink-2); margin-top: 1.2rem; max-width: 46ch; }
.ni-need {
  position: relative; display: grid; grid-template-columns: 5fr 6fr auto; column-gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: 1.55rem clamp(0px, 1vw, 16px); border-top: 1px solid var(--line-strong); text-decoration: none; color: inherit;
  transition: background-color .4s var(--ease-out), padding .45s var(--ease-out);
}
.ni-need:last-child { border-bottom: 1px solid var(--line-strong); }
.ni-need:hover, .ni-need:focus-visible { background: var(--paper-2); padding-left: clamp(12px, 2vw, 32px); }
.ni-need__q { font-family: var(--font-display); font-weight: 500; font-stretch: 104%; font-size: clamp(1.35rem, 2.1vw, 1.95rem); letter-spacing: -.02em; line-height: 1.1; }
.ni-need__a { color: var(--ink-2); }
.ni-need__a b { font-weight: 600; color: var(--ink); }
.ni-need__go { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .4s var(--ease-out), border-color .4s, color .4s; }
.ni-need__go svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.ni-need:hover .ni-need__go, .ni-need:focus-visible .ni-need__go { background: var(--gold-fill); border-color: var(--gold-fill); }
.ni-need:hover .ni-need__go svg, .ni-need:focus-visible .ni-need__go svg { transform: translateX(3px) rotate(-8deg); }
@media (max-width: 899px) {
  .ni-need { grid-template-columns: 1fr auto; row-gap: .5rem; padding: 1.3rem 0; }
  .ni-need__a { grid-column: 1 / 2; grid-row: 2; }
  .ni-need__go { grid-column: 2; grid-row: 1 / span 2; }
  .ni-need:hover, .ni-need:focus-visible { padding-left: 0; }
}

/* Sección visual con máscara */
.ni-visual { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; color: var(--paper); background: var(--ink); }
.ni-visual__mask { position: absolute; inset: 0; }
.ni-visual__mask img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ni-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 15, 17, .82), rgba(14, 15, 17, .1) 55%); pointer-events: none; }
.ni-visual__text { position: absolute; left: 0; right: 0; bottom: clamp(40px, 8vh, 96px); z-index: 2; }
.ni-visual__text p { font-family: var(--font-display); font-weight: 500; font-stretch: 104%; font-size: clamp(2rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.035em; max-width: 15ch; margin: 0 0 1.2rem; }
@media (max-width: 899px) { .ni-visual { height: 78svh; } }

/* Proceso */
.ni-process .ni-grid { row-gap: 2.4rem; }
.ni-process__head { grid-column: 1 / span 5; }
.ni-process__head p { color: var(--ink-2); margin-top: 1.2rem; max-width: 38ch; }
.ni-steps { grid-column: 1 / -1; position: relative; padding-top: 2.6rem; margin-top: clamp(1rem, 3vw, 2.4rem); }
.ni-steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); counter-reset: step; }
.ni-steps__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); }
.ni-steps__track span { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; }
.ni-steps li { counter-increment: step; position: relative; }
.ni-steps li::before { content: counter(step); position: absolute; top: calc(-2.6rem - 6px); left: 0; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); font-size: 0; }
.ni-steps__n { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gold-ink); margin-bottom: 1rem; letter-spacing: -.04em; }
.ni-steps h3 { font: 600 1.08rem/1.35 var(--font-body); letter-spacing: 0; margin-bottom: .3rem; }
.ni-steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.ni-zone { grid-column: 1 / -1; margin-top: clamp(2.4rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding-top: 2rem; border-top: 1px solid var(--line); }
.ni-zone h3 { grid-column: 1 / span 4; font-size: 1.5rem; }
.ni-zone div { grid-column: 5 / -1; }
.ni-zone ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.ni-zone li { padding: .45rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .95rem; line-height: 1.2; }
.ni-zone p { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 899px) {
  .ni-process__head, .ni-zone h3, .ni-zone div { grid-column: 1 / -1; }
  .ni-zone h3 { margin-bottom: 1rem; }
  .ni-steps { padding-top: 0; padding-left: 2rem; }
  .ni-steps ol { grid-template-columns: 1fr; gap: 1.8rem; }
  .ni-steps__track { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .ni-steps__track span { transform-origin: 50% 0; }
  .ni-steps li::before { top: .9rem; left: calc(-2rem); }
  .ni-steps__n { font-size: 2rem; margin-bottom: .4rem; }
}

/* FAQ */
.ni-faq .ni-grid { row-gap: 2.4rem; }
.ni-faq__head { grid-column: 1 / span 4; }
.ni-faq__head p { color: var(--muted); margin-top: 1rem; max-width: 30ch; }
.ni-faq__list { grid-column: 6 / span 7; }
.ni-faq details { border-top: 1px solid var(--line-strong); }
.ni-faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.ni-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font-family: var(--font-display); font-weight: 500; font-stretch: 104%; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.015em; line-height: 1.25; transition: color .3s; }
.ni-faq summary:hover { color: var(--gold-ink); }
.ni-faq summary::-webkit-details-marker { display: none; }
.ni-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .45s var(--ease-out); }
.ni-faq details[open] summary::after { transform: rotate(135deg); }
.ni-faq details > div { padding: 0 0 1.5rem; max-width: 58ch; color: var(--ink-2); }
.ni-faq details > div p:last-child { margin: 0; }
@media (max-width: 899px) { .ni-faq__head, .ni-faq__list { grid-column: 1 / -1; } }

/* Cierre / contacto */
.ni-close { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(96px, 14vw, 200px) clamp(36px, 4vw, 56px); }
.ni-close__bg { position: absolute; inset: 0; margin: 0; }
.ni-close__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.ni-close__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(14, 15, 17, .92) 0%, rgba(14, 15, 17, .7) 55%, rgba(14, 15, 17, .55) 100%); }
.ni-close__bg figcaption { position: absolute; right: var(--gutter); top: 1.2rem; z-index: 1; }
.ni-close .ni-wrap { position: relative; z-index: 1; }
.ni-close .ni-grid { row-gap: 3rem; align-items: end; }
.ni-close__lead { grid-column: 1 / span 7; }
.ni-close__lead .ni-h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.04em; margin-bottom: 1.4rem; }
.ni-close__lead > p { color: var(--muted-dark); max-width: 42ch; margin-bottom: 2rem; font-size: 1.1rem; }
.ni-title-block { grid-column: 9 / span 4; margin: 0; border: 1px solid rgba(246, 243, 238, .34); font-size: .97rem; background: rgba(14, 15, 17, .35); }
.ni-title-block > div { display: grid; grid-template-columns: 6.8rem 1fr; border-top: 1px solid var(--line-light); }
.ni-title-block > div:first-child { border-top: 0; }
.ni-title-block dt, .ni-title-block dd { margin: 0; padding: .85rem 1rem; }
.ni-title-block dt { color: var(--gold-soft); border-right: 1px solid var(--line-light); font-size: .88rem; }
.ni-title-block dd { overflow-wrap: anywhere; }
.ni-title-block a { text-decoration-color: var(--gold-soft); }
.ni-footer { position: relative; z-index: 1; margin-top: clamp(72px, 10vw, 140px); padding-top: 1.4rem; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: .9rem; color: rgba(246, 243, 238, .68); }
.ni-footer p { margin: 0; }
.ni-footer ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.ni-footer a { text-decoration: none; }
.ni-footer a:hover { color: var(--paper); text-decoration: underline; }
@media (max-width: 899px) {
  .ni-close__lead, .ni-title-block { grid-column: 1 / -1; }
  .ni-title-block > div { grid-template-columns: 5.8rem 1fr; }
}

/* ---------- Páginas interiores ---------- */
.ni-page-hero { position: relative; min-height: 74vh; min-height: 74svh; display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; padding: calc(var(--header-h) + 48px) 0 clamp(56px, 9vh, 104px); }
.ni-page-hero__bg { position: absolute; inset: 0; margin: 0; }
.ni-page-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ni-page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 15, 17, .92) 0%, rgba(14, 15, 17, .5) 50%, rgba(14, 15, 17, .55) 100%), linear-gradient(to right, rgba(14, 15, 17, .6), rgba(14, 15, 17, 0) 70%); }
.ni-page-hero__bg figcaption { position: absolute; right: var(--gutter); bottom: 1.1rem; z-index: 1; }
.ni-page-hero .ni-wrap { position: relative; z-index: 1; }
.ni-page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -.038em; max-width: 15ch; }
.ni-page-hero--long h1 { font-size: clamp(2.2rem, 4.4vw, 4.3rem); max-width: 22ch; }
.ni-page-hero p { margin: 1.4rem 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted-dark); }
.ni-page-hero .ni-cta { margin-top: 2rem; }

.ni-prose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 1.2rem; }
.ni-prose + .ni-prose { margin-top: clamp(3rem, 6vw, 6rem); padding-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.ni-prose > h2 { grid-column: 1 / span 5; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.ni-prose > div { grid-column: 7 / span 6; }
.ni-prose > div p { max-width: 56ch; color: var(--ink-2); }
.ni-list li { position: relative; padding: .78rem 0 .78rem 1.6rem; border-top: 1px solid var(--line); line-height: 1.4; }
.ni-list li:last-child { border-bottom: 1px solid var(--line); }
.ni-list li::before { content: ""; position: absolute; left: 0; top: 1.42rem; width: .7rem; height: 1px; background: var(--gold); }
@media (max-width: 899px) { .ni-prose > h2, .ni-prose > div { grid-column: 1 / -1; } }

.ni-band { background: var(--paper-2); padding-block: clamp(56px, 8vw, 104px); }
.ni-band .ni-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; }
.ni-band h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); max-width: 20ch; }

.ni-form { display: grid; gap: 1.2rem; max-width: 36rem; }
.ni-form label { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; }
.ni-form input, .ni-form textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; padding: .85rem .95rem; min-height: 50px; width: 100%; transition: border-color .3s, box-shadow .3s; }
.ni-form input:focus, .ni-form textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(201, 150, 47, .28); }
.ni-form textarea { min-height: 9rem; resize: vertical; }
.ni-form small { color: var(--muted); font-size: .86rem; }
.ni-form .ni-btn { justify-self: start; }
.ni-contact-list > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line-strong); }
.ni-contact-list > div:last-child { border-bottom: 1px solid var(--line-strong); }
.ni-contact-list dt { color: var(--muted); }
.ni-contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- WhatsApp flotante ---------- */
.ni-wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; height: 54px; padding: 0 16px; gap: 0; border-radius: 999px;
  background: var(--gold-fill); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 10px 28px rgba(14, 15, 17, .28);
  transition: transform .5s var(--ease-out), opacity .4s, gap .45s var(--ease-out), background-color .3s;
}
.ni-wa-float svg { width: 22px; height: 22px; flex: none; }
.ni-wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease-out); }
.ni-wa-float:hover, .ni-wa-float:focus-visible { gap: .55rem; background: var(--gold-hover); }
.ni-wa-float:hover span, .ni-wa-float:focus-visible span { max-width: 8rem; }
.js .ni-wa-float { transform: translateY(140%); opacity: 0; pointer-events: none; }
.js .ni-wa-float.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.is-menu-open .ni-wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .ni-wa-float { height: 50px; padding: 0 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); } }

/* ---------- WordPress ---------- */
/* Barra de administración (solo usuarios conectados) */
@media (min-width: 601px) {
  .js .admin-bar .ni-header { top: 32px; }
  html { scroll-padding-top: calc(var(--header-h-solid) + 48px); }
}
@media (min-width: 601px) and (max-width: 782px) { .js .admin-bar .ni-header { top: 46px; } }

/* Pie compacto */
.ni-close--mini { padding-block: clamp(8px, 2vw, 24px) clamp(36px, 4vw, 56px); }
.ni-close--mini .ni-footer { margin-top: 0; border-top: 0; }

/* Contenido del editor (bloques, editor clásico o Elementor) en páginas genéricas */
.ni-section--content { padding-block: clamp(56px, 8vw, 112px); }
.ni-content { max-width: 860px; }
.ni-content > * + * { margin-top: 1.2em; }
.ni-content h2, .ni-content h3, .ni-content h4 { margin-top: 1.8em; margin-bottom: .5em; }
.ni-content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.ni-content h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.ni-content p, .ni-content li { color: var(--ink-2); }
.ni-content ul, .ni-content ol { padding-left: 1.3em; }
.ni-content ul { list-style: disc; }
.ni-content ol { list-style: decimal; }
.ni-content li + li { margin-top: .35em; }
.ni-content a { color: var(--gold-ink); text-decoration-thickness: 1px; }
.ni-content img { height: auto; }
.ni-content blockquote { margin: 1.6em 0; padding-left: 1.2rem; border-left: 2px solid var(--gold); font-size: 1.15rem; }
.ni-content .alignwide { width: min(1200px, 100vw - var(--gutter) * 2); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.ni-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.ni-content .wp-block-button__link { border-radius: 2px; background: var(--gold-fill); color: var(--ink); font-weight: 600; }
.ni-content table { width: 100%; border-collapse: collapse; }
.ni-content th, .ni-content td { border-top: 1px solid var(--line); padding: .6rem .4rem; text-align: left; }
.ni-content .elementor { margin-top: 0; }
.ni-page-links { margin-top: 2rem; display: flex; gap: .6rem; }
.ni-fullwidth { padding-top: var(--header-h); }

/* Listado de entradas */
.ni-posts { display: grid; gap: 0; }
.ni-post__link { display: grid; gap: .4rem; padding: 1.6rem 0; border-top: 1px solid var(--line-strong); text-decoration: none; transition: padding-left .45s var(--ease-out); }
.ni-posts li:last-child .ni-post__link { border-bottom: 1px solid var(--line-strong); }
.ni-post__link:hover { padding-left: 12px; }
.ni-post__date { font-size: .85rem; color: var(--muted); }
.ni-post__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.ni-post__excerpt { color: var(--ink-2); max-width: 70ch; }
.nav-links { display: flex; gap: 1rem; margin-top: 2rem; }

/* Formularios de plugins en la página de contacto */
.ni-form-plugin input[type="text"], .ni-form-plugin input[type="email"], .ni-form-plugin input[type="tel"], .ni-form-plugin textarea, .ni-form-plugin select {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; padding: .8rem .9rem; width: 100%; max-width: 36rem;
}
.ni-form-plugin input[type="submit"], .ni-form-plugin button[type="submit"] {
  font: 600 1rem/1.2 var(--font-body); background: var(--gold-fill); color: var(--ink); border: 0; border-radius: 2px; min-height: 52px; padding: .85rem 1.55rem; cursor: pointer;
}

/* ---------- Estados de motion ----------
   html.ni-intro solo existe mientras corre la entrada (la agrega un script inline
   y la quita main.js o un temporizador de respaldo): nunca deja contenido oculto. */
.ni-intro .ni-hero__content, .ni-intro .ni-hero__foot, .ni-intro .ni-header,
.ni-intro .ni-page-hero .ni-wrap { visibility: hidden; }
/* Primer cuadro de la entrada = estado inicial de la timeline (sin saltos) */
.ni-intro [data-hero] [data-intro="media"] { clip-path: inset(14% 12% 14% 12%); }
.ni-intro [data-page-hero] [data-intro="media"] { clip-path: inset(14% 12% 14% 12%); }
.ni-intro [data-hero-frame], .ni-intro .ni-page-hero__bg img { transform: scale(1.22); transform-origin: 50% 55%; }
@media (max-width: 899px) {
  .ni-intro [data-hero] [data-intro="media"], .ni-intro [data-page-hero] [data-intro="media"] { clip-path: inset(8% 6% 8% 6%); }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .ni-hero__video { display: none; }
  .ni-scroll-cue__line::after { display: none; }
  .ni-stack .ni-panel { position: relative; }
}
.ni-no-video .ni-hero__video { display: none; }

@media print {
  .ni-header, .ni-wa-float, .ni-hero__video { display: none; }
  .ni-hero, .ni-close, .ni-page-hero, .ni-panel--dark { background: #fff; color: #000; }
}
