/* ==========================================================================
   Obeket — estilos
   Estructura: tokens · base · utilidades · navegación · secciones · modal
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #6e6e73; /* textos pequeños secundarios: contraste AA (antes #86868b) */
  --line: #d2d2d7;
  --ink-d: #f5f5f7;
  --ink-d2: #a1a1a6;
  --ink-d3: #86868b;
  --link: #0066cc;
  --link-d: #2997ff;
  --accent: #0071e3;
  --wa: #25d366;
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 48px;
  --w: 1080px;
  --gutter: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;
  --grad: linear-gradient(90deg, #ff5f3a 0%, #ffae34 26%, #3ccf78 52%, #2f8cff 76%, #8b5cf6 100%);
}

@media (max-width: 734px) {
  :root { --gutter: 18px; --r-xl: 26px; --r-lg: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(0, 113, 227, .2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.s-dark :focus-visible, .hero :focus-visible, .tile--dark :focus-visible, .pcard--dark :focus-visible { outline-color: var(--link-d); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  padding: 10px 16px; border-radius: 12px; background: #000; color: #fff; font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(88px, 11vw, 160px); }
@media (max-width: 734px) { .section { padding-block: 60px; } } /* móvil: menos hueco entre bloques */
.s-light { background: var(--bg); }
.s-gray { background: var(--bg-2); }
.s-dark { background: #000; color: var(--ink-d); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ink-2);
}
.s-dark .eyebrow { color: var(--ink-d2); }
.eyebrow--grad { display: inline-block; }
.eyebrow--grad, .text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
@media (max-width: 734px) { .section-head { margin-bottom: 32px; } }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .cta-row { justify-content: center; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.section-head--row .section-lead { margin-top: 0; }
.section-title {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.035em;
}
.section-lead {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink-2);
}
.s-dark .section-lead { color: var(--ink-d2); }
.sub-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.032em;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 11px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 500; line-height: 1.2; letter-spacing: -.012em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: #e8e8ed; }
.btn--wa-dark { background: var(--wa); color: #052e16; }
.btn--wa-dark:hover { background: #2fe072; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 17px; letter-spacing: -.012em; color: var(--link);
}
.link-arrow::before { content: ""; position: absolute; inset: -10px -6px; } /* zona táctil de 44px sin cambiar el diseño */
.link-arrow::after {
  content: ""; width: 7px; height: 7px; margin-top: 1px;
  border-top: 1.7px solid currentColor; border-right: 1.7px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover::after { transform: translateX(2px) rotate(45deg); }
.s-dark .link-arrow, .hero .link-arrow, .tile--dark .link-arrow { color: var(--link-d); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }

/* ---------- Aparición al hacer scroll ---------- */
@keyframes revealIn { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: revealIn 1s var(--ease-out) var(--d, 0s) both; }

/* ==========================================================================
   Navegación global
   ========================================================================== */
.gnav {
  --nav-bg: rgba(250, 250, 252, .74);
  --nav-ink: rgba(0, 0, 0, .86);
  --nav-ink-2: rgba(0, 0, 0, .56);
  --nav-line: rgba(0, 0, 0, .1);
  --nav-cta-ink: #fff;
  --menu-bg: #fff;
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  color: var(--nav-ink);
}
.gnav[data-theme="dark"] {
  --nav-bg: rgba(22, 22, 23, .74);
  --nav-ink: rgba(255, 255, 255, .94);
  --nav-ink-2: rgba(255, 255, 255, .64);
  --nav-line: rgba(255, 255, 255, .1);
  --nav-cta-ink: #000;
  --menu-bg: #000;
}
.gnav::before {
  content: ""; position: absolute; inset: 0;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.gnav.is-scrolled::before { box-shadow: 0 1px 0 var(--nav-line); }
.gnav.is-menu-open::before { background: var(--menu-bg); box-shadow: none; }
.gnav__inner {
  position: relative; display: flex; align-items: center; gap: 24px;
  width: min(var(--w), 100% - 2 * var(--gutter)); height: 100%; margin-inline: auto;
}
.gnav__logo { display: flex; align-items: center; gap: 9px; flex: none; height: 100%; color: var(--nav-ink); }
.logo-mark { height: 19px; width: auto; aspect-ratio: 143.1 / 100; }
.logo-word { height: 14px; width: auto; aspect-ratio: 277 / 40; }
.gnav__logo .logo-word { translate: 0 -1px; }
.gnav__links { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 34px); margin-inline: auto; }
.gnav__links a { display: block; padding: 8px 0; font-size: 12.5px; letter-spacing: -.004em; color: var(--nav-ink-2); transition: color .25s var(--ease); }
.gnav__links a:hover, .gnav__links a.is-current { color: var(--nav-ink); }
.gnav__cta::before { content: ""; position: absolute; inset: -8px -4px; }
.gnav__cta {
  position: relative; flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 14px;
  border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--nav-ink); color: var(--nav-cta-ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), opacity .2s;
}
.gnav__cta:hover { opacity: .86; }
.gnav__cta-short { display: none; }
.gnav__burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -12px; flex: none; }
.gnav__burger span {
  position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.gnav__burger span:nth-child(1) { top: 18px; }
.gnav__burger span:nth-child(2) { top: 25px; }
.gnav.is-menu-open .gnav__burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.gnav.is-menu-open .gnav__burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: -1;
  padding: 14px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--menu-bg); color: var(--nav-ink);
  opacity: 0; transition: opacity .4s var(--ease);
}
.mmenu.is-open { opacity: 1; }
.mmenu__links a {
  display: block; padding: 8px 0;
  font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.mmenu.is-open .mmenu__links a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms + 60ms); }
.mmenu__foot { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; opacity: 0; transition: opacity .5s var(--ease) .35s; }
.mmenu.is-open .mmenu__foot { opacity: 1; }
.mmenu__social { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.mmenu__social a { display: inline-flex; align-items: center; gap: 8px; color: var(--nav-ink-2); }
.mmenu__social svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .gnav__links { display: none; }
  .gnav__cta { margin-left: auto; }
  .gnav__cta-long { display: none; }
  .gnav__cta-short { display: inline; }
  .gnav__burger { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; display: flex; flex-direction: column; min-height: max(700px, 100vh); min-height: max(700px, 100svh);
  overflow: hidden; background: #000; color: var(--ink-d); --p: 0;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  flex: 1; width: min(1180px, 100% - 2 * var(--gutter)); min-height: 0;
  margin-inline: auto; padding: 4px 0 36px;
}
.hero__copy { position: relative; z-index: 2; transform: translate3d(0, calc(var(--p) * -90px), 0); opacity: calc(1 - var(--p) * 1.7); }
.hero__eyebrow { color: var(--ink-d2); }
.hero__title { font-size: clamp(46px, 5.7vw, 90px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.hero__line { display: block; }
.hero__sub { max-width: 520px; margin-top: 26px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; color: var(--ink-d2); }
.hero__badge { display: flex; align-items: center; gap: 12px; margin-top: 44px; font-size: 13px; letter-spacing: 0; color: var(--ink-d3); }
.ams-dots { display: inline-flex; flex: none; }
.ams-dots i { width: 11px; height: 11px; margin-right: -3px; border-radius: 50%; box-shadow: 0 0 0 2px #000; }
.ams-dots i:nth-child(1) { background: #f4f3ef; }
.ams-dots i:nth-child(2) { background: #d7302f; }
.ams-dots i:nth-child(3) { background: #1e8a4d; }
.ams-dots i:nth-child(4) { background: #1f56c9; }
.hero__media { position: relative; z-index: 1; justify-self: center; height: min(66vh, 690px); height: min(66svh, 690px); aspect-ratio: 591 / 987; }
.hero__media img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  transform: translate3d(0, calc(var(--p) * 70px), 0) scale(calc(1 + var(--p) * .06));
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55));
}
.hero__glow {
  position: absolute; z-index: 0; left: 50%; top: 46%; width: 190%; aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 150, 80, .34), rgba(255, 115, 60, .12) 42%, rgba(90, 70, 255, .07) 64%, transparent 76%);
}
.hero__media::after {
  content: ""; position: absolute; z-index: 0; left: 18%; right: 18%; bottom: 1.5%; height: 3.5%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 110, .35), transparent);
  filter: blur(6px);
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.js .hero__eyebrow, .js .hero__line, .js .hero__sub, .js .hero__ctas, .js .hero__badge { animation: rise 1.1s var(--ease-out) both; }
.js .hero__eyebrow { animation-delay: .1s; }
.js .hero__line:nth-child(1) { animation-delay: .2s; }
.js .hero__line:nth-child(2) { animation-delay: .32s; }
.js .hero__sub { animation-delay: .46s; }
.js .hero__ctas { animation-delay: .56s; }
.js .hero__badge { animation-delay: .66s; }
.js .hero__media { animation: heroIn 1.6s var(--ease-out) .15s both; }

@media (max-width: 834px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 6px; min-height: 0; padding-top: 28px; padding-bottom: 0; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__badge { justify-content: center; margin-top: 30px; }
  .hero__media { height: min(64vh, 560px); height: min(64svh, 560px); margin-top: 10px; }
}

/* ==========================================================================
   Qué es Obeket
   ========================================================================== */
.manifesto { padding-block: clamp(72px, 9vw, 124px) clamp(64px, 8vw, 108px); }
@media (max-width: 734px) { .manifesto { padding-block: 52px 44px; } }
.manifesto__text { max-width: 880px; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.28; font-weight: 600; letter-spacing: -.022em; }
.js .manifesto__text .w { color: #d2d2d7; transition: color .4s var(--ease); }
.js .manifesto__text .w.is-lit { color: var(--ink); }
.values {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(44px, 5.5vw, 72px); padding-top: 36px; border-top: 1px solid var(--line);
}
.value__icon { width: 32px; height: 32px; margin-bottom: 18px; }
.value__k { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.value__t { margin-top: 6px; color: var(--ink-2); max-width: 30ch; }
@media (max-width: 734px) { .values { grid-template-columns: 1fr; } }

/* ==========================================================================
   Servicios (bento)
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px; min-height: 340px;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg);
  background: #fff; color: var(--ink);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile--wide { grid-column: span 2; }
.tile__eyebrow { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.tile__title { max-width: 16ch; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.032em; }
.tile__text { max-width: 36ch; margin-top: 12px; color: var(--ink-2); }
.tile__icon { width: 40px; height: 40px; flex: none; }
.tile__link { position: relative; z-index: 4; margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-right: 48px; }
.tags li { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-2); color: var(--ink-2); }
.tile__hit, .pcard__hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.plus {
  position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  transition: transform .35s var(--ease), background-color .3s;
}
.plus svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, .08); }
  .tile:hover .plus, .pcard:hover .plus { transform: scale(1.1); }
}

.tile--figure { flex-direction: row; align-items: stretch; min-height: 440px; padding-right: 0; padding-bottom: 0; }
.tile--figure .tile__body { flex: 1; align-self: flex-start; padding-bottom: clamp(26px, 3vw, 40px); }
.tile--figure .tile__media {
  position: relative; flex: 0 0 44%; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(closest-side at 50% 60%, rgba(255, 170, 110, .28), transparent 75%);
}
.tile--figure .tile__media img { height: 400px; width: auto; max-width: none; transform: translateY(6%); transition: transform .7s var(--ease); }
@media (hover: hover) { .tile--figure:hover .tile__media img { transform: translateY(2%) scale(1.03); } }

.tile__key { width: 78%; max-width: 300px; margin: auto auto 0; transform: rotate(-8deg); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .18)); transition: transform .7s var(--ease); }
@media (hover: hover) { .tile--keys:hover .tile__key { transform: rotate(-2deg) translateY(-6px); } }

.tile--dark { background: #000; color: var(--ink-d); }
.tile--dark .tile__eyebrow { color: var(--ink-d3); }
.tile--dark .tile__text { color: var(--ink-d2); }
.tile--biz { flex-direction: row; align-items: center; gap: 32px; }
.tile--biz .tile__body { flex: 1 1 48%; }
.tile--biz .tile__link { margin-top: 22px; }
.tile__strip { flex: 1 1 52%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile__strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; transition: transform .7s var(--ease); }
.tile__strip img:nth-child(2) { transform: translateY(-18px); }
@media (hover: hover) {
  .tile--biz:hover .tile__strip img:nth-child(1) { transform: translateY(-6px); }
  .tile--biz:hover .tile__strip img:nth-child(2) { transform: translateY(-26px); }
  .tile--biz:hover .tile__strip img:nth-child(3) { transform: translateY(-6px); }
}
.tile--cta { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.tile__btn { position: relative; z-index: 4; align-self: flex-start; margin-top: auto; }

@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--cta { grid-column: span 2; }
}
@media (max-width: 734px) {
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .tile--wide, .tile--cta { grid-column: auto; }
  .tile { min-height: 0; }
  .tile--figure { flex-direction: column; padding-right: clamp(26px, 3vw, 40px); }
  .tile--figure .tile__body { padding-bottom: 0; }
  .tile--figure .tile__media { flex: none; height: 300px; margin-inline: -26px; }
  .tile--figure .tile__media img { height: 330px; }
  .tile--biz { flex-direction: column; align-items: stretch; }
  .tile__strip { margin-top: 18px; }
  .tile__key { width: 70%; margin-top: 10px; margin-bottom: 8px; }
}

/* ==========================================================================
   Galería con autoplay
   ========================================================================== */
.hl { position: relative; outline: none; }
.hl:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hl__viewport { overflow: hidden; touch-action: pan-y; }
.hl__track { display: flex; gap: 24px; transition: transform 1s var(--ease); will-change: transform; }
.hl__slide { flex: 0 0 min(1120px, 86%); transition: opacity .6s var(--ease); }
.hl__slide:not(.is-active) { opacity: .4; cursor: pointer; }
.hl__card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  height: clamp(420px, 46vw, 600px); border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2);
}
.hl__caption { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 60px); }
.hl__caption h3 { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -.036em; }
.hl__caption p { max-width: 28ch; margin-top: auto; padding-top: 20px; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); }
.hl__media { position: relative; overflow: hidden; }
.hl__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.hl__slide.is-active .hl__media img { transform: none; }
.hl__media--top img { object-position: 50% 18%; }
.hl__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.hl__dots {
  display: flex; align-items: center; height: 56px; padding: 0 18px; border-radius: 999px;
  background: rgba(210, 210, 215, .64); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
}
.hl__dot { display: grid; place-items: center; height: 44px; padding: 0 6px; }
.hl__bar { position: relative; display: block; width: 8px; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(0, 0, 0, .42); transition: width .5s var(--ease), background-color .3s; }
.hl__dot:hover .hl__bar { background: rgba(0, 0, 0, .6); }
.hl__dot.is-active .hl__bar { width: 48px; background: rgba(0, 0, 0, .18); }
.hl__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.hl__dot:not(.is-active) .hl__fill { transform: scaleX(0) !important; }
.hl__play {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(210, 210, 215, .64); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  transition: background-color .3s;
}
.hl__play:hover { background: rgba(200, 200, 205, .95); }
.hl__play svg { display: none; width: 22px; height: 22px; }
.hl__play[data-state="pause"] .i-pause, .hl__play[data-state="play"] .i-play, .hl__play[data-state="replay"] .i-replay { display: block; }
@media (max-width: 734px) {
  .hl__track { gap: 14px; }
  .hl__slide { flex-basis: 88%; }
  .hl__card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: auto; aspect-ratio: 4 / 5.4; }
  .hl__caption { padding: 26px 24px 20px; }
  .hl__caption p { margin-top: 10px; padding-top: 0; font-size: 16px; }
}

/* ==========================================================================
   Productos (carrusel de tarjetas)
   ========================================================================== */
.products .section-head { margin-bottom: 30px; }
.chips { display: flex; gap: 8px; margin-bottom: 8px; padding: 4px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32); }
@media (pointer: coarse) { .chip { height: 40px; } }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.scroller__track {
  --pad: max(var(--gutter), calc((100% - var(--w)) / 2));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 16px var(--pad) 36px; scrollbar-width: none;
}
.scroller__track::-webkit-scrollbar { display: none; }
.pcard {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 clamp(280px, 29vw, 360px); height: clamp(480px, 44vw, 580px);
  display: flex; flex-direction: column; scroll-snap-align: start;
  border-radius: var(--r-lg); background: #fff; color: var(--ink);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pcard[hidden] { display: none; }
@media (hover: hover) { .pcard:hover { transform: scale(1.012); box-shadow: 0 16px 40px rgba(0, 0, 0, .1); } }
.pcard--dark { background: #000; color: var(--ink-d); }
.pcard--dark .plus { background: #fff; color: #000; }
.pcard__text { position: relative; z-index: 2; padding: 30px 30px 0; }
.pcard__eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.pcard--dark .pcard__eyebrow { color: var(--ink-d3); }
.pcard__title { max-width: 13ch; margin-top: 6px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; font-weight: 700; letter-spacing: -.032em; }
.pcard__media { position: relative; flex: 1; min-height: 0; margin: 14px 22px 28px; }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .8s var(--ease); }
@media (hover: hover) { .pcard:hover .pcard__media img { transform: scale(1.04); } }
.pcard__media--center img { object-position: center; }
.pcard__media--flush { margin: 14px 0 0; }
.pcard__media--cover { position: absolute; inset: 0; z-index: 0; margin: 0; }
.pcard__media--cover img { object-fit: cover; object-position: center 80%; }
.pcard--merch { background: #d3d3d5; }
.pcard--merch .pcard__eyebrow { color: #515154; }
.pcard--merch .pcard__media--cover::after { content: ""; position: absolute; inset: 0 0 55%; background: linear-gradient(#d3d3d5 30%, rgba(211, 211, 213, 0)); }
.pcard--any { background: radial-gradient(120% 70% at 85% 100%, #1b2a4d 0%, #000 62%); }
.pcard__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 24px 30px 76px; }
.pcard__list li { padding: 7px 13px; border-radius: 999px; font-size: 14px; color: var(--ink-d); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.pcard.is-entering { animation: cardIn .55s var(--ease-out) both; }
.paddles { display: flex; justify-content: flex-end; gap: 14px; width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.paddle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(210, 210, 215, .64); color: var(--ink); transition: background-color .3s, opacity .3s; }
.paddle:hover:not(:disabled) { background: rgba(200, 200, 205, 1); }
.paddle:disabled { opacity: .35; cursor: default; }
.paddle svg { width: 20px; height: 20px; }
@media (max-width: 734px) {
  .pcard { flex-basis: 78%; height: 500px; }
  .scroller__track { gap: 14px; }
}

/* ==========================================================================
   Configurador de llaveros
   ========================================================================== */
.cfg { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cfg__stage {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; perspective: 1000px;
  border-radius: var(--r-xl);
  background: radial-gradient(110% 80% at 50% 22%, #fff 0%, #f5f5f7 55%, #e8e8ed 100%);
}
.cfg__float { width: 84%; animation: float 7s ease-in-out infinite; }
.cfg__tilt { transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
#kc { width: 100%; height: auto; overflow: visible; }
@keyframes float { 0%, 100% { transform: translateY(-7px) rotate(-1.2deg); } 50% { transform: translateY(7px) rotate(1.2deg); } }
@keyframes bump { 0% { scale: 1; } 35% { scale: 1.05; } 100% { scale: 1; } }
.cfg__stage.is-bump .cfg__tilt { animation: bump .5s var(--ease-out); }
.cfg__note { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; font-size: 12px; color: var(--ink-3); }
.cfg__panel { display: flex; flex-direction: column; gap: 30px; }
.opt { min-width: 0; padding: 0; border: 0; }
.opt__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; margin-bottom: 12px; padding: 0;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
legend.opt__head { float: left; }
.opt__val { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.choices, .swatches { clear: both; }
.choices { display: grid; gap: 10px; }
.choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--shapes { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.choices--shapes .choice > span { min-height: 80px; padding: 10px 4px; font-size: 12px; line-height: 1.2; }
.choices--shapes .choice svg { width: 28px; height: 28px; }
.choice svg text { fill: currentColor; stroke: none; font-family: var(--font); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 84px; padding: 12px 6px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 500; text-align: center;
  transition: box-shadow .2s, background-color .2s;
}
.choice:hover > span { box-shadow: inset 0 0 0 1px var(--ink-3); }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ff { font-size: 24px; line-height: 1; font-weight: 700; }
.ff--moderna { font-family: var(--font); font-weight: 800; }
.ff--clasica { font-family: Georgia, "Times New Roman", Times, serif; }
.ff--manuscrita { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", "Dancing Script", cursive; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 34px; height: 34px; cursor: pointer; }
.swatch input { position: absolute; inset: -5px; margin: 0; opacity: 0; cursor: pointer; } /* 44px táctiles: llega hasta la mitad del hueco */
.swatch__dot { display: block; width: 100%; height: 100%; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: box-shadow .2s, transform .2s; }
.swatch:hover .swatch__dot { transform: scale(1.08); }
.swatch input:checked + .swatch__dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.swatch input:focus-visible + .swatch__dot { outline: 2px solid var(--accent); outline-offset: 5px; }
.swatch__dot--none { background: #fff linear-gradient(135deg, transparent calc(50% - 1px), #d70015 calc(50% - 1px), #d70015 calc(50% + 1px), transparent calc(50% + 1px)); }
.swatch-more { display: none; }
@media (max-width: 834px) {
  /* Móvil: 10 colores básicos + el elegido; el resto con «Más colores» */
  .swatches:not(.is-open) .swatch.is-extra:not(.is-sel) { display: none; }
  .swatch-more {
    position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
    border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink);
    background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  }
  .swatch-more::before { content: ""; position: absolute; inset: -5px; }
}
.input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); font-size: 17px; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #86868b; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
textarea.input { height: auto; min-height: 112px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
select.input {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.opt--row { display: flex; align-items: center; justify-content: space-between; }
.opt--row .opt__head { width: auto; margin: 0; }
.qty { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.qty input { width: 52px; height: 44px; border: 0; background: transparent; text-align: center; font-size: 17px; font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.qty input:focus { outline: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cfg__hint { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-3); }

.ideas { margin-top: clamp(64px, 8vw, 104px); text-align: center; }
.ideas__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.028em; }
.ideas__lead { margin-top: 6px; color: var(--ink-2); }
.ideas__grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.idea { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; font-size: 14px; font-weight: 500; }
.idea__img { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: #f3ebdf; transition: transform .3s var(--ease); }
.idea__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .5s var(--ease); }
@media (hover: hover) { .idea:hover .idea__img img { transform: scale(1.2); } }
.idea:active .idea__img { transform: scale(.96); }

@media (max-width: 1068px) { .ideas__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 834px) {
  .cfg { grid-template-columns: 1fr; gap: 0; }
  .cfg__stage {
    top: var(--nav-h); z-index: 5; aspect-ratio: auto; height: min(44vh, 380px); height: min(44svh, 380px);
    margin-inline: calc(-1 * var(--gutter)); border-radius: 0 0 26px 26px;
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .35);
  }
  .cfg__float { width: auto; height: 86%; aspect-ratio: 400 / 420; }
  .cfg__note { bottom: 10px; }
  .cfg__panel { padding-top: 30px; }
  /* Móvil: las ideas van justo debajo de la vista previa, para empezar desde un ejemplo.
     .cfg se "deshace" para poder ordenar vista previa → ideas → opciones; la vista previa
     sigue fija arriba mientras se recorren. */
  .configurator .container { display: flex; flex-direction: column; }
  .cfg { display: contents; }
  .cfg__stage { order: 1; }
  .configurator .ideas { order: 2; margin-top: 28px; }
  .cfg__panel { order: 3; }
  .ideas__grid { display: flex; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ideas__grid::-webkit-scrollbar { display: none; }
  .ideas__grid li { flex: 0 0 108px; scroll-snap-align: start; }
}
@media (max-width: 734px) {
  .choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice > span { min-height: 72px; }
}

/* ==========================================================================
   Empresas
   ========================================================================== */
.biz-hero { margin: 0; }
.biz-hero img { width: 100%; border-radius: var(--r-xl); background: #d3d3d5; }
.biz-hero figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(56px, 7vw, 96px); }
.feature__icon { width: 32px; height: 32px; margin-bottom: 14px; }
.feature h3 { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.016em; }
.feature p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.biz-ideas { margin-top: clamp(72px, 9vw, 120px); }
.biz-ideas__head, .materials__head { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.seg { position: relative; display: inline-flex; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: 999px; background: rgba(0, 0, 0, .06); scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__indicator { position: absolute; top: 4px; left: 0; width: 0; height: calc(100% - 8px); border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .1); transition: transform .5s var(--ease), width .5s var(--ease); }
.seg__tab { position: relative; z-index: 1; flex: none; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; color: #636368; transition: color .3s; }
.seg__tab:hover, .seg__tab[aria-selected="true"] { color: var(--ink); }
.seg--dark { background: rgba(255, 255, 255, .1); }
.seg--dark .seg__indicator { background: var(--ink-d); }
.seg--dark .seg__tab { color: var(--ink-d2); }
.seg--dark .seg__tab:hover { color: var(--ink-d); }
.seg--dark .seg__tab[aria-selected="true"] { color: #000; }
.tabpanels { display: grid; margin-top: 44px; }
.tabpanel {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s linear .5s;
}
.tabpanel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.tabpanel img { width: 100%; border-radius: var(--r-lg); background: #d3d3d5; }
.tabpanel h4 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.tabpanel p { margin-top: 12px; font-size: 18px; color: var(--ink-2); }
.tabpanel__ideal strong { font-weight: 600; color: var(--ink); }
.biz-ideas__more { margin-top: 34px; text-align: center; font-size: 15px; color: var(--ink-3); }
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(64px, 8vw, 104px); }
.steps-row li { padding: 26px; border-radius: var(--r-md); background: #fff; }
.steps-row__n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; }
.steps-row h3 { font-size: 18px; font-weight: 700; letter-spacing: -.016em; }
.steps-row p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.quote {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px);
  margin-top: 20px; padding: clamp(28px, 4.5vw, 64px); border-radius: var(--r-xl); background: #fff;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.quote__intro p { margin-top: 14px; color: var(--ink-2); }
.quote__alt a { color: var(--link); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field--full { grid-column: 1 / -1; }
.field .input { height: 50px; font-size: 16px; }
.field textarea.input { height: auto; }
.field--full .btn { align-self: flex-start; }

@media (max-width: 1068px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 834px) {
  .tabpanel { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .biz-ideas__head .seg, .materials__head .seg { align-self: stretch; }
}
@media (max-width: 734px) {
  /* Móvil: los 4 pasos en una sola tarjeta, como lista */
  .biz-ideas { margin-top: 52px; }
  .steps-row { grid-template-columns: 1fr; gap: 0; margin-top: 44px; border-radius: var(--r-md); background: #fff; }
  .steps-row li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; padding: 15px 18px; border-radius: 0; background: none; }
  .steps-row li + li { border-top: 1px solid var(--line); }
  .steps-row__n { grid-row: span 2; width: 30px; height: 30px; margin: 1px 0 0; font-size: 14px; }
  .steps-row h3 { font-size: 16px; }
  .steps-row p { margin-top: 2px; font-size: 14px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .features, .steps-row { grid-template-columns: 1fr; }
  .field--full .btn { align-self: stretch; }
}

/* ==========================================================================
   El taller (oscuro)
   ========================================================================== */
.ws-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.ws-media { margin: 0; }
.ws-media img { width: 100%; border-radius: var(--r-xl); }
.ws-media figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-d3); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.stat__num {
  display: flex; align-items: baseline; gap: 6px;
  font-size: clamp(48px, 5.6vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #8e8e93);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__unit { font-size: .38em; letter-spacing: -.02em; }
.stat__label { max-width: 24ch; margin-top: 12px; font-size: 16px; color: var(--ink-d2); }

.ams {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(72px, 9vw, 128px); padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--r-xl); background: linear-gradient(160deg, #1d1d1f, #0b0b0c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ams__text p { margin-top: 14px; font-size: 18px; color: var(--ink-d2); }
.ams__unit {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px);
  padding: clamp(16px, 2vw, 26px) clamp(16px, 2vw, 26px) clamp(12px, 1.6vw, 18px);
  border-radius: 28px; background: linear-gradient(180deg, #2c2c2e, #161617);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 60px rgba(0, 0, 0, .5);
}
.spool { position: relative; display: flex; flex-direction: column; align-items: center; }
.spool::before {
  content: ""; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 2.5px, rgba(0, 0, 0, .17) 2.5px 3.5px), var(--c);
  box-shadow: inset 0 0 0 5px #3a3a3c, inset 0 0 0 7px rgba(0, 0, 0, .4), 0 8px 20px rgba(0, 0, 0, .45);
}
.spool::after {
  content: ""; position: absolute; top: 0; left: 30%; width: 40%; aspect-ratio: 1; margin-top: 30%; border-radius: 50%;
  background: radial-gradient(circle, #0b0b0c 0 22%, transparent 23%), conic-gradient(#2c2c2e 0 20%, #55555a 20% 33.3%, #2c2c2e 33.3% 53.3%, #55555a 53.3% 66.6%, #2c2c2e 66.6% 86.6%, #55555a 86.6%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
}
.ams.is-in .spool::after { animation: spin 6s linear infinite; }
.ams.is-in .spool:nth-child(2)::after { animation-duration: 7.5s; animation-direction: reverse; }
.ams.is-in .spool:nth-child(3)::after { animation-duration: 5.2s; }
.ams.is-in .spool:nth-child(4)::after { animation-duration: 8.4s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.spool span { margin-top: 10px; font-size: 13px; color: var(--ink-d2); }

.materials { margin-top: clamp(72px, 9vw, 128px); }
.mat h4 { color: var(--ink-d); }
.mat p { color: var(--ink-d2); }
.mat .tabpanel__ideal strong { color: var(--ink-d); }
.bars { display: grid; gap: 18px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 16px; font-size: 15px; color: var(--ink-d2); }
.bar__track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--grad); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease) .15s; }
.tabpanel.is-active .bar__fill { transform: scaleX(var(--v)); }
.js .materials:not(.is-in) .bar__fill { transform: scaleX(0); }
.materials__note { margin-top: 36px; text-align: center; font-size: 14px; color: var(--ink-d3); }
@media (max-width: 834px) {
  .ws-grid, .ams { grid-template-columns: 1fr; }
  .mat { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .stat__num { font-size: 44px; }
  .stat__label { font-size: 14px; }
  .bar { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ==========================================================================
   Cómo funciona
   ========================================================================== */
.process__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.process__visual {
  --pv: min(40vw, 500px);
  position: sticky; top: calc(var(--nav-h) + (100vh - var(--nav-h) - var(--pv)) / 2);
  align-self: start; height: var(--pv);
}
.pv { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-2); opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.pv.is-active { opacity: 1; transform: none; }
.pv img { width: 100%; height: 100%; object-fit: cover; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: min(72vh, 600px); opacity: .25; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step__num { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.step h3 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -.036em; }
.step p { max-width: 32ch; margin-top: 16px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); }
.step__media { display: none; }

.pv--chat { background: linear-gradient(160deg, #e3f6ea, #f5f5f7 70%); }
.chat { position: absolute; inset: 9% 11%; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: #efeae2; box-shadow: 0 24px 50px rgba(0, 0, 0, .12); }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.chat__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #000; color: #fff; }
.chat__avatar svg { width: 22px; height: 16px; }
.chat__who { display: flex; flex-direction: column; line-height: 1.2; }
.chat__who strong { font-size: 15px; }
.chat__who span { font-size: 12px; color: #1f9d55; }
.chat__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; }
.bubble {
  max-width: 84%; padding: 9px 12px; border-radius: 15px; font-size: 14.5px; line-height: 1.38;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .07);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.bubble--me { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 5px; }
.bubble--them { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.pv.is-active .bubble { opacity: 1; transform: none; }
.pv.is-active .bubble:nth-child(2) { transition-delay: .4s; }
.pv.is-active .bubble:nth-child(3) { transition-delay: .8s; }
.pv.is-active .bubble:nth-child(4) { transition-delay: 1.2s; }
.chat--mini { position: relative; inset: auto; box-shadow: none; border-radius: 20px; }
.chat--mini .bubble { opacity: 1; transform: none; }

@media (max-width: 834px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__visual { display: none; }
  .step { min-height: 0; padding-bottom: 56px; opacity: 1; }
  .step:last-child { padding-bottom: 0; }
  .step__media { display: block; aspect-ratio: 1; margin-bottom: 22px; overflow: hidden; border-radius: 24px; background: var(--bg-2); }
  .step__media img { width: 100%; height: 100%; object-fit: cover; }
  .step__media--chat { aspect-ratio: auto; padding: 18px; background: linear-gradient(160deg, #e3f6ea, #f5f5f7 70%); }
}

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */
.faq { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); transition: transform .45s var(--ease), background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: background-color .3s; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item:not(.is-open) summary:hover .faq__icon { background: var(--line); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--ink); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__a { overflow: hidden; transition: height .45s var(--ease); }
.faq__a > div { padding: 0 56px 28px 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.faq__a a { color: var(--link); }
@media (max-width: 734px) { .faq__a > div { padding-right: 0; } }

/* ==========================================================================
   Contacto (oscuro)
   ========================================================================== */
.contact__title { font-size: clamp(56px, 9vw, 120px); }
.ccards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ccard {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(26px, 3vw, 36px); border-radius: var(--r-lg); background: #161617; color: var(--ink-d);
  transition: transform .5s var(--ease), background-color .3s;
}
@media (hover: hover) { .ccard:hover { transform: translateY(-6px); background: #1d1d1f; } }
.ccard__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; color: #fff; }
.ccard__icon svg { width: 30px; height: 30px; }
.ccard--wa .ccard__icon { background: var(--wa); }
.ccard--ig .ccard__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ccard--tt .ccard__icon { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ccard--tt .ccard__icon svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.ccard h3 { font-size: 24px; font-weight: 700; letter-spacing: -.022em; }
.ccard__handle { margin-top: 4px; font-size: 19px; font-weight: 500; }
.ccard__text { margin-top: 8px; font-size: 16px; color: var(--ink-d2); }
.ccard .link-arrow { margin-top: auto; padding-top: 22px; }
.contact__mail { margin-top: 22px; text-align: center; font-size: 16px; color: var(--ink-d2); }
.contact__mail a { padding-block: 10px; color: var(--link-d); } /* el relleno amplía la zona táctil sin mover nada */
.contact__mail a:hover { text-decoration: underline; }.quick {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px);
  margin-top: 20px; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-xl); background: #161617;
}
.quick__intro p { margin-top: 12px; color: var(--ink-d2); }
.quick__form { display: flex; flex-direction: column; gap: 18px; }
.quick__types { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; }
.quick__types legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background-color .2s, color .2s, box-shadow .2s; }
.pill:hover span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.pill input:checked + span { background: var(--ink-d); color: #000; box-shadow: none; }
.pill input:focus-visible + span { outline: 2px solid var(--link-d); outline-offset: 2px; }
.s-dark .field label { color: var(--ink-d); }
.s-dark .input { border-color: rgba(255, 255, 255, .14); background: #1d1d1f; color: var(--ink-d); }
.s-dark .input::placeholder { color: #6e6e73; }
.s-dark .input:focus { border-color: var(--link-d); box-shadow: 0 0 0 4px rgba(41, 151, 255, .25); }
.quick__form .btn { align-self: flex-start; }
@media (max-width: 834px) {
  .ccards, .quick { grid-template-columns: 1fr; }
  .quick__form .btn { align-self: stretch; }
}
@media (max-width: 734px) {
  /* Móvil: WhatsApp, Instagram y TikTok en filas (icono · texto · flecha) */
  .ccards { gap: 10px; }
  .ccard { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; }
  .ccard__icon { grid-column: 1; grid-row: 1 / span 3; width: 48px; height: 48px; margin: 0; border-radius: 13px; }
  .ccard__icon svg { width: 26px; height: 26px; }
  .ccard h3, .ccard__handle, .ccard__text { grid-column: 2; }
  .ccard h3 { font-size: 18px; }
  .ccard__handle { margin-top: 0; font-size: 15px; }
  .ccard__text { margin-top: 2px; font-size: 13px; line-height: 1.35; }
  .ccard .link-arrow { grid-column: 3; grid-row: 1 / span 3; margin: 0; padding: 0; gap: 0; font-size: 0; color: var(--ink-d2); }
  .ccard .link-arrow::after { width: 9px; height: 9px; }
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
.footer { padding: 44px 0 32px; font-size: 12px; line-height: 1.6; color: var(--ink-2); background: var(--bg-2); }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--ink); }
.footer__brand .logo-mark { height: 20px; }
.footer__brand .logo-word { height: 15px; translate: 0 -1px; }
.footer__notes { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer__notes p + p { margin-top: 6px; }
/* Nota de privacidad (primera capa) + «Más información» desplegable */
.footer__privacy { margin-top: 10px; }
.footer__privacy strong { font-weight: 600; color: var(--ink); }
.footer__privacy a { color: var(--link); }
.footer__privacy a:hover { text-decoration: underline; }
.footer__more summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
}
.footer__more summary::-webkit-details-marker { display: none; }
.footer__more summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s var(--ease), margin .25s var(--ease);
}
.footer__more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.footer__more ul { display: grid; gap: 6px; max-width: 86ch; padding-bottom: 6px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 26px 0; }
.footer__cols h3 { margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.footer__cols li + li { margin-top: 7px; }
.footer__cols a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer__social { display: flex; gap: 6px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); transition: background-color .2s, color .2s; }
.footer__social a:hover { background: var(--bg-3); color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; }
@media (max-width: 734px) {
  /* Pie corto en el móvil: «Sigue explorando», justo encima, ya lleva a todos los apartados.
     El hueco de abajo deja sitio al botón de WhatsApp para que no tape el texto. */
  .footer { padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); }
  .footer__brand { margin-bottom: 14px; }
  .footer__notes { padding-bottom: 14px; }
  .footer__cols { display: none; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 2px; padding-top: 8px; border-top: 0; }
  .footer__social { margin-left: -13px; }
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.wa-fab {
  position: fixed; z-index: 90;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(24px) scale(.92); pointer-events: none;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab__label {
  padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(29, 29, 31, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.wa-fab__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: var(--wa);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35), 0 4px 10px rgba(0, 0, 0, .15);
  transition: transform .3s var(--ease);
}
.wa-fab__icon svg { width: 30px; height: 30px; }
@media (hover: hover) { .wa-fab:hover .wa-fab__icon { transform: scale(1.07); } }
@media (max-width: 734px) { .wa-fab__label { display: none; } }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: transparent; }
.modal__scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  opacity: 0; transition: opacity .32s var(--ease);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: relative; width: min(1000px, 100% - 32px); margin: clamp(16px, 7vh, 80px) auto;
  padding: clamp(28px, 5vw, 80px); border-radius: var(--r-xl); background: #fff;
  opacity: 0; transform: translateY(48px) scale(.98); transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: sticky; top: 16px; z-index: 5; float: right; display: grid; place-items: center;
  width: 40px; height: 40px; margin: -12px -12px 0 12px; border-radius: 50%; background: #333336; color: #fff;
  transition: background-color .2s, transform .2s;
}
.modal__close:hover { background: #000; transform: scale(1.06); }
.modal__close svg { width: 18px; height: 18px; }
.modal__title { max-width: 16ch; margin-top: 4px; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.036em; }
.modal__lead { max-width: 46ch; margin-top: 20px; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.4; color: var(--ink-2); }
.modal__media { position: relative; height: clamp(280px, 40vw, 460px); margin-top: 36px; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.modal__media img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); max-width: none; object-fit: contain; }
.modal__media--dark { background: #000; }
.modal__media--cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.modal__cols h3 { margin-bottom: 12px; font-size: 19px; font-weight: 700; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li + li { margin-top: 9px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.modal .cta-row { margin-top: 40px; }
@media (max-width: 734px) {
  .modal__panel { width: 100%; min-height: 88vh; min-height: 88svh; margin: 12vh 0 0; margin-top: 12svh; border-radius: 28px 28px 0 0; transform: translateY(80px); }
  .modal__cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Apartados: fila de accesos, vistas y "Sigue explorando"
   ========================================================================== */
[data-view][hidden] { display: none !important; }
@keyframes viewIn { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
.view-enter { animation: viewIn .7s var(--ease-out) both; }
.section.is-first { padding-top: calc(var(--nav-h) + clamp(44px, 6.5vw, 100px)); }
[data-view][tabindex="-1"]:focus, h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

.chapternav { position: relative; z-index: 3; padding-top: calc(var(--nav-h) + 12px); }
.chapternav__list {
  display: flex; justify-content: center; gap: 2px;
  width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto;
}
.chapternav__list > li { flex: none; }
.chapternav__item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 94px; padding: 10px 8px 11px; border-radius: 16px;
  font-size: 12px; font-weight: 500; line-height: 1.25; letter-spacing: -.005em; white-space: nowrap;
  color: var(--ink-d2); transition: color .25s var(--ease), background-color .25s var(--ease);
}
.chapternav__item svg { width: 30px; height: 30px; color: var(--ink-d); opacity: .82; transition: opacity .25s var(--ease), transform .4s var(--ease); }
.chapternav__item:hover { color: var(--ink-d); }
.chapternav__item:hover svg { opacity: 1; transform: translateY(-2px); }
.chapternav::after {
  content: ""; display: block; width: min(var(--w), 100% - 2 * var(--gutter)); height: 1px;
  margin: 8px auto 0; background: rgba(255, 255, 255, .12);
}
.js .chapternav { animation: rise 1s var(--ease-out) both; }

.explore { padding: 0 0 clamp(36px, 4.5vw, 56px); background: var(--bg-2); }
.explore::before {
  content: ""; display: block; width: min(var(--w), 100% - 2 * var(--gutter)); height: 1px;
  margin: 0 auto clamp(30px, 4vw, 44px); background: var(--line);
}
.explore__title { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: -.005em; text-align: center; color: var(--ink-3); }
.explore .chapternav__item { color: var(--ink-2); }
.explore .chapternav__item svg { color: var(--ink); opacity: .78; }
.explore .chapternav__item:hover { color: var(--ink); }
.explore .chapternav__item[aria-current="page"] { color: var(--ink); background: var(--bg); }
.explore .chapternav__item[aria-current="page"] svg { opacity: 1; }

@media (max-width: 1068px) {
  .chapternav__item { min-width: 84px; }
}
@media (max-width: 834px) {
  .chapternav { padding-top: calc(var(--nav-h) + 4px); }
  .chapternav__list {
    justify-content: flex-start; width: 100%; padding-inline: calc(var(--gutter) - 10px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .chapternav__list::-webkit-scrollbar { display: none; }
  .chapternav__list > li { scroll-snap-align: start; }
  .chapternav__item { min-width: 78px; padding-inline: 6px; }
  .chapternav__item svg { width: 26px; height: 26px; }
}

/* ==========================================================================
   Vídeos en bucle (se reproducen al verse; botón de pausa)
   ========================================================================== */
.vid { position: relative; overflow: hidden; background: #000; }
.vid > img, .vid > video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: cover;
}
.vid > video { opacity: 0; transition: opacity .7s var(--ease); }
.vid.is-playing > video { opacity: 1; }
.vid__btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; color: #fff;
  background: rgba(36, 36, 38, .58); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.vid__btn::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.vid__btn:hover { background: rgba(36, 36, 38, .82); transform: scale(1.06); }
.vid__btn svg { width: 14px; height: 14px; }
.vid__btn .vid__i-play, .vid__btn[data-state="play"] .vid__i-pause { display: none; }
.vid__btn[data-state="play"] .vid__i-play { display: block; }
.pv > .vid { position: absolute; inset: 0; }

.ws-media__frame { position: relative; }
.ws-media__frame + figcaption { max-width: 60%; }
.ws-pip {
  position: absolute; z-index: 2; right: -34px; bottom: -40px; width: 32%; aspect-ratio: 432 / 768;
  border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 26px 50px rgba(0, 0, 0, .65);
}
.ws-pip .vid__btn { right: 9px; bottom: 9px; width: 30px; height: 30px; }
.ws-pip .vid__btn svg { width: 12px; height: 12px; }
.ws-pip__tag {
  position: absolute; z-index: 3; left: 9px; top: 9px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: #fff;
  background: rgba(36, 36, 38, .58); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ws-pip__tag i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; animation: pipPulse 1.8s ease-in-out infinite; }
@keyframes pipPulse { 50% { opacity: .3; } }
@media (max-width: 834px) {
  .ws-pip { right: 14px; bottom: -28px; width: 30%; border-radius: 18px; }
}

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1 !important; }
  .hero__copy, .hero__media img { transform: none !important; opacity: 1 !important; }
}
