/* ============================================================
   Mimu · landing
   Tokens, tipografía y componentes. Valores tomados del diseño.
   ============================================================ */

/* ---------- Fuentes (Degular, self-hosted en woff2) ---------- */
@font-face {
  font-family: 'degular-variable';
  src: url('fonts/degular-variable.woff2') format('woff2-variations'),
       url('fonts/degular-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'degular-mono';
  src: url('fonts/degular-mono.woff2') format('woff2-variations'),
       url('fonts/degular-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --stage: oklch(0.135 0.004 60);
  --bg: oklch(0.165 0.004 60);
  --surface: oklch(0.205 0.005 60);
  --surface-2: oklch(0.248 0.006 60);
  --border: oklch(0.3 0.006 65);
  --border-soft: oklch(0.25 0.006 60);
  --text: oklch(0.965 0.004 90);
  --text-dim: oklch(0.735 0.006 80);
  --text-faint: oklch(0.55 0.006 75);
  --accent: oklch(0.86 0.195 128);
  --accent-ink: oklch(0.24 0.07 128);
  --accent-soft: oklch(0.86 0.195 128 / 0.13);
  --accent-line: oklch(0.86 0.195 128 / 0.32);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  --shadow-sm: 0 12px 34px -18px rgba(0, 0, 0, .5);

  --font: 'degular-variable', system-ui, -apple-system, sans-serif;
  --font-mono: 'degular-mono', ui-monospace, monospace;
  --max: 1200px;
  --gutter: 32px;
}

[data-theme="light"] {
  --stage: oklch(0.955 0.004 85);
  --bg: oklch(0.985 0.002 85);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.965 0.004 85);
  --border: oklch(0.9 0.005 85);
  --border-soft: oklch(0.93 0.004 85);
  --text: oklch(0.225 0.006 65);
  --text-dim: oklch(0.46 0.006 75);
  --text-faint: oklch(0.6 0.006 75);
  --accent: oklch(0.78 0.185 128);
  --accent-ink: oklch(0.22 0.07 128);
  --accent-soft: oklch(0.78 0.185 128 / 0.15);
  --accent-line: oklch(0.78 0.185 128 / 0.4);
  --shadow: 0 30px 70px -32px rgba(20, 24, 10, .26);
  --shadow-sm: 0 12px 30px -18px rgba(20, 24, 10, .2);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* Salto al contenido para navegación por teclado */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Página 404 ---------- */
.notfound {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 80px var(--gutter);
}
.notfound__code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent);
}
.notfound__title { font-weight: 700; font-size: 44px; letter-spacing: -.035em; margin: 0; }
.notfound__body { color: var(--text-dim); font-size: 17px; margin: 0; max-width: 420px; text-wrap: pretty; }

/* ---------- Animaciones ---------- */
@keyframes mlspin    { to { transform: rotate(360deg); } }
@keyframes mlfloat   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mlfloat2  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes mlcaret   { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes mlmarquee { to { transform: translateX(-50%); } }
@keyframes mlbar     { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes mlplay    { 0% { left: 0; } 100% { left: 100%; } }
@keyframes mlrise    { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes mlsweep   { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(220%); } }
@keyframes mlpop     { 0%, 20% { transform: scale(.8); opacity: 0; } 35%, 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }

.reveal { animation: mlrise .7s cubic-bezier(.2, .7, .2, 1) both; }

[data-lift] { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
[data-lift]:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s, transform .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent-line); }
.btn--soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn--soft:hover { border-color: var(--accent-line); }

.btn--sm { border-radius: 10px; padding: 9px 16px; font-size: 14px; }
.btn--sm:hover { transform: none; }
.btn--lg { padding: 15px 24px; font-size: 16px; }
.btn--xl { padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; border-radius: 11px; padding: 12px; font-size: 14.5px; margin-bottom: 24px; }
.btn--block:hover { transform: none; }

/* ---------- Segmented control ---------- */
.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.segmented__btn {
  background: transparent;
  color: var(--text-faint);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.segmented__btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.segmented--lg { border-radius: 11px; padding: 4px; gap: 3px; align-items: center; }
.segmented--lg .segmented__btn { padding: 8px 16px; font-size: 14px; }

/* Botones de tema: solo icono */
.segmented__btn--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  color: var(--text-faint);
}
.segmented__btn--icon:hover { color: var(--text-dim); }
.segmented__btn--icon[aria-pressed="true"] { color: var(--accent); }

/* ---------- Selector de idioma ---------- */
.langpick { position: relative; }
.langpick__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.langpick__btn:hover { color: var(--text); border-color: var(--accent-line); }
.langpick__code { letter-spacing: .04em; }
.langpick__caret { transition: transform .2s; }
.langpick__btn[aria-expanded="true"] .langpick__caret { transform: rotate(180deg); }

.langpick__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  width: 232px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.langpick__menu[hidden] { display: none; }
.langpick__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.langpick__item:hover { background: var(--surface-2); color: var(--text); }
.langpick__item.is-active { color: var(--accent); font-weight: 600; }
.langpick__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--text-faint);
}
.langpick__item.is-active .langpick__tag { color: var(--accent); }

/* ---------- Media slots (sustituir por <img>/<video>) ---------- */
.slot {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 90px;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--surface-2) 70%, transparent) 0 10px,
      transparent 10px 20px),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slot--fill { position: absolute; inset: 0; }
.slot--circle { border-radius: 50%; }
.slot > figcaption {
  padding: 12px 18px;
  max-width: 88%;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.4;
  text-wrap: balance;
}
.slot > img,
.slot > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot:has(> img) > figcaption,
.slot:has(> video) > figcaption { display: none; }

/* ---------- Etiquetas y microtipografía ---------- */
.mono-heading,
.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mono-heading { text-align: center; color: var(--text-faint); margin: 0 0 22px; }
.mono-eyebrow { color: var(--accent); margin-bottom: 14px; }
.mono-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--accent); margin-bottom: 3px; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 24px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chip-accent {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 4px;
  border-radius: 4px;
}
.chip-accent--lg { padding: 0 6px; border-radius: 6px; }

.caret {
  border-left: 2px solid var(--accent);
  margin-left: 2px;
  animation: mlcaret 1s step-end infinite;
}

.h2 {
  font-weight: 700;
  font-size: 46px;
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.h2--sm { font-size: 42px; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter) 40px;
}
.section--features { padding-bottom: 40px; }
.section--ba { max-width: 1080px; padding-top: 60px; }
.section--pricing { max-width: 1160px; padding-top: 88px; }
.section--faq { max-width: 800px; padding-top: 88px; }
.section--cta { padding: 60px var(--gutter) 96px; }

.section__head { max-width: 640px; margin-bottom: 64px; }
.section__head--center { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.section__lede {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.5;
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--stage) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { flex: 0 0 auto; }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand__name--sm { font-size: 18px; }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--text-dim); }
.nav__links a { color: inherit; text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Menú móvil: hamburguesa y panel (solo visibles en pantallas estrechas) */
.nav__burger { display: none; }
.nav__menu { display: none; }
@media (max-width: 1080px) {
  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 38px;
    flex: 0 0 auto;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
  }
  .nav__burger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .25s, opacity .2s;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 18px;
    /* Opaco a propósito: dentro de la barra (que ya tiene backdrop-filter)
       un segundo blur no muestrea la página y el texto se transparentaba */
    background: var(--stage);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
  }
  .nav__menu[hidden] { display: none; }
  .nav__menu > a:not(.nav__menu-cta) {
    padding: 13px 2px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-soft);
    transition: color .2s;
  }
  .nav__menu > a:not(.nav__menu-cta):hover { color: var(--text); }
  .nav__menu-cta { margin-top: 14px; text-align: center; }
  .nav__menu-foot { display: flex; justify-content: center; margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-weight: 700;
  font-size: 66px;
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0;
}
.hero__lede {
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1.5;
  margin: 26px 0 0;
  max-width: 480px;
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__perks {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13.5px;
}

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  background: var(--surface);
}
.hero__play {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* El botón de play cubre el centro: baja el texto del hueco de media */
.hero__frame .slot > figcaption { align-self: flex-end; padding-bottom: 20px; }

.hero__play span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5);
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
}
.float-card--silence {
  left: -26px;
  bottom: 34px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: mlfloat 5s ease-in-out infinite;
}
.float-card--caption {
  right: -22px;
  top: 30px;
  padding: 10px 13px;
  max-width: 190px;
  animation: mlfloat2 6s ease-in-out infinite;
}
.float-card__title { font-weight: 600; line-height: 1.2; }
.float-card__sub { color: var(--text-faint); font-size: 11px; line-height: 1.2; }

.eq { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.eq span {
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: bottom;
  animation: mlbar 1s ease-in-out infinite;
}
.eq span:nth-child(2) { animation-delay: .15s; }
.eq span:nth-child(3) { animation-delay: .3s; }
.eq span:nth-child(4) { animation-delay: .45s; }

/* ---------- Prueba social ---------- */
.proof { max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) 8px; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  align-items: center;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.02em;
  opacity: .72;
  animation: mlmarquee 26s linear infinite;
}
.stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 36px; }
.stat { text-align: center; }
.stat__num { font-weight: 700; font-size: 34px; letter-spacing: -.03em; }
.stat__label { color: var(--text-faint); font-size: 13.5px; }

/* ---------- Bento de funciones ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento__card--7 { grid-column: span 7; }
.bento__card--5 { grid-column: span 5; }

.bento__card--media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 452px;
  box-shadow: var(--shadow-sm);
}
.bento__card--motion { min-height: 400px; }

.bento__card--panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim--top { background: linear-gradient(180deg, rgba(8, 9, 6, .78) 0%, rgba(8, 9, 6, .12) 42%, rgba(8, 9, 6, .5) 100%); }
.scrim--bottom { background: linear-gradient(180deg, rgba(8, 9, 6, .2) 0%, rgba(8, 9, 6, .1) 45%, rgba(8, 9, 6, .82) 100%); }

.bento__overlay { position: absolute; z-index: 2; pointer-events: none; }
.bento__overlay--top { top: 30px; left: 30px; right: 30px; }
.bento__overlay--corner { left: 30px; top: 30px; }
.bento__overlay--bottom { left: 30px; right: 30px; bottom: 28px; }

.tag,
.glass-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
}
.tag { background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.glass-tag {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  margin-bottom: 16px;
}
.bento__overlay--corner .glass-tag { margin-bottom: 0; }

.bento__title { font-weight: 700; font-size: 26px; letter-spacing: -.03em; margin: 0 0 10px; }
.bento__body { color: var(--text-dim); font-size: 15.5px; line-height: 1.55; margin: 0 0 22px; text-wrap: pretty; }

.bento__card--media .bento__title { font-size: 31px; color: #fff; max-width: 420px; text-wrap: balance; }
.bento__card--motion .bento__title { font-size: 29px; margin-bottom: 8px; max-width: 440px; }
.bento__title--onmedia { color: #fff; }
.bento__body--onmedia { color: rgba(255, 255, 255, .82); margin: 0; }
.bento__card--media .bento__body { font-size: 15.5px; max-width: 390px; }
.bento__card--motion .bento__body { font-size: 15px; max-width: 400px; }

.caption-demo {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(10, 11, 7, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 11px 18px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.caption-demo__text { font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: #fff; }

.motion-square {
  position: absolute;
  right: 26px;
  top: 26px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 3px solid var(--accent);
  z-index: 2;
  animation: mlfloat 4s ease-in-out infinite;
  pointer-events: none;
}
.motion-rule {
  height: 4px;
  width: 54px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 14px;
  transform-origin: left;
  animation: mlpop 3s ease-in-out infinite;
}

/* Auto-cut demo */
.cutdemo {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cutdemo__wave { position: relative; height: 56px; display: flex; align-items: center; }
.cutdemo__playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 3;
  animation: mlplay 3.4s linear infinite;
}
.cutdemo__bars { display: flex; align-items: center; gap: 2px; width: 100%; height: 100%; }
.cutdemo__bars span { flex: 1; background: var(--accent-line); border-radius: 2px; align-self: center; }
.cutdemo__clips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.clip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.clip--cut { background: var(--bg); border: 1px dashed var(--border); text-decoration: line-through; }
.cutdemo__result {
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
}

/* Storyboard */
.storyboard { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.shot {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  animation: mlrise .6s both;
}
.shot__thumb {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.shot__thumb span {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, var(--accent-soft), transparent);
  animation: mlsweep 2.6s ease-in-out infinite;
}
.shot__meta { min-width: 0; }
.shot__title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot__time { color: var(--text-faint); font-size: 11.5px; font-family: var(--font-mono); }
.shot__check { margin-left: auto; color: var(--accent); font-size: 12px; }

/* ---------- Cómo funciona ---------- */
.how {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 96px;
}
.how__inner { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter); }
.how .section__head--center { margin-bottom: 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
}
.step__num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-bottom: 20px; }
.step__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step__title { font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.step__body { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- Showcase ---------- */
.showcase__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.showcase__head > div { max-width: 600px; }
.showcase__note { color: var(--text-dim); font-size: 16px; max-width: 340px; margin: 0; text-wrap: pretty; }
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.showcase__cell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.showcase__cell--hero { grid-column: span 2; grid-row: span 2; }
.showcase__cell--wide { grid-column: span 2; }

/* ---------- Antes / Después ---------- */
.ba {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
  background: var(--surface);
  user-select: none;
}
.ba__before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: calc(var(--ba) * 1%);
}
.ba__before-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(10000% / var(--ba));
  min-width: 100%;
}
.ba__label {
  position: absolute;
  top: 14px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  pointer-events: none;
  z-index: 3;
}
.ba__label--before { left: 14px; background: rgba(15, 15, 12, .6); color: #fff; font-weight: 600; }
.ba__label--after { right: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--ba) * 1%);
  transform: translateX(-50%);
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
/* Línea divisoria: fuera del panel "antes" para que no le reste ancho */
.ba__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-100%);
  background: var(--accent);
}
.ba__handle span {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 4;
}
.ba__hint { text-align: center; color: var(--text-faint); font-size: 13.5px; margin-top: 16px; }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--accent); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial blockquote {
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0 0 22px;
  color: var(--text);
  text-wrap: pretty;
}
.person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.person__avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--border);
}
.person__avatar .slot { min-height: 0; }
.person__avatar figcaption { font-size: 9px; padding: 0; }
.person__name { font-weight: 600; font-size: 14.5px; }
.person__role { color: var(--text-faint); font-size: 12.5px; }

/* ---------- Precios ---------- */
.section--pricing .section__head--center { margin-bottom: 40px; }
.billing { display: flex; justify-content: center; margin-bottom: 44px; }
.billing__save { font-size: 11px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border: 1.5px solid var(--accent-line);
  position: relative;
  box-shadow: var(--shadow);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.plan__name { font-weight: 600; font-size: 15px; color: var(--text-dim); }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin: 14px 0 4px; }
.plan__amount { font-weight: 700; font-size: 46px; letter-spacing: -.03em; }
.plan__per { color: var(--text-faint); font-size: 14px; }
.plan__note { color: var(--text-faint); font-size: 13px; margin-bottom: 22px; }
.plan__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.plan__features li { display: flex; gap: 9px; }
.tick { color: var(--accent); flex: 0 0 auto; }

/* ---------- FAQ ---------- */
.faq__heading { margin-bottom: 40px; text-align: center; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 17px;
  text-align: left;
  padding: 20px 22px;
  cursor: pointer;
}
.faq__chevron { flex: 0 0 auto; display: flex; transition: transform .25s; }
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__item.is-open .faq__a { max-height: 260px; }
.faq__a p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  padding: 0 22px 22px;
  text-wrap: pretty;
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--accent-line);
  background: var(--surface);
  padding: 72px 40px;
  text-align: center;
}
.cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--accent-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 120% at 50% -10%, #000, transparent 68%);
  mask-image: radial-gradient(70% 120% at 50% -10%, #000, transparent 68%);
  opacity: .5;
  pointer-events: none;
}
.cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.cta__content { position: relative; }
.cta__title {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 0 auto;
  max-width: 640px;
  text-wrap: balance;
}
.cta__lede {
  color: var(--text-dim);
  font-size: 18px;
  margin: 20px auto 0;
  max-width: 480px;
  text-wrap: pretty;
}
.cta__actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand { margin-bottom: 14px; gap: 9px; }
.footer__blurb { color: var(--text-faint); font-size: 14px; line-height: 1.5; margin: 0; max-width: 260px; }
.footer__col-title { font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-faint); }
.footer__links a { color: inherit; text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__bar { border-top: 1px solid var(--border-soft); }
.footer__bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ============================================================
   Escrituras no latinas y RTL
   ============================================================ */

/* El interletrado negativo de Degular estropea CJK, árabe, hebreo,
   devanagari y tailandés: se neutraliza por idioma. */
html[lang="zh"], html[lang="ja"], html[lang="ko"],
html[lang="ar"], html[lang="he"], html[lang="hi"], html[lang="th"] {
  --tight: normal;
}
html[lang="zh"] :is(.hero__title, .h2, .cta__title, .bento__title, .step__title, .stat__num, .plan__amount, .brand__name, .fhead__title, .fcta__title, .capcard__title, .fhead__kicker),
html[lang="ja"] :is(.hero__title, .h2, .cta__title, .bento__title, .step__title, .stat__num, .plan__amount, .brand__name, .fhead__title, .fcta__title, .capcard__title, .fhead__kicker),
html[lang="ko"] :is(.hero__title, .h2, .cta__title, .bento__title, .step__title, .stat__num, .plan__amount, .brand__name, .fhead__title, .fcta__title, .capcard__title, .fhead__kicker),
html[lang="ar"] :is(.hero__title, .h2, .cta__title, .bento__title, .step__title, .stat__num, .plan__amount, .brand__name, .fhead__title, .fcta__title, .capcard__title, .fhead__kicker),
html[lang="he"] :is(.hero__title, .h2, .cta__title, .bento__title, .step__title, .stat__num, .plan__amount, .brand__name, .fhead__title, .fcta__title, .capcard__title, .fhead__kicker),
html[lang="hi"] :is(.hero__title, .h2, .cta__title, .bento__title, .step__title, .stat__num, .plan__amount, .brand__name, .fhead__title, .fcta__title, .capcard__title, .fhead__kicker),
html[lang="th"] :is(.hero__title, .h2, .cta__title, .bento__title, .step__title, .stat__num, .plan__amount, .brand__name, .fhead__title, .fcta__title, .capcard__title, .fhead__kicker) {
  letter-spacing: normal;
  line-height: 1.2;
}

/* Escrituras con ascendentes y descendentes altos necesitan más aire. */
html[lang="hi"] body, html[lang="th"] body { line-height: 1.6; }

/* Los glifos CJK, tailandeses y devanagari ocupan mucho más ancho por
   carácter: el titular baja de cuerpo para que no se parta mal. */
html[lang="zh"] .hero__title, html[lang="ja"] .hero__title, html[lang="ko"] .hero__title,
html[lang="th"] .hero__title, html[lang="hi"] .hero__title { font-size: 54px; }
html[lang="zh"] .h2, html[lang="ja"] .h2, html[lang="ko"] .h2,
html[lang="th"] .h2, html[lang="hi"] .h2 { font-size: 40px; }
html[lang="zh"] .cta__title, html[lang="ja"] .cta__title, html[lang="ko"] .cta__title,
html[lang="th"] .cta__title, html[lang="hi"] .cta__title { font-size: 44px; }

/* Las fichas tienen su propia escala de titulares: mismo criterio. */
html[lang="zh"] .fhead__title, html[lang="ja"] .fhead__title, html[lang="ko"] .fhead__title,
html[lang="th"] .fhead__title, html[lang="hi"] .fhead__title { font-size: 46px; }
html[lang="zh"] .fcta__title, html[lang="ja"] .fcta__title, html[lang="ko"] .fcta__title,
html[lang="th"] .fcta__title, html[lang="hi"] .fcta__title { font-size: 40px; }
html[lang="zh"] .capcard__title, html[lang="ja"] .capcard__title, html[lang="ko"] .capcard__title,
html[lang="th"] .capcard__title, html[lang="hi"] .capcard__title { font-size: 29px; }

/* RTL: se reflejan las tarjetas flotantes, las flechas y los menús. */
[dir="rtl"] .float-card--silence { left: auto; right: -26px; }
[dir="rtl"] .float-card--caption { right: auto; left: -22px; }
[dir="rtl"] .btn__arrow, [dir="rtl"] .btn__play { transform: scaleX(-1); }
[dir="rtl"] .shot__check { margin-left: 0; margin-inline-start: auto; }
[dir="rtl"] .mono-label, [dir="rtl"] .mono-eyebrow, [dir="rtl"] .mono-heading { letter-spacing: normal; }

/* El comparador es geometría pura: se mantiene en LTR para que el
   arrastre siga coincidiendo con la mitad visible. */
[dir="rtl"] .ba { direction: ltr; }
[dir="rtl"] .ba__label { direction: rtl; }

@media (max-width: 1080px) {
  [dir="rtl"] .float-card--silence { right: 12px; }
  [dir="rtl"] .float-card--caption { left: 12px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .hero__title { font-size: 54px; }
  .hero__lede { max-width: none; }

  /* A una sola columna, el hero se centra */
  .hero__copy { text-align: center; }
  .hero__copy .hero__lede { max-width: 560px; margin-inline: auto; }
  .hero__copy .hero__cta { justify-content: center; }
  .hero__copy .hero__perks { justify-content: center; flex-wrap: wrap; }
  .float-card--silence { left: 12px; }
  .float-card--caption { right: 12px; }

  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__card--7, .bento__card--5 { grid-column: span 6; }
  .bento__card--media { min-height: 420px; }

  .steps { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--featured { order: -1; margin-top: 12px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  /* La barra compacta: sin conmutador de tema (vive en el panel) ni globo,
     para que logotipo, idioma, CTA y hamburguesa quepan en 360px */
  .nav__inner { gap: 10px; }
  .nav__actions { gap: 8px; }
  .nav__actions > .segmented { display: none; }
  .langpick__btn > svg:first-child { display: none; }
  .nav__actions > .btn--sm { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .brand__name { font-size: 18px; }

  /* El menú de idiomas ocupa el ancho de la pantalla: anclado al botón se
     salía por el borde y se veía recortado */
  .langpick__menu {
    position: fixed;
    inset-inline: 14px;
    top: 64px;
    width: auto;
    max-height: min(60dvh, 420px);
  }

  .section { padding-top: 64px; }
  .how { margin-top: 64px; }
  .how__inner { padding-top: 64px; padding-bottom: 64px; }

  .hero__title { font-size: 42px; }
  .hero__lede { font-size: 17px; }
  .h2 { font-size: 34px; }
  .h2--sm { font-size: 30px; }
  .cta__title { font-size: 34px; }
  .cta { padding: 48px 24px; }
  .cta__lede { font-size: 16px; }

  .btn--lg, .btn--xl { width: 100%; }
  .hero__cta, .cta__actions { flex-direction: column; align-items: stretch; }

  .float-card { display: none; }

  .bento__card--media { min-height: 360px; }
  .bento__card--panel { padding: 22px; }
  .bento__overlay--top, .bento__overlay--corner { top: 22px; left: 22px; right: 22px; }
  .bento__overlay--bottom { left: 22px; right: 22px; bottom: 22px; }
  .bento__card--media .bento__title { font-size: 25px; }
  .bento__card--motion .bento__title { font-size: 24px; }
  .caption-demo__text { font-size: 19px; }

  .steps, .testimonials { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .showcase__cell--hero { grid-column: span 2; grid-row: span 2; }
  .showcase__cell--wide { grid-column: span 2; }

  .stats { gap: 28px 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  /* En pantallas mínimas el CTA de la barra se retira: sigue en el panel y en el hero */
  .nav__actions > .btn--sm { display: none; }
}

/* ============================================================
   Índice de funciones (página /funciones/ por idioma)
   ============================================================ */
.findex { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 76px; }
.findex__head { max-width: 640px; margin-bottom: 34px; }
.findex__title { font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 12px; }
.findex__lede { color: var(--text-dim); font-size: 17px; line-height: 1.5; margin: 0; }
.findex__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.findex__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.findex__card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.findex__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
}
.findex__name { font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
.findex__blurb { color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.findex__cta { display: flex; justify-content: center; margin-top: 38px; }
@media (max-width: 1080px) { .findex__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .findex__grid { grid-template-columns: 1fr; }
  .findex__title { font-size: 36px; }
}

/* ============================================================
   Fichas de función
   ============================================================ */

/* ---------- Animaciones de los demos ---------- */
@keyframes mffly   { 0%,12% { transform: translate(-50%,-50%) scale(.82) translateY(26px); opacity: 0; }
                     28%,72% { transform: translate(-50%,-50%) scale(1) translateY(0); opacity: 1; }
                     92%,100% { transform: translate(-50%,-50%) scale(.82) translateY(26px); opacity: 0; } }
@keyframes mfdrop  { 0%,100% { opacity: .35; } 45%,65% { opacity: .08; } }
@keyframes mfplay  { 0% { left: 2%; } 100% { left: 98%; } }
@keyframes mfpop   { 0%,18% { transform: scale(.7); opacity: 0; } 32%,80% { transform: scale(1); opacity: 1; } 100% { transform: scale(.7); opacity: 0; } }
@keyframes mfin    { 0%,10% { opacity: 0; transform: translateX(-8px); } 26%,100% { opacity: 1; transform: translateX(0); } }
@keyframes mfcam   { 0%,100% { border-color: var(--border); } 20%,40% { border-color: var(--accent); } }
@keyframes mftype  { 0% { max-width: 0; } 55%,100% { max-width: 100%; } }
@keyframes mfmeter { 0% { width: 0; } 70%,100% { width: var(--to); } }
@keyframes mfhi    { 0%,100% { color: var(--text-faint); } 18%,34% { color: var(--accent); } }
@keyframes mfpulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes mfratio { 0%,26% { width: 168px; height: 94px; } 36%,60% { width: 76px; height: 135px; } 70%,100% { width: 112px; height: 112px; } }
@keyframes mfmenu  { 0% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: translateY(0); } }

/* ---------- Navegación con menú de funciones ---------- */
.nav--feature { z-index: 60; }
.megabtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14.5px;
  color: inherit;
  cursor: pointer;
  transition: color .2s;
}
.megabtn:hover { color: var(--text); }
.megabtn__caret { transition: transform .22s; }
.megabtn[aria-expanded="true"] .megabtn__caret { transform: rotate(180deg); }

.mega {
  border-top: 1px solid var(--border-soft);
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  animation: mfmenu .22s cubic-bezier(.2, .7, .2, 1) both;
}
.mega[hidden] { display: none; }
.mega__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter) 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 26px;
}
.mega__item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .16s, border-color .16s;
}
.mega__item:hover { background: var(--surface); border-color: var(--border); }
.mega__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega__name { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; color: var(--text); }
.mega__blurb { font-size: 12.5px; color: var(--text-faint); line-height: 1.35; text-wrap: pretty; }
.mega__foot { border-top: 1px solid var(--border-soft); }
.mega__foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--text-faint);
}
.mega__foot-inner a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- Cabecera de ficha ---------- */
.fhead { max-width: var(--max); margin: 0 auto; padding: 70px var(--gutter) 30px; }
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.crumb a { color: inherit; text-decoration: none; transition: color .2s; }
.crumb a:hover { color: var(--text); }
.crumb__current { color: var(--text-dim); }

.fhead__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.fhead__title { font-weight: 700; font-size: 60px; line-height: .97; letter-spacing: -.042em; margin: 0; }
.fhead__sub { color: var(--text-dim); font-size: 19px; line-height: 1.5; margin: 24px 0 0; max-width: 490px; text-wrap: pretty; }
.fhead__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.fhead__perks {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13.5px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px 5px 6px;
  margin: 0 0 24px;
}
.kicker__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kicker__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Maqueta del panel ---------- */
.panel-wrap { position: relative; }
.panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg);
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.panel__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.panel__spacer { flex: 1; }
.panel__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.panel__state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.panel__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: mfpulse 1.6s ease-in-out infinite; }
.panel__body { padding: 24px 22px; min-height: 296px; display: flex; flex-direction: column; justify-content: center; }
.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-faint);
  /* Deja sitio al chip flotante, que se solapa con la esquina */
  padding-inline-end: 104px;
}
.panel__time { color: var(--text-dim); font-family: var(--font-mono); }

.chip {
  position: absolute;
  inset-inline-end: -16px;
  bottom: -16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 11px 15px;
  box-shadow: var(--shadow-sm);
  animation: mffloat 5.5s ease-in-out infinite;
  z-index: 3;
}
.chip__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.chip__value { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--accent); }

/* ---------- Secciones ---------- */
.fsection { max-width: var(--max); margin: 0 auto; padding: 104px var(--gutter) 0; }
.fsection--tight { padding-top: 60px; }
.fsection--last { padding-bottom: 110px; }
.fsection__head { max-width: 660px; margin-bottom: 44px; }
.fsection__head--narrow { max-width: 620px; margin-bottom: 52px; }
.fsection__lede { color: var(--text-dim); font-size: 18px; line-height: 1.55; margin: 0; text-wrap: pretty; }
.fh2 { font-weight: 700; font-size: 44px; line-height: 1.04; letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }
.fh2--sm { font-size: 40px; }

/* ---------- Cifras ---------- */
.statgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
}
.statgrid__cell { padding: 30px 28px; }
.statgrid__cell--divided { border-inline-start: 1px solid var(--border-soft); }
.statgrid__num { font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -.035em; }
.statgrid__label { color: var(--text-dim); font-size: 14.5px; margin-top: 9px; text-wrap: pretty; }

/* ---------- Demostración ---------- */
.fhero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
  background: var(--bg);
}
.fhero__play { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.fhero__play span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5);
}
.fhero .slot > figcaption { align-self: flex-end; padding-bottom: 20px; }

.specgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.specgrid__cell { padding: 22px 22px 24px; }
.specgrid__cell--divided { border-inline-start: 1px solid var(--border-soft); }
.specgrid__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.specgrid__value { font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }

/* ---------- Pasos ---------- */
.fsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fstep { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 18px; padding: 28px 26px 30px; }
.fstep__head { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.fstep__num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.fstep__rule { height: 1px; flex: 1; background: var(--border-soft); }
.fstep__title { font-weight: 650; font-size: 20px; letter-spacing: -.02em; margin-bottom: 9px; }
.fstep__body { color: var(--text-dim); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

/* ---------- Capacidades ---------- */
.capgrid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.capcard {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.capcard__title { font-weight: 700; font-size: 34px; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 12px; }
.capcard__sub { color: var(--text-dim); font-size: 16.5px; line-height: 1.5; margin: 0; max-width: 460px; text-wrap: pretty; }
.caplist { display: flex; flex-direction: column; }
.capitem { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--border-soft); }
.capitem__tick {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.capitem__title { font-weight: 640; font-size: 16px; letter-spacing: -.015em; margin-bottom: 4px; }
.capitem__body { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.capshot {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
}

/* ---------- En profundidad ---------- */
.deepgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.deepcard {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deepcard .mono-eyebrow { margin-bottom: 0; }
.deepcard__title { font-weight: 650; font-size: 23px; letter-spacing: -.024em; line-height: 1.15; }
.deepcard__body { color: var(--text-dim); font-size: 15.5px; line-height: 1.58; text-wrap: pretty; }

/* ---------- Preguntas ---------- */
.faqgrid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faqlist { display: flex; flex-direction: column; }
.faqitem { border-top: 1px solid var(--border-soft); padding: 24px 0; }
.faqitem__q { font-weight: 640; font-size: 18px; letter-spacing: -.018em; margin-bottom: 10px; text-wrap: pretty; }
.faqitem__a { color: var(--text-dim); font-size: 15.5px; line-height: 1.58; text-wrap: pretty; }

/* ---------- Combina con ---------- */
.relhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.relgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.relcard {
  text-align: start;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px 24px 28px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.relcard__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.relcard__name { font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.relcard__blurb { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.relcard__cta { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 2px; }

/* ---------- Llamada final ---------- */
.fcta {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 76px 40px;
  text-align: center;
}
.fcta__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 0%, transparent 78%);
}
.fcta__glow {
  position: absolute;
  left: 50%;
  top: -40%;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  pointer-events: none;
}
.fcta__content { position: relative; }
.fcta__title { font-weight: 700; font-size: 50px; line-height: 1.02; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.fcta__sub { color: var(--text-dim); font-size: 18.5px; line-height: 1.5; margin: 20px auto 0; max-width: 520px; text-wrap: pretty; }
.fcta__actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.fcta__note { color: var(--text-faint); font-size: 13.5px; margin-top: 22px; }

/* ---------- Pie reducido ---------- */
.footer--slim .footer__bar-inner { padding: 34px var(--gutter); font-size: 13.5px; }
.footer__links--row { flex-direction: row; gap: 22px; }

/* ---------- Responsive de las fichas ---------- */
@media (max-width: 1080px) {
  .fhead__grid { grid-template-columns: 1fr; gap: 44px; }
  .fhead__title { font-size: 48px; }
  .mega__grid { grid-template-columns: 1fr 1fr; }
  .capgrid, .deepgrid, .faqgrid { grid-template-columns: 1fr; gap: 26px; }
  .fsteps, .relgrid { grid-template-columns: 1fr; }
  .specgrid { grid-template-columns: 1fr 1fr; }
  .specgrid__cell:nth-child(3) { border-inline-start: none; }
  .chip { inset-inline-end: 12px; }
}

@media (max-width: 720px) {
  .fsection { padding-top: 64px; }
  .fhead { padding-top: 48px; }
  .fhead__title { font-size: 38px; }
  .fh2 { font-size: 32px; }
  .fh2--sm { font-size: 28px; }
  .fcta__title { font-size: 32px; }
  .fcta { padding: 48px 24px; }
  .statgrid, .specgrid { grid-template-columns: 1fr; }
  .statgrid__cell--divided, .specgrid__cell--divided { border-inline-start: none; border-top: 1px solid var(--border-soft); }
  .mega__grid { grid-template-columns: 1fr; }
  .capcard { padding: 26px 22px; }
  .chip { display: none; }
}

/* ---------- Lista de espera ---------- */
.waitlist__form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 30px auto 0;
}
.waitlist__email {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}
.waitlist__email::placeholder { color: var(--text-faint); }
.waitlist__email:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }
/* El campo trampa vive fuera de la pantalla, no en display:none: algunos
   robots saltan los campos invisibles pero rellenan los desplazados. */
.waitlist__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist__msg { margin: 16px 0 0; font-size: 15px; }
.waitlist__msg--ok { color: var(--accent); font-weight: 600; }
.waitlist__msg--error { color: var(--text-dim); }
.waitlist__note { margin: 14px 0 0; color: var(--text-faint); font-size: 13.5px; }
@media (max-width: 640px) {
  .waitlist__form { flex-direction: column; }
}
