/* ============================================================
   MODE — capa de movimiento y profundidad
   Se carga DESPUES de styles.css / experience.css / multipage.css
   Solo transform + opacity (GPU). Respeta prefers-reduced-motion.
   ============================================================ */

:root {
  --wood-soft: #b8874e;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 1. Grano y textura global ---------- */

.grain {
  position: fixed;
  inset: -20%;
  z-index: 21;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.82%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix type=%22saturate%22 values=%220%22/%3E%3C/filter%3E%3Crect width=%22200%22 height=%22200%22 filter=%22url(%23n)%22 opacity=%220.5%22/%3E%3C/svg%3E");
  will-change: transform;
  animation: grainShift 7s steps(6) infinite;
}

@keyframes grainShift {
  0%   { transform: translate3d(0, 0, 0); }
  16%  { transform: translate3d(-3%, -2%, 0); }
  33%  { transform: translate3d(2%, -4%, 0); }
  50%  { transform: translate3d(-2%, 3%, 0); }
  66%  { transform: translate3d(3%, 1%, 0); }
  83%  { transform: translate3d(-1%, -3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- 2. Reveal en scroll (con stagger) ---------- */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 760ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (min-width: 1240px) {
  [data-reveal="left"]  { transform: translate3d(-30px, 0, 0); }
  [data-reveal="right"] { transform: translate3d(30px, 0, 0); }
}
[data-reveal="scale"] { transform: translate3d(0, 22px, 0) scale(0.965); }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Titular por lineas: cada linea sube detras de una mascara */
.line-mask {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.1em;
  line-height: 1.04;
}

.line-mask > span {
  display: block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1000ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.is-in .line-mask > span {
  transform: translate3d(0, 0, 0);
}

.line-mask:nth-of-type(2) > span { transition-delay: 95ms; }
.line-mask:nth-of-type(3) > span { transition-delay: 190ms; }
.line-mask:nth-of-type(4) > span { transition-delay: 285ms; }

/* ---------- 3. Parallax ---------- */

.px-layer {
  position: absolute;
  inset: -14% 0;
  overflow: hidden;
  pointer-events: none;
}

.px-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, var(--px, 0px), 0) scale(1.06);
}

/* El hero ya trae .home-hero-bg: le damos vida sin tocar su estructura */
.home-hero-bg img {
  height: 128%;
  will-change: transform;
  transform: translate3d(0, var(--px, 0px), 0) scale(1.04);
}

.home-hero {
  min-height: 92dvh;
}

/* Reticula de plano sobre el hero */
.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(251, 250, 246, 0.05) 1px, transparent 1px);
  background-size: 118px 118px, 118px 118px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
}

/* Halo calido detras del copy */
.home-hero::after {
  position: absolute;
  left: -8%;
  top: 10%;
  z-index: 1;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 135, 78, 0.22), transparent 62%);
}

.home-hero-grid { z-index: 3; }
.home-metrics { z-index: 3; }

.home-showcase img {
  will-change: transform;
  transform: translate3d(0, var(--px, 0px), 0) scale(1.05);
}

/* Indicador de scroll */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4;
  display: grid;
  gap: 9px;
  justify-items: center;
  color: rgba(251, 250, 246, 0.55);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0.55), transparent);
  transform-origin: top;
  animation: cueDrop 2.1s var(--ease-out) infinite;
}

@keyframes cueDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(44px); opacity: 0; }
}

.home-metrics strong,
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. Marquee de servicios ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  color: var(--bone);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRun 36s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track > span {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee-track i {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

@keyframes marqueeRun {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 5. Tarjetas de servicio con spotlight ---------- */

.directory-card {
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
}

.directory-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(184, 135, 78, 0.38),
    transparent 62%
  );
}

.directory-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 40px 90px rgba(23, 22, 20, 0.34);
}

.directory-card:hover::before { opacity: 1; }

.directory-card small {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.directory-card small::after {
  content: "\2192";
  transition: transform 320ms var(--ease-out);
}

.directory-card:hover small::after { transform: translateX(7px); }

/* Rompemos la simetria de 3 columnas iguales */
@media (min-width: 981px) {
  .directory-grid { grid-template-columns: repeat(6, 1fr); }
  .directory-grid > :nth-child(1) { grid-column: span 3; min-height: 480px; }
  .directory-grid > :nth-child(2) { grid-column: span 3; min-height: 480px; }
  .directory-grid > :nth-child(3) { grid-column: span 2; }
  .directory-grid > :nth-child(4) { grid-column: span 2; }
  .directory-grid > :nth-child(5) { grid-column: span 2; }
}

/* ---------- 6. Proceso: pasos que se apilan (sticky stack) ---------- */

.proc {
  position: relative;
  padding: 106px 0 0;
  color: var(--bone);
  background: var(--ink);
  scroll-margin-top: 96px;
}

.proc::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.6;
  background-image: linear-gradient(90deg, rgba(251, 250, 246, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
}

.proc-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 52px;
}

.proc-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.94;
  text-wrap: balance;
}

.proc-head p {
  margin: 0;
  color: rgba(251, 250, 246, 0.7);
}

.proc-progress {
  position: relative;
  z-index: 2;
  height: 2px;
  margin-bottom: 42px;
  background: rgba(255, 255, 255, 0.14);
}

.proc-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(223, 36, 28, 0.55);
}

.proc-stack {
  position: relative;
  z-index: 2;
  padding-bottom: 128px;
}

.proc-step {
  position: sticky;
  top: 116px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 430px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #1d1c19;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
  transform-origin: top center;
  will-change: transform;
}

.proc-step:nth-of-type(1) { z-index: 1; }
.proc-step:nth-of-type(2) { z-index: 2; }
.proc-step:nth-of-type(3) { z-index: 3; }
.proc-step:nth-of-type(4) { z-index: 4; }

.proc-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 46px 44px;
}

.proc-num {
  display: block;
  color: var(--wood-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.proc-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 0.98;
  text-wrap: balance;
}

.proc-copy p {
  margin: 0;
  max-width: 46ch;
  color: rgba(251, 250, 246, 0.72);
}

.proc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.proc-tags li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  color: rgba(251, 250, 246, 0.78);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.proc-shot {
  position: relative;
  overflow: hidden;
}

.proc-shot img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, var(--px, 0px), 0) scale(1.05);
}

.proc-shot::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #1d1c19 0%, rgba(29, 28, 25, 0.28) 34%, transparent 68%);
}

/* ---------- 7. Carrusel de obra ---------- */

.showreel {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
  background: var(--paper);
}

.showreel::before {
  position: absolute;
  right: -12%;
  top: -18%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 105, 64, 0.16), transparent 64%);
}

.showreel-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.showreel-head h2 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  line-height: 0.95;
  text-wrap: balance;
}

.carousel { position: relative; z-index: 2; }

.carousel-viewport {
  display: flex;
  gap: 18px;
  padding: 6px 0 26px;
  padding-left: max(20px, calc((100vw - var(--container)) / 2));
  padding-right: max(20px, calc((100vw - var(--container)) / 2));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.carousel-viewport.is-dragging a,
.carousel-viewport.is-dragging img { pointer-events: none; }

.slide {
  position: relative;
  flex: 0 0 clamp(280px, 46vw, 620px);
  min-height: 62vh;
  max-height: 640px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  scroll-snap-align: center;
  box-shadow: 0 28px 70px rgba(33, 28, 21, 0.24);
  transition: transform 620ms var(--ease-out), box-shadow 620ms var(--ease-out);
}

.slide img {
  width: 100%;
  height: 100%;
  min-height: 62vh;
  max-height: 640px;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.9);
  transition: transform 900ms var(--ease-out), filter 600ms ease;
}

.slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(23, 22, 20, 0.9), rgba(23, 22, 20, 0.05) 58%);
}

.slide figcaption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  color: var(--bone);
}

.slide figcaption b {
  display: block;
  color: var(--wood-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.slide figcaption strong {
  display: block;
  margin: 9px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1;
}

.slide figcaption p {
  margin: 0;
  max-width: 40ch;
  color: rgba(251, 250, 246, 0.74);
  font-size: 0.94rem;
}

.slide.is-active {
  transform: translate3d(0, -10px, 0);
  box-shadow: 0 44px 100px rgba(33, 28, 21, 0.36);
}

.slide.is-active img {
  filter: saturate(1) brightness(1);
  transform: scale(1.04);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bone);
  cursor: pointer;
  transition: transform 220ms var(--ease-spring), background 220ms ease,
    color 220ms ease, opacity 220ms ease;
}

.carousel-btn svg { width: 17px; height: 17px; }

.carousel-btn:hover:not([disabled]) {
  color: var(--bone);
  background: var(--ink);
  transform: translate3d(0, -2px, 0);
}

.carousel-btn:active:not([disabled]) { transform: scale(0.94); }

.carousel-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel-rail {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(23, 22, 20, 0.14);
}

.carousel-rail span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 20%;
  background: var(--ink);
  transition: transform 320ms var(--ease-out), width 320ms var(--ease-out);
}

.carousel-count {
  flex: 0 0 auto;
  color: rgba(23, 22, 20, 0.6);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- 8. Banda CTA con fondo parallax ---------- */

.cta-band {
  position: relative;
  padding: 132px 0;
  overflow: hidden;
  color: var(--bone);
  background: var(--ink);
  text-align: center;
}

.cta-band .container { position: relative; z-index: 2; }

.cta-band .px-layer img { filter: saturate(0.7) brightness(0.42); }

.cta-band::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(23, 22, 20, 0.4), rgba(23, 22, 20, 0.92)),
    linear-gradient(0deg, rgba(23, 22, 20, 0.7), transparent 60%);
}

.cta-band h2 {
  margin: 0 auto 18px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  line-height: 0.94;
  text-wrap: balance;
}

.cta-band p {
  margin: 0 auto 32px;
  max-width: 58ch;
  color: rgba(251, 250, 246, 0.76);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- 9. Botones y nav vivos ---------- */

.btn {
  transition: transform 240ms var(--ease-spring), background 240ms ease,
    color 240ms ease, box-shadow 240ms ease;
}

.btn:hover { transform: translate3d(0, -3px, 0); }
.btn:active { transform: translate3d(0, 1px, 0) scale(0.985); }

.nav-cta { transition: transform 240ms var(--ease-spring), box-shadow 240ms ease; }
.nav-cta:hover { transform: translate3d(0, -2px, 0); }

.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 10. Proyectos con profundidad ---------- */

.project-case {
  overflow: hidden;
  transition: transform 480ms var(--ease-out), border-color 480ms ease,
    box-shadow 480ms ease;
}

.project-case img { transition: transform 780ms var(--ease-out); }

.project-case:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(23, 22, 20, 0.3);
  box-shadow: 0 30px 70px rgba(33, 28, 21, 0.18);
}

.project-case:hover img { transform: scale(1.06); }

/* ---------- 11. Responsive ---------- */

@media (max-width: 980px) {
  .proc-head,
  .proc-step { grid-template-columns: 1fr; }

  .proc-step {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .proc-shot { min-height: 250px; }

  .proc-shot::after {
    background: linear-gradient(0deg, #1d1c19 0%, rgba(29, 28, 25, 0.15) 60%);
  }

  .proc-copy { padding: 32px 26px 36px; }

  .slide { min-height: 52vh; }
  .slide img { min-height: 52vh; }

  .home-hero { min-height: 84dvh; }
}

@media (max-width: 760px) {
  .proc { padding-top: 74px; }
  .proc-stack { padding-bottom: 56px; }
  .showreel { padding: 74px 0; }
  .cta-band { padding: 92px 0; }
  .scroll-cue { display: none; }
  .home-hero::after { display: none; }
  .showreel-head { margin-bottom: 26px; }
}

/* ---------- 12. Accesibilidad: sin movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .line-mask > span { transform: none !important; }
  .grain { animation: none; }

  .px-layer img,
  .home-hero-bg img,
  .home-showcase img,
  .proc-shot img { transform: none !important; }

  .carousel-viewport { scroll-behavior: auto; }
}

/* ---------- 13. Ajustes de contraste ---------- */

.home-hero .text-link {
  margin-top: 0;
  align-self: center;
  color: rgba(251, 250, 246, 0.88);
}

.home-hero .text-link:hover { color: var(--wood-soft); }

.cta-band .btn.secondary {
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.34);
}

.cta-band .btn.secondary:hover {
  color: var(--ink);
  background: var(--bone);
}

/* ---------- 14. Menu movil (el nav se oculta a <=1100px) ---------- */

.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; }

  .menu-toggle {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    padding: 0;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    justify-self: end;
    grid-column: 3;
    opacity: 0.85;
    transition: opacity 200ms ease, transform 200ms var(--ease-spring);
  }

  .menu-toggle:hover { opacity: 1; }
  .menu-toggle:active { transform: scale(0.93); }

  .menu-toggle i {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 1.7px;
    background: currentColor;
    border-radius: 2px;
    transition: top 240ms var(--ease-out), transform 260ms var(--ease-out),
      opacity 160ms ease;
  }

  .menu-toggle i:nth-child(1) { top: 15px; }
  .menu-toggle i:nth-child(2) { top: 21.2px; }
  .menu-toggle i:nth-child(3) { top: 27.4px; }

  .menu-toggle[aria-expanded="true"] i:nth-child(1) { top: 21.2px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-child(3) { top: 21.2px; transform: rotate(-45deg); }

  /* la CTA de escritorio estorba junto al boton */
  .site-header .nav-cta { display: none; }

  .mobile-panel {
    position: fixed;
    top: calc(var(--header-h) + 26px);
    left: 16px;
    right: 16px;
    z-index: 59;
    display: grid;
    gap: 2px;
    padding: 10px;
    color: var(--bone);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(23, 22, 20, 0.96);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -12px, 0);
    transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out),
      visibility 0s linear 320ms;
  }

  .mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .mobile-panel a {
    padding: 15px 14px;
    border-radius: 6px;
    font-weight: 700;
    transition: background 200ms ease;
  }

  .mobile-panel a:hover,
  .mobile-panel a:focus-visible { background: rgba(255, 255, 255, 0.09); }

  .mobile-panel a.is-cta {
    margin-top: 6px;
    color: var(--bone);
    background: var(--red);
    text-align: center;
  }

  .mobile-panel a.is-cta:hover { background: var(--red-dark); }
}

/* ---------- 15. Pagina "Por que funciona": hero editorial ---------- */

.why-hero { position: relative; overflow: hidden; }

.why-hero .px-layer img { filter: saturate(0.55) brightness(0.4); }

.why-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 18% 40%, rgba(23, 22, 20, 0.5), rgba(23, 22, 20, 0.93)),
    linear-gradient(0deg, rgba(23, 22, 20, 0.9), transparent 62%);
}

.why-hero-grid { position: relative; z-index: 2; }

.why-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.9rem, 5.6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.why-hero h1 .dim { color: rgba(251, 250, 246, 0.42); }
.why-hero h1 .hit { color: var(--wood-soft); }

.why-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: rgba(251, 250, 246, 0.8);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.why-stamp i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(223, 36, 28, 0.6);
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  to { box-shadow: 0 0 0 11px rgba(223, 36, 28, 0); }
}

/* La tarjeta traia un halo verde menta fuera de paleta */
.impact-meter {
  background: rgba(23, 22, 20, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.impact-meter::before,
.impact-meter::after { display: none !important; }

.impact-meter span { color: var(--wood-soft) !important; }

.impact-meter strong {
  font-family: var(--font-mono);
  font-size: clamp(3.4rem, 6vw, 5rem) !important;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.impact-meter em {
  display: block;
  margin: 6px 0 12px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: normal;
  line-height: 1.05;
}

/* ---------- 16. Grafico del diferenciador ---------- */

.diff {
  position: relative;
  padding: 104px 0;
  background: var(--bone);
  scroll-margin-top: 96px;
}

.diff::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(90deg, rgba(23, 22, 20, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.diff .container { position: relative; z-index: 2; }

.diff-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 20px;
}

.diff-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 0.95;
  text-wrap: balance;
}

.diff-head > div > p:not(.eyebrow),
.diff-head > p { margin: 0; color: rgba(23, 22, 20, 0.7); }

.diff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.diff-legend span { display: inline-flex; align-items: center; gap: 9px; }

.diff-legend i {
  width: 13px;
  height: 13px;
  border-radius: 2px;
}

.diff-legend .k-old { background: rgba(23, 22, 20, 0.26); }
.diff-legend .k-new { background: var(--red); }

.diff-chart {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diff-row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.diff-row:last-child { border-bottom: 0; }

.diff-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.1;
}

.diff-label small {
  display: block;
  margin-top: 6px;
  color: rgba(23, 22, 20, 0.6);
  font-size: 0.86rem;
  line-height: 1.45;
}

.diff-bars { display: grid; gap: 10px; }

.diff-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.diff-bar u {
  position: relative;
  display: block;
  height: 30px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(23, 22, 20, 0.07);
  text-decoration: none;
}

.diff-bar u::after {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w, 0%);
  content: "";
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1100ms var(--ease-out);
  transition-delay: var(--bar-delay, 0ms);
}

.is-in .diff-bar u::after { transform: scaleX(1); }

.diff-bar.is-old u::after { background: rgba(23, 22, 20, 0.26); }

.diff-bar.is-new u::after {
  background: linear-gradient(90deg, var(--red), #ef4b3f);
  box-shadow: 0 6px 22px rgba(223, 36, 28, 0.28);
}

.diff-bar b {
  min-width: 122px;
  color: rgba(23, 22, 20, 0.55);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.diff-bar.is-new b { color: var(--ink); }

.diff-note {
  display: block;
  margin-top: 30px;
  color: rgba(23, 22, 20, 0.55);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .diff-head,
  .diff-row { grid-template-columns: 1fr; gap: 18px; }
  .diff { padding: 74px 0; }
  .diff-bar b { min-width: 96px; font-size: 0.78rem; }
  .why-hero h1 { max-width: none; }
}

/* ---------- 17. Pulido de la tarjeta y del comparativo ---------- */

.impact-meter {
  justify-content: center;
  min-height: 340px;
}

.impact-meter strong { margin: 14px 0 0; }

.comparison-column span,
.evidence-list span { color: var(--wood-soft) !important; }
