/* VitalOnix · tienda en una página
   Mobile-first. Tema oscuro único. Paleta "Emerald Night": verde-negro profundo + degradado menta → lima.
   Radios: interactivos = pill · tarjetas = 20px · medios internos = 12px.
   Todo lo marcado con .ph-* es PLACEHOLDER y se reemplaza con assets reales. */

/* ───────── Fuentes (self-hosted, recortadas) ───────── */
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 93%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 102%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }

/* ───────── Tokens ───────── */
:root {
  --bg: #050A08;
  --bg-2: #0A1410;
  --surface: rgb(255 255 255 / 0.04);
  --surface-2: rgb(255 255 255 / 0.075);
  --surface-solid: #0B1511;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.15);
  --text: #EEF6F2;
  --muted: #94A99F;
  --accent: #3DF5A7;
  --accent-2: #C8F560;
  --grad: linear-gradient(120deg, #3DF5A7 0%, #8EF58A 55%, #C8F560 100%);
  --on-accent: #03130C;
  --glow: rgb(61 245 167 / 0.35);
  --ph: #FFB547;
  --danger: #FF7A7A;

  --font-display: "Clash Display", "Clash Fallback", system-ui, sans-serif;
  --font-sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius-card: 20px;
  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 7vw, 120px);
  --star: #C8F560;
  --maxw: 1280px;

  /* z-index: fondo 0 · canvas 3D 0 · contenido 1 · barra carrito 40 · nav 50 · toast 60 · animación al carrito 70 · skip 100 */
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  interpolate-size: allow-keywords;
}
html.has-dialog { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, canvas, 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; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a, button, summary, label { touch-action: manipulation; }
.btn, button, summary { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }
section[id], [id="main"], .catalog[id], .fkt[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -120px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.nb { white-space: nowrap; }

/* ───────── Fondo vivo ───────── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg__blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.6; will-change: transform; }
.bg__blob--a { left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgb(14 140 95 / 0.55) 0%, rgb(14 140 95 / 0) 62%); }
.bg__blob--b { right: -28vmax; top: 10vh; background: radial-gradient(circle, rgb(11 94 115 / 0.5) 0%, rgb(11 94 115 / 0) 62%); }
.bg__blob--c { left: 20vw; bottom: -40vmax; background: radial-gradient(circle, rgb(150 210 60 / 0.22) 0%, rgb(150 210 60 / 0) 60%); }
.bg__spot { position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(circle, rgb(61 245 167 / 0.1) 0%, rgb(61 245 167 / 0) 60%); }
.bg__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
}
/* Grano: mosaico de ruido ya generado (tools/make-grain.mjs); un filtro SVG feTurbulence costaba ~80 ms en el primer pintado */
.bg__grain { position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay; background: url("../assets/img/grain.webp") 0 0 / 96px 96px; }
@media (hover: none), (pointer: coarse) { .bg__spot { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .bg__blob--a { animation: drift-a 26s var(--ease-in-out) infinite alternate; }
  .bg__blob--b { animation: drift-b 32s var(--ease-in-out) infinite alternate; }
  .bg__blob--c { animation: drift-c 38s var(--ease-in-out) infinite alternate; }
}
@keyframes drift-a { to { transform: translate(12vmax, 8vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-14vmax, 12vmax) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-10vmax, -14vmax) scale(1.2); } }

/* ───────── Tipografía ───────── */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 0.95; }
.h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 5.25rem); }
.h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em; }
/* Al partirse en letras (fx.js), el degradado pasa a cada letra: si no, se vuelven invisibles */
.h1 em .char { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 2.8vw + 1.2rem, 3.75rem); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }

/* ───────── Botones ───────── */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 300ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.btn:active { transform: scale(0.96); }
.btn .icon { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.btn--primary { background: var(--grad); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 10px 30px -12px var(--glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--icon { width: 52px; padding: 0; background: var(--surface); border: 1px solid var(--line-strong); }
.btn--icon .icon { width: 20px; height: 20px; }
.btn--sm { --h: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--soon, .btn:disabled { background: var(--surface); color: var(--muted); border: 1px dashed var(--line-strong); box-shadow: none; cursor: not-allowed; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap;
  color: var(--text); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line-strong);
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
.link--consult .icon { color: var(--accent); }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn--sm { width: 36px; height: 36px; }
.iconbtn--sm .icon { width: 16px; height: 16px; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 16px 40px -10px var(--glow); }
  .btn--primary:hover::after { transform: translateX(120%); transition: transform 750ms var(--ease-out); }
  .btn:hover .icon { transform: translateX(2px) rotate(-6deg); }
  .btn--ghost:hover, .btn--icon:hover { border-color: var(--accent); background: var(--surface-2); }
  .link:hover { text-decoration-color: var(--accent); }
  .nav__links a:hover { color: var(--text); }
  .nav__links a:hover::after { transform: scaleX(1); }
  .footer a:hover { color: var(--text); }
  .iconbtn:hover { background: var(--surface-2); border-color: var(--line-strong); }
  .menubtn:hover, .reviews__toggle:hover { border-color: var(--accent); }
  .rv:hover { border-color: rgb(61 245 167 / 0.4); transform: translateY(-4px); }
  .rv__product:hover { background: rgb(61 245 167 / 0.2); }
  .plan:hover::before { opacity: 1; }
  .totop:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 18px 44px -10px var(--glow); }
  .totop:hover .icon { transform: rotate(-90deg) translateX(2px); }
  .qa__q:hover .qa__icon { color: var(--text); }
  .chip:not([aria-pressed="true"]):hover { border-color: var(--accent); }
  .tab:not([aria-pressed="true"]):hover { color: var(--text); }
  .hero__arrow:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  .peek:hover { opacity: 0.85; filter: none; }
  .item:hover .item__media img { transform: translateY(-8px) scale(1.05) rotate(-2deg); }
  .item:hover::before, .feature:hover::before { opacity: 1; }
  .consultbtn:hover, .hconsult:hover { background: rgb(61 245 167 / 0.2); }
  .opt:hover span { border-color: var(--accent); }
  .cartbtn:hover { border-color: var(--accent); }
}

/* ───────── Placeholders (marcados a propósito) ───────── */
.ph-tag {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ph); border: 1px dashed rgb(255 181 71 / 0.6); border-radius: 999px; padding: 3px 10px;
}
.ph-box { background: repeating-linear-gradient(135deg, rgb(255 181 71 / 0.08) 0 1px, transparent 1px 14px), var(--surface); outline: 1px dashed rgb(255 181 71 / 0.45); outline-offset: -1px; }
.ph-note { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

/* ───────── Navegación ───────── */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; transition: background-color 250ms ease, border-color 250ms ease; }
.nav.is-scrolled { background: rgb(5 10 8 / 0.7); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .nav.is-scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.16em; }
.wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: none; }
.nav__menu { margin-left: auto; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav.is-open { background: rgb(5 10 8 / 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.menubtn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.9375rem;
  transition: border-color 200ms ease, transform 160ms var(--ease-out), background-color 200ms ease;
}
.menubtn:active { transform: scale(0.95); }
.menubtn[aria-expanded="true"] { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.menu { border-top: 1px solid var(--line); padding: 8px max(var(--gutter), env(safe-area-inset-left)) 16px; transition: opacity 260ms ease, transform 320ms var(--ease-out); }
.menu[hidden] { display: none; }
@starting-style { .menu { opacity: 0; transform: translateY(-8px); } }
.menu__list { display: grid; gap: 4px; }
.menu__list a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 14px; font-weight: 600; font-size: 1.0625rem; transition: background-color 200ms ease; }
.menu__list a:active { background: var(--surface-2); }
.menu__list .icon { width: 22px; height: 22px; color: var(--accent); }
.cartbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.9375rem;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.cartbtn:active { transform: scale(0.95); }
.cartbtn__label { display: none; }
.cartbtn__count {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--grad); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; line-height: 1;
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.cartbtn__count.is-empty { background: var(--surface-2); color: var(--muted); }
.cartbtn.is-pop .cartbtn__count { animation: pop 520ms var(--ease-out); }
.cartbtn.is-pop { animation: wiggle 520ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.6); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 60% { rotate: 6deg; } }
@media (min-width: 768px) {
  .nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
  .nav__links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.9375rem; transition: color 200ms ease; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
  .nav__actions { margin-left: 12px; }
  .menubtn, .menu { display: none !important; }
  .cartbtn__label { display: inline; }
}
@media (min-width: 768px) and (max-width: 1023px) { .nav__links { gap: 20px; } }

/* Consulta siempre a la vista: botón en la barra, también en celular */
.consultbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: rgb(61 245 167 / 0.12); border: 1px solid rgb(61 245 167 / 0.5); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.consultbtn:active { transform: scale(0.95); }
.consultbtn b { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; color: var(--accent); }
.consultbtn__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .consultbtn__dot { animation: ping 1.8s ease-out infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(61 245 167 / 0.6); } 80%, 100% { box-shadow: 0 0 0 9px rgb(61 245 167 / 0); } }
.nav__links .nav__fk { background: linear-gradient(120deg, #FF4A12, #FFB23F); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; letter-spacing: 0.06em; }
.menu__consult { background: rgb(61 245 167 / 0.12); border: 1px solid rgb(61 245 167 / 0.4); }
.menu__consult span { margin-left: auto; font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent); }
.menu__list .menu__fk .icon { color: #FF6A1A; }
@media (max-width: 767px) {
  .nav__inner { gap: 10px; }
  .wordmark { font-size: 1rem; letter-spacing: 0.1em; }
  .nav__actions { gap: 6px; }
  .consultbtn { padding: 0 12px; gap: 6px; }
  .consultbtn b { display: none; }
  .menubtn { width: 44px; padding: 0; justify-content: center; }
  .menubtn__label { display: none; }
  .cartbtn { width: 48px; padding: 0; justify-content: center; }
  .cartbtn__count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; font-size: 0.6875rem; box-shadow: 0 0 0 2px var(--bg); }
}

/* ───────── Escenario 3D ───────── */
.stage { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
[data-canvas] { width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 700ms var(--ease-out); }
.hero__visual > [data-canvas] { position: absolute; inset: 0; z-index: 2; } /* en móvil el producto queda delante de las vistas laterales */
[data-canvas].is-ready { opacity: 1; }
[data-canvas].is-ready.is-off { opacity: 0; transition-duration: 200ms; }
.is-3d-fallback [data-canvas] { opacity: 0 !important; } /* la foto del producto no se pudo usar en 3D: se ve el póster */
main, .footer { position: relative; z-index: 1; }
main { overflow-x: clip; } /* la banda inclinada no debe crear scroll lateral */

/* ───────── Hero ───────── */
.hero { min-height: 100vh; min-height: 100svh; display: flex; padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 8px); padding-bottom: clamp(24px, 4svh, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "consult" "shop" "sub" "ctas"; row-gap: 18px; width: 100%; align-content: center; }
/* Acceso a la consulta junto al titular: lo primero que se ve después del nombre */
.hconsult { grid-area: consult; display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgb(61 245 167 / 0.1); border: 1px solid rgb(61 245 167 / 0.45); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.hconsult:active { transform: scale(0.97); }
.hconsult__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: var(--on-accent); }
.hconsult__icon .icon { width: 20px; height: 20px; }
.hconsult__text { display: grid; min-width: 0; line-height: 1.25; }
.hconsult__text strong { font-weight: 600; }
.hconsult__text span { color: var(--muted); font-size: 0.8125rem; }
.hconsult__go { width: 18px; height: 18px; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .hconsult__icon { animation: ping 2.2s ease-out infinite; } }
.link--fk .icon { color: #FF6A1A; }
.hero__copy { display: contents; }
.hero__title { grid-area: title; }
.hero__sub { grid-area: sub; max-width: 40ch; }
.hero__ctas { grid-area: ctas; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.hero__shop { grid-area: shop; display: grid; gap: 14px; min-width: 0; }
.hero__line { display: block; }

.hero__tabs { position: relative; display: inline-flex; width: fit-content; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tab { position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--muted); transition: color 250ms ease; }
.tab[aria-pressed="true"] { color: var(--on-accent); }
.tab__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); border-radius: 999px; background: var(--grad); transform: translateX(var(--x, 4px)); transition: transform 450ms var(--ease-drawer), width 450ms var(--ease-drawer); box-shadow: 0 6px 20px -8px var(--glow); }

.hero__visual { position: relative; height: clamp(260px, 40svh, 560px); touch-action: pan-y; }
.hero__poster, .hero__poster img { width: 100%; height: 100%; object-fit: contain; }
.hero__poster { position: absolute; inset: 0; transition: opacity 600ms ease; }
.hero__poster img { filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.5)); }
.hero__poster img.is-product { width: 56%; margin-inline: auto; } /* foto de producto sin 3D: mismo ancho máximo que FIT_W */
.hero__poster img.is-in-right { animation: in-right 600ms var(--ease-out); }
.hero__poster img.is-in-left { animation: in-left 600ms var(--ease-out); }
@keyframes in-right { from { opacity: 0; transform: translateX(40px) scale(0.92) rotate(4deg); } }
@keyframes in-left { from { opacity: 0; transform: translateX(-40px) scale(0.92) rotate(-4deg); } }
.has-3d .hero__poster.is-hidden { opacity: 0; }
.peek {
  position: absolute; top: 50%; z-index: 1; width: 22%; max-width: 150px; aspect-ratio: 1; object-fit: contain; cursor: pointer;
  opacity: 0.4; filter: grayscale(0.4) brightness(0.75) drop-shadow(0 12px 18px rgb(0 0 0 / 0.5));
  transition: opacity 300ms ease, filter 300ms ease;
}
.peek--prev { left: 8%; transform: translateY(-50%) rotate(-8deg); }
.peek--next { right: 8%; transform: translateY(-50%) rotate(8deg); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 999px;
  background: rgb(5 10 8 / 0.55); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.hero__arrow:active { transform: scale(0.9); }
.hero__arrow--prev { left: 0; }
.hero__arrow--next { right: 0; }

.hero__meta { display: grid; gap: 14px; padding: 16px 18px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero__info { display: grid; gap: 2px; min-height: 84px; }
.hero__brand { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.hero__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); line-height: 1.1; letter-spacing: -0.01em; }
.hero__short { color: var(--muted); font-size: 0.9375rem; }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero__price { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; margin-right: auto; font-variant-numeric: tabular-nums; }
.hero__price .cur { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.hero__dots { display: flex; gap: 6px; }
.dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width 300ms var(--ease-out), background-color 300ms ease; }
.dot[aria-current="true"]::before { width: 22px; background: var(--grad); }

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "title   title   title   title   title   title   shop shop shop shop shop shop"
      "sub     sub     sub     sub     sub     sub     shop shop shop shop shop shop"
      "consult consult consult consult consult consult shop shop shop shop shop shop"
      "ctas    ctas    ctas    ctas    ctas    ctas    shop shop shop shop shop shop";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 24px; row-gap: 22px; align-items: start;
  }
  .hero__title { align-self: end; padding-top: 8vh; }
  .hero__sub { font-size: 1.1875rem; }
  .hero__shop { align-self: center; }
  .hero__visual { height: min(52svh, 540px); }
  .hero__line { white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__line { animation: rise 0.9s var(--ease-out) both; }
  .hero__line + .hero__line { animation-delay: 60ms; }
  .hero [data-intro] { animation: fade-up 0.8s var(--ease-out) both; animation-delay: calc(160ms + var(--i, 0) * 80ms); }
  .hero__shop { animation: settle 1.1s var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) { .hero [data-intro] { animation: fade 0.3s ease both; } }
@keyframes rise { from { transform: translateY(0.22em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { transform: scale(0.97); } }
@keyframes fade { from { opacity: 0; } }

/* ───────── Banda en movimiento ───────── */
.marquee { position: relative; z-index: 1; overflow: hidden; margin-block: clamp(24px, 4vw, 48px); padding: 14px 0; background: var(--grad); color: var(--on-accent); transform: rotate(-2deg) scale(1.04); box-shadow: 0 20px 60px -20px var(--glow); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; padding-right: 28px; will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3vw + 1rem, 3.25rem); line-height: 1; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--on-accent); }
.marquee__track .icon { width: 30px; height: 30px; }

/* ───────── Problema ───────── */
.problem { padding-block: var(--section-y); }
.problem__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 2.3vw + 1rem, 3rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 24ch; text-wrap: pretty; }
.problem__text .w { display: inline; }
.problem__visual { display: none; }
/* Desktop: el producto 3D baja desde el hero a la columna izquierda (ancla sticky) y se queda mientras la frase pasa */
@media (min-width: 1024px) {
  .problem .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; min-height: 115vh; }
  .problem__visual { display: block; position: sticky; grid-column: 1 / span 5; grid-row: 1; align-self: start; top: calc(var(--nav-h) + 6vh); height: calc(100vh - var(--nav-h) - 12vh); }
  .problem__poster, .problem__poster img { width: 100%; height: 100%; object-fit: contain; }
  .has-3d .problem__poster { visibility: hidden; }
  .problem__text { grid-column: 6 / span 7; grid-row: 1; align-self: center; }
}


/* ───────── Tienda ───────── */
.products { padding-block: var(--section-y); }
.products__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__value { font-family: var(--font-display); font-weight: 600; font-size: 2rem; }
.price__cur { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin-left: 8px; border-radius: 999px; background: var(--grad); color: var(--on-accent); font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0; text-transform: none; vertical-align: middle; }

/* Tarjetas de cristal con luz que sigue al cursor (variables --mx/--my desde fx.js) */
.feature, .item { position: relative; isolation: isolate; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform-style: preserve-3d; }
.feature::before, .item::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(61 245 167 / 0.16), transparent 60%);
  transition: opacity 300ms ease;
}

.feature { display: grid; overflow: hidden; }
.feature__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; }
.feature__media::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgb(61 245 167 / 0.3), transparent 65%); filter: blur(10px); }
.feature__media img { position: relative; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55)); }
@media (prefers-reduced-motion: no-preference) { .feature__media img { animation: float 6s var(--ease-in-out) infinite alternate; } }
@keyframes float { from { transform: translateY(-8px) rotate(-1.5deg); } to { transform: translateY(8px) rotate(1.5deg); } }
.feature__body { display: grid; gap: 12px; align-content: center; justify-items: start; padding: 24px 22px 26px; }
.feature__brand { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); }
.feature__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 3vw + 1.4rem, 4rem); line-height: 1; letter-spacing: -0.015em; }
.feature__desc { color: var(--muted); max-width: 42ch; }
.feature__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
/* Celular: el destacado va en horizontal (foto chica a la izquierda) para ocupar menos alto */
@media (max-width: 767px) {
  .feature { grid-template-columns: 38% minmax(0, 1fr); align-items: center; }
  .feature__media { aspect-ratio: 3 / 4; }
  .feature__media img { width: 92%; height: 92%; }
  .feature__body { gap: 8px; padding: 18px 16px 18px 4px; }
  .feature__brand { font-size: 0.6875rem; }
  .feature__brand .badge { margin: 4px 0 0; }
  .feature__name { font-size: 2rem; }
  .feature__desc { font-size: 0.875rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .feature .price__value { font-size: 1.5rem; }
  .feature__buy { gap: 8px 14px; margin-top: 2px; }
  .feature__buy .btn { --h: 44px; padding: 0 16px; font-size: 0.9375rem; }
}
@media (min-width: 768px) {
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature__media { aspect-ratio: auto; min-height: 460px; }
  .feature__body { padding: clamp(28px, 4vw, 56px); }
}

.catalog { margin-top: clamp(40px, 7vw, 96px); }
.catalog__head { display: grid; gap: 8px; margin-bottom: 20px; }
.catalog__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem); line-height: 1.05; letter-spacing: -0.01em; }
.catalog__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 0.9375rem; }

.catalog__filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.catalog__filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out), box-shadow 300ms ease;
}
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 24px -10px var(--glow); }
.chip__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.chip[aria-pressed="true"] .chip__n { color: rgb(3 19 12 / 0.7); }

.catalog__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .catalog__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
/* Celular: cada categoría es una fila que se desliza de lado (menos scroll hacia abajo) */
@media (max-width: 767px) {
  .rail { position: relative; margin-inline: calc(-1 * var(--gutter)); }
  /* [role] sube la especificidad sobre ul[role="list"] (que pone padding: 0) */
  .catalog__grid[role] {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
  }
  .catalog__grid::-webkit-scrollbar { display: none; }
  .item { scroll-snap-align: start; }
  .rail__hint { display: flex; }
  /* Filas fuera de pantalla: no se acomodan ni piden sus fotos hasta acercarse (la foto principal carga primero).
     Alto fijo y conocido (una fila), así que no hay saltos. */
  .rail { content-visibility: auto; contain-intrinsic-size: auto 470px; }
  .feature { content-visibility: auto; contain-intrinsic-size: auto 330px; }
}
.rail__hint { display: none; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--muted); font-size: 0.8125rem; }
.rail__hint .icon { width: 16px; height: 16px; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .rail__hint .icon { animation: nudge 1.6s var(--ease-in-out) infinite; } }
@keyframes nudge { 50% { transform: translateX(5px); } }
.item { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; }
.item[hidden] { display: none; }
.item__open { display: block; width: 100%; border-radius: 12px; }
/* Fondo transparente: solo un halo verde detrás del producto */
.item__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 8px; }
.item__media::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgb(61 245 167 / 0.18), transparent 65%); transition: transform 400ms var(--ease-out); }
.item__media img { position: relative; width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 16px 20px rgb(0 0 0 / 0.5)); transition: transform 500ms var(--ease-out); }
.item > :not(.item__open):not(.item__buy) { padding-inline: 4px; }
.item__brand { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.item__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; text-wrap: balance; }
.item__name button { text-align: left; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.item__desc { color: var(--muted); font-size: 0.8125rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.item__rating { display: flex; align-items: center; color: var(--muted); font-size: 0.8125rem; }
.item__rating > span[aria-hidden] { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.item__rating > span[aria-hidden] span { color: var(--muted); font-weight: 400; }
/* Estrellas: máscara de 5 estrellas pintada hasta el promedio (--r) */
.stars {
  --s: 1em; display: inline-block; flex: none; width: calc(var(--s) * 5.5); height: var(--s); vertical-align: -0.12em;
  background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), rgb(255 255 255 / 0.18) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.8L10 14.8l-5.2 2.8 1-5.8L1.5 7.7l5.9-.8z'/%3E%3C/svg%3E") 0 0 / calc(var(--s) * 1.1) var(--s) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.8L10 14.8l-5.2 2.8 1-5.8L1.5 7.7l5.9-.8z'/%3E%3C/svg%3E") 0 0 / calc(var(--s) * 1.1) var(--s) repeat-x;
}
.item__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 8px 4px 0; }
.item__price { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; white-space: nowrap; }
.item__price span { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; color: var(--muted); }
.item__cta { padding: 0 14px; }
.item__cta .icon { width: 16px; height: 16px; }
@media (max-width: 479px) { .item__buy .item__cta { width: 100%; } }

/* Tarjeta de consulta al inicio de cada fila del catálogo (no se filtra) */
.item--consult { justify-content: center; gap: 10px; padding: 18px 16px; background: radial-gradient(120% 70% at 0% 0%, rgb(61 245 167 / 0.2), transparent 60%), var(--surface-2); border-color: rgb(61 245 167 / 0.45); }
.item--consult > * { padding-inline: 0 !important; }
.cc__eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.cc__eyebrow .icon { width: 18px; height: 18px; }
.cc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; text-wrap: balance; }
.cc__text { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.cc__price { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.cc__price strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.cc__cta { width: 100%; }

/* Entrada a FERRAKOR: un adelanto de su mundo (fuego sobre negro) que lleva a ferrakor.html */
.fkt { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 20px; margin-top: clamp(40px, 7vw, 96px); padding: clamp(22px, 4vw, 48px); border-radius: 24px; background: #0B0605; border: 1px solid rgb(255 106 26 / 0.35); }
.fkt__glow { position: absolute; inset: 35% -20% -40%; z-index: -1; background: radial-gradient(ellipse 60% 60% at 50% 100%, rgb(255 70 18 / 0.55), rgb(180 30 8 / 0.2) 50%, transparent 75%); }
.fkt__copy { display: grid; gap: 10px; justify-items: start; }
.fkt__eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #FFB23F; }
.fkt__eyebrow .icon { width: 18px; height: 18px; color: #FF5A1F; }
.fkt__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.75rem, 6vw + 1rem, 6rem); line-height: 0.9; letter-spacing: 0.04em; background: linear-gradient(180deg, #FFF1D0 0%, #FFB23F 40%, #FF4A12 85%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgb(255 80 20 / 0.45)); }
.fkt__text { color: #C9B3A8; max-width: 52ch; }
.fkt__cta { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; margin-top: 6px; border-radius: 10px; background: linear-gradient(120deg, #FF2A12, #FF6A1A 52%, #FFB23F); color: #1C0703; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 14px 40px -12px rgb(255 72 20 / 0.6); transition: transform 160ms var(--ease-out); }
.fkt__cta:active { transform: scale(0.96); }
.fkt__cta .icon { width: 18px; height: 18px; }
.fkt__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.fkt__strip a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgb(255 106 26 / 0.25); aspect-ratio: 4 / 5; }
.fkt__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (max-width: 767px) { .fkt__strip { grid-template-columns: repeat(6, 38%); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(22px, 4vw, 48px)); padding-inline: clamp(22px, 4vw, 48px); scroll-snap-type: x mandatory; } .fkt__strip li { scroll-snap-align: start; } .fkt__strip::-webkit-scrollbar { display: none; } }
@media (min-width: 1024px) { .fkt { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
@media (hover: hover) and (pointer: fine) { .fkt__strip a:hover img { transform: scale(1.08) rotate(-1.5deg); } .fkt__cta:hover { box-shadow: 0 18px 50px -10px rgb(255 72 20 / 0.75); } }
@media (prefers-reduced-motion: no-preference) { .fkt__glow { animation: fkt-breathe 2.8s ease-in-out infinite alternate; } }
@keyframes fkt-breathe { to { opacity: 0.65; transform: scaleY(0.9); } }

/* Celular: lo que en PC hace el mouse. Bloques que se inclinan con la velocidad del scroll (--sv desde fx.js),
   luz de fondo que se pasea sola y brillo que cruza los botones principales. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .rail, .consult__grid, .fkt__strip { transform: skewY(var(--sv, 0deg)); }
  .bg__spot { display: block; left: 50%; top: 40%; animation: roam 16s var(--ease-in-out) infinite alternate; }
  .btn--primary::after, .fkt__cta::after { animation: shine 5s var(--ease-in-out) infinite; }
}
@keyframes roam { 0% { transform: translate(-30vw, -20vh); } 50% { transform: translate(25vw, 10vh); } 100% { transform: translate(-10vw, 35vh); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
.fkt__cta { position: relative; overflow: hidden; isolation: isolate; }
.fkt__cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(255 240 200 / 0.6) 50%, transparent 70%); transform: translateX(-120%); }

/* Celular: al deslizar una fila, la tarjeta del centro queda al frente (js/rails.js escribe --rd y --rs) */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  [data-rail-fx] { perspective: 1100px; }
  [data-rail-fx] > .item { scale: calc(1 - var(--rd, 0) * 0.07) !important; rotate: y calc(var(--rs, 0) * -12deg) !important; filter: brightness(calc(1 - var(--rd, 0) * 0.3)); }
  [data-rail-fx] > .item.is-center::before { opacity: 1; }
}
.inline-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ───────── Consulta en línea ───────── */
.consult { position: relative; padding-block: var(--section-y); }
.consult::before { content: ""; position: absolute; inset: 0 0 20%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 55% 50% at 25% 35%, rgb(61 245 167 / 0.14), transparent 70%); }
.consult__head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.consult__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.consult__perks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.consult__perks li { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 0.875rem; font-weight: 500; }
.consult__perks .icon { width: 16px; height: 16px; color: var(--accent); }
.consult__grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .consult__grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
/* Celular: las dos consultas se deslizan de lado */
@media (max-width: 767px) {
  .consult__grid {
    grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  }
  .consult__grid::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: start; padding: 18px; gap: 14px; }
  .plan__list { gap: 8px; font-size: 0.9375rem; }
  .steps li { padding: 10px 14px; }
  .steps__n { width: 30px; height: 30px; }
}
.plan {
  position: relative; isolation: isolate; display: grid; gap: 18px; align-content: start; padding: 22px;
  border-radius: 24px; background: radial-gradient(120% 80% at 0% 0%, rgb(61 245 167 / 0.14), transparent 55%), var(--surface);
  border: 1px solid rgb(61 245 167 / 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform-style: preserve-3d;
}
.plan--salud { background: radial-gradient(120% 80% at 0% 0%, rgb(200 245 96 / 0.13), transparent 55%), var(--surface); border-color: rgb(200 245 96 / 0.28); }
.plan::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(61 245 167 / 0.18), transparent 60%); transition: opacity 300ms ease; }
.plan__top { display: flex; align-items: center; gap: 14px; }
.plan__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--glow); }
.plan__icon .icon { width: 28px; height: 28px; }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.plan__for { color: var(--muted); font-size: 0.9375rem; }
.plan__list { display: grid; gap: 10px; }
.plan__list li { display: flex; gap: 10px; line-height: 1.45; }
.plan__list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.plan__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.plan__price strong { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--text); }
@media (max-width: 479px) { .plan__foot .btn { width: 100%; } }
.steps { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.steps__n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgb(61 245 167 / 0.5); color: var(--accent); font-family: var(--font-mono); font-size: 0.875rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.steps strong { color: var(--text); font-weight: 600; }
.consult__legal { margin-top: 16px; color: var(--muted); font-size: 0.8125rem; max-width: 70ch; }

/* ───────── Opiniones: carrusel automático (CSS) ───────── */
.reviews { padding-block: var(--section-y); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.reviews__intro { display: grid; gap: 12px; max-width: 46rem; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.reviews__summary .stars { --s: 1.25em; }
.reviews__summary strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.reviews__count { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; }
.reviews__src { color: var(--muted); font-size: 0.875rem; max-width: 60ch; }
.reviews__toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.875rem; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.reviews__toggle:active { transform: scale(0.95); }
.reviews__toggle .icon { width: 16px; height: 16px; }
.rvmarquee { display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.rvmarquee__row { overflow: hidden; padding-block: 4px; }
/* padding-right = gap: así la mitad exacta del carril es una vuelta completa y el bucle no brinca */
.rvmarquee .rvmarquee__track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0 14px 0 0; list-style: none; }
@media (prefers-reduced-motion: no-preference) {
  .rvmarquee__track { animation: rv-scroll 70s linear infinite; }
  .rvmarquee__row--rev .rvmarquee__track { animation-direction: reverse; animation-duration: 80s; }
  .rvmarquee:hover .rvmarquee__track, .rvmarquee:focus-within .rvmarquee__track, .rvmarquee.is-paused .rvmarquee__track, .rvmarquee.is-offscreen .rvmarquee__track { animation-play-state: paused; }
}
@keyframes rv-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rvmarquee__row { overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
  .rv[aria-hidden="true"] { display: none; }
  .reviews__toggle { display: none; }
}
.rv {
  display: grid; align-content: start; gap: 10px; width: min(78vw, 340px); padding: 18px 18px 16px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 250ms ease, transform 250ms var(--ease-out);
}
.rv__stars .stars { --s: 1.05em; }
.rv__text { font-size: 1rem; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.rv__who { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.rv__name { color: var(--text); }
.rv__product { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgb(61 245 167 / 0.1); border: 1px solid rgb(61 245 167 / 0.3); color: var(--accent); font-size: 0.8125rem; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color 200ms ease; }

/* ───────── Volver arriba ───────── */
.totop {
  position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--grad); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 14px 34px -12px var(--glow);
  opacity: 0; transform: translateY(18px) scale(0.85); pointer-events: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-out), bottom 300ms var(--ease-out);
}
.totop .icon { width: 22px; height: 22px; transform: rotate(-90deg); }
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:active { transform: scale(0.9); }
body:has(.buybar.is-visible) .totop { bottom: calc(84px + env(safe-area-inset-bottom)); }
.has-dialog .totop { opacity: 0; pointer-events: none; }

/* Vito, el guía flotante: aquí solo su lugar. Globo y movimiento en css/extra.css; el chat en css/vito.css */
.vito-dock { position: fixed; z-index: 44; left: max(6px, env(safe-area-inset-left)); bottom: calc(6px + env(safe-area-inset-bottom)); transition: bottom 300ms var(--ease-out), opacity 200ms ease; }
.vito-dock:not(.is-ready) { opacity: 0; pointer-events: none; } /* el dibujo se pide después del primer pintado */
body:has(.buybar.is-visible) .vito-dock { bottom: calc(80px + env(safe-area-inset-bottom)); }
.has-dialog .vito-dock, .vito-open .vito-dock { opacity: 0; pointer-events: none; }
.vito-launch { display: block; width: 56px; height: 60px; padding: 0; border-radius: 20px; }
.vito-mascot { display: block; width: 100%; height: 100%; }
.vito-hint { display: none; }
@media (min-width: 600px) { .vito-dock { left: 10px; bottom: 10px; } .vito-launch { width: 68px; height: 72px; } }

/* ───────── FAQ ───────── */
.faq { padding-block: 0 var(--section-y); }
.faq__grid { display: grid; gap: 40px; }
.faq__aside { display: grid; gap: 16px; align-content: start; }
.guarantee { display: grid; gap: 8px; margin-top: 12px; padding: 20px; border-radius: var(--radius-card); }
.guarantee .icon { width: 28px; height: 28px; color: var(--accent); }
.guarantee__title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.15; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 16px; font-weight: 500; font-size: 1.0625rem; line-height: 1.4; }
.qa__q::-webkit-details-marker { display: none; }
.qa__q:focus-visible { outline-offset: 4px; }
.qa__icon { color: var(--muted); transition: transform 300ms var(--ease-out), color 200ms ease; }
.qa[open] .qa__icon { transform: rotate(135deg); color: var(--accent); }
.qa__a { display: grid; gap: 10px; padding-bottom: 22px; color: var(--muted); max-width: 60ch; }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .qa::details-content { transition: none; } }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .faq__aside { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
  .faq__list { grid-column: 7 / span 6; }
}

/* ───────── Cierre ───────── */
.closing { padding-block: 0 clamp(16px, 3vw, 40px); }
.closing__inner { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 22px; text-align: center; padding: clamp(56px, 8vw, 110px) 20px; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgb(61 245 167 / 0.18), transparent 60%), var(--surface); }
.closing__title { font-size: clamp(2.75rem, 6vw + 1rem, 6rem); text-wrap: balance; }
.closing .lead { max-width: 36ch; }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); padding-bottom: calc(96px + env(safe-area-inset-bottom)); background: rgb(5 10 8 / 0.6); }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
.footer__brand p { color: var(--muted); max-width: 30ch; }
.footer__social { display: flex; gap: 4px; margin-left: -10px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--muted); transition: color 200ms ease; }
.footer__h { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); transition: color 200ms ease; opacity: 0.86; }
.footer__legal { display: grid; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.footer__legal strong { color: var(--text); font-weight: 500; }
.footer__notes { display: grid; gap: 8px; max-width: 80ch; }
@media (min-width: 768px) {
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__legal { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
}

/* ───────── Barra del carrito (móvil) ───────── */
.buybar {
  position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgb(11 21 17 / 0.88); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8);
  transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); transition: transform 220ms var(--ease-out);
}
.buybar.is-visible { transform: none; transition-duration: 380ms; }
.buybar__info { display: grid; line-height: 1.25; min-width: 0; }
.buybar__name { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
@media (prefers-reduced-transparency: reduce) { .buybar { background: var(--surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (min-width: 768px) { .buybar { display: none; } }
.has-dialog .buybar { transform: translateY(calc(100% + 24px)); }

/* Ventanas (carrito, detalle, asistente) y aviso: css/extra.css, se carga aparte */

/* ───────── Aviso y animación "al carrito" ───────── */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgb(11 21 17 / 0.92); border: 1px solid rgb(61 245 167 / 0.4);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8);
  font-size: 0.9375rem; opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}
.toast .icon { width: 18px; height: 18px; color: var(--accent); }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--grad); color: var(--on-accent); font-weight: 600; font-size: 0.875rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition-duration: 280ms; }
@media (min-width: 768px) { .toast { top: calc(var(--nav-h) + 14px); bottom: auto; transform: translate(-50%, -12px); } }
.fly-ghost { position: fixed; z-index: 70; pointer-events: none; object-fit: contain; filter: drop-shadow(0 10px 20px rgb(0 0 0 / 0.5)); }

/* Herramienta interna de render (tools/render.html) */
body.tools { background: #222; color: #ddd; font: 14px/1.4 system-ui; padding: 16px; }

.ph-tag,[data-pending]{display:none!important}.ph-box{background:var(--surface);outline:0}
