/* ==========================================================================
   ElyTec — Design System
   2026 · premium · light/dark
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg:            #ffffff;
  --bg-sunken:     #f5f5f7;
  --bg-elevated:   #ffffff;
  --bg-inverse:    #000000;

  --text:          #1d1d1f;
  --text-muted:    #6e6e73;
  --text-faint:    #86868b;
  --text-inverse:  #f5f5f7;

  --line:          rgba(0, 0, 0, .10);
  --line-strong:   rgba(0, 0, 0, .18);

  --accent:        #0071e3;
  --accent-hover:  #0077ed;
  --accent-soft:   rgba(0, 113, 227, .10);
  --cyan:          #00a3e0;

  --nav-bg:        rgba(255, 255, 255, .72);
  --chip-bg:       rgba(0, 0, 0, .05);
  --chip-bg-hover: rgba(0, 0, 0, .09);

  --shadow-sm:     0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:     0 2px 6px rgba(0,0,0,.05), 0 18px 40px -12px rgba(0,0,0,.16);
  --shadow-lg:     0 4px 12px rgba(0,0,0,.06), 0 40px 80px -24px rgba(0,0,0,.22);

  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-pill: 980px;

  --maxw:      1240px;
  --maxw-text: 720px;
  --gutter:    clamp(20px, 5vw, 40px);
  --nav-h:     52px;

  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #000000;
  --bg-sunken:     #0a0a0c;
  --bg-elevated:   #141416;
  --bg-inverse:    #f5f5f7;

  --text:          #f5f5f7;
  --text-muted:    #a1a1a6;
  --text-faint:    #86868b;
  --text-inverse:  #1d1d1f;

  --line:          rgba(255, 255, 255, .12);
  --line-strong:   rgba(255, 255, 255, .22);

  --accent:        #2997ff;
  --accent-hover:  #4aa8ff;
  --accent-soft:   rgba(41, 151, 255, .14);

  --nav-bg:        rgba(10, 10, 12, .72);
  --chip-bg:       rgba(255, 255, 255, .08);
  --chip-bg-hover: rgba(255, 255, 255, .15);

  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 2px 6px rgba(0,0,0,.5), 0 18px 40px -12px rgba(0,0,0,.7);
  --shadow-lg:     0 4px 12px rgba(0,0,0,.5), 0 40px 80px -24px rgba(0,0,0,.8);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.032em;
  line-height: 1.06;
}

.t-display {
  font-size: clamp(2.9rem, 8.2vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.t-h1  { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 650; letter-spacing: -.038em; }
.t-h2  { font-size: clamp(1.85rem, 4vw, 3.1rem);  font-weight: 650; letter-spacing: -.034em; }
.t-h3  { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 620; letter-spacing: -.028em; }
.t-h4  { font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; }

.t-lead {
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.42;
  color: var(--text-muted);
  letter-spacing: -.018em;
}
.t-body  { font-size: 1.0625rem; line-height: 1.56; color: var(--text-muted); }
.t-small { font-size: .875rem;  line-height: 1.5;  color: var(--text-muted); }
.t-micro { font-size: .75rem;   line-height: 1.45; color: var(--text-faint); }

.t-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.t-grad {
  background: linear-gradient(115deg, var(--text) 18%, var(--accent) 58%, var(--cyan) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.t-center  { text-align: center; }
.t-balance { text-wrap: balance; }
.measure   { max-width: var(--maxw-text); }
.mx-auto   { margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 940px; }

.section        { padding-block: clamp(72px, 11vw, 132px); }
.section--tight { padding-block: clamp(48px, 7vw, 84px); }
.section--sunken{ background: var(--bg-sunken); }

.stack > * + * { margin-top: var(--gap, 20px); }

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s var(--ease-soft),
              border-color .25s var(--ease-soft),
              color .25s var(--ease-soft),
              transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px -6px var(--accent); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--chip-bg); }

.btn--quiet { padding-inline: 4px; color: var(--accent); }
.btn--quiet:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn--sm { padding: 8px 18px; font-size: .9375rem; }
.btn--lg { padding: 15px 32px; font-size: 1.0625rem; }

/* Verde WhatsApp con texto oscuro: sobre el verde de marca el texto blanco
   no llega al contraste minimo, el oscuro da 8.6:1. */
.btn--whatsapp {
  background: #25d366;
  color: #0a1f14;
  font-weight: 600;
}
.btn--whatsapp:hover {
  background: #1fbb5a;
  color: #0a1f14;
  box-shadow: 0 8px 22px -8px #25d366;
}
.btn__icon { flex: 0 0 auto; width: 19px; height: 19px; fill: currentColor; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 550;
}
.link-arrow::after {
  content: "›";
  font-size: 1.28em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .28s var(--ease);
}
.link-arrow:hover::after { transform: translate(4px, -1px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-soft), background-color .3s var(--ease-soft);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding-right: 6px;
}
/* El wordmark viene recortado al ras y con fondo transparente,
   por eso el invert del tema oscuro deja letras blancas y no un bloque. */
.nav__logo {
  height: 19px;
  width: auto;
  transition: opacity .2s var(--ease-soft);
}
html[data-theme="dark"] .nav__logo { filter: invert(1); }
.nav__brand:hover .nav__logo { opacity: .7; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(4px, 2vw, 22px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 450;
  letter-spacing: -.005em;
  color: var(--text);
  opacity: .82;
  transition: opacity .2s var(--ease-soft), background-color .2s var(--ease-soft);
}
.nav__link:hover { opacity: 1; background: var(--chip-bg); }
.nav__link[aria-current="page"] { opacity: 1; font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease-soft);
}
.icon-btn:hover { background: var(--chip-bg); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none;
                stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

.nav__burger { display: none; }
.nav__burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .32s var(--ease), opacity .2s var(--ease-soft);
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  padding: 26px var(--gutter) 44px;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease-soft), transform .35s var(--ease), visibility .3s;
}
.nav__drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__drawer ul { margin: 0; padding: 0; list-style: none; }
.nav__drawer li { border-bottom: 1px solid var(--line); }
.nav__drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.nav__drawer a::after { content: "›"; color: var(--text-faint); font-size: 1.2em; }

@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .nav__brand { margin-right: auto; }
}

/* ---------- Sub-nav (product pages) ---------- */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
}
.subnav__title { font-size: 1.24rem; font-weight: 620; letter-spacing: -.028em; }
.subnav__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}
.subnav__links a { font-size: .8125rem; color: var(--text-muted); }
.subnav__links a:hover { color: var(--text); }
@media (max-width: 760px) { .subnav__links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px));
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1180px, 135vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(circle at 68% 30%, rgba(0,163,224,.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__title { margin-bottom: 20px; }
.hero__sub   { max-width: 620px; margin-inline: auto; }
.hero__cta   { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* El parallax se aplica al contenedor, no a la imagen: separar el transform
   animado del drop-shadow evita que la sombra se arrastre al hacer scroll. */
.hero__stage {
  position: relative;
  margin-top: clamp(28px, 5vw, 56px);
  display: grid;
  place-items: center;
  will-change: transform;
}
.hero__stage img {
  width: min(760px, 92%);
  filter: drop-shadow(0 46px 70px rgba(0,0,0,.24));
}
html[data-theme="dark"] .hero__stage img { filter: drop-shadow(0 46px 70px rgba(0,0,0,.7)); }

/* z-index para que las capsulas queden siempre por encima de la capa
   compositada del stage, que de lo contrario las tapa. */
.hero__badges {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap; /* si no, "172 × 150 × 51 mm" parte la pildora en dos renglones */
  cursor: default;
  transition: transform .32s var(--ease),
              background-color .32s var(--ease-soft),
              color .32s var(--ease-soft),
              box-shadow .32s var(--ease);
}
.chip:hover {
  transform: translateY(-2px);
  background: var(--chip-bg-hover);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.chip--accent { background: var(--accent-soft); color: var(--accent); }
.chip--accent:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  box-shadow: 0 8px 18px -8px var(--accent);
}

/* ---------- Bento / product tiles ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.bento > * { grid-column: span 2; min-width: 0; }
.bento__wide  { grid-column: span 3; }
.bento__hero  { grid-column: span 6; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento > *        { grid-column: span 2; }
  .bento__wide      { grid-column: span 4; }
  .bento__hero      { grid-column: span 4; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento__wide, .bento__hero { grid-column: span 1; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  pointer-events: none;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tile__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.tile__title { font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 620; letter-spacing: -.028em; }
.tile__desc  { margin-top: 8px; font-size: .9375rem; color: var(--text-muted); line-height: 1.48; }
.tile__cta   { margin-top: 14px; display: flex; gap: 16px; align-items: center; }

.tile__media {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  margin-top: 20px;
  min-height: 170px;
}
.tile__media img {
  max-height: 260px;
  width: auto;
  max-width: 86%;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.16));
  transition: transform .55s var(--ease);
}
html[data-theme="dark"] .tile__media img { filter: drop-shadow(0 22px 34px rgba(0,0,0,.6)); }
.tile:hover .tile__media img { transform: scale(1.045) translateY(-3px); }

.tile--sunken { background: var(--bg-sunken); }
.tile--center { text-align: center; align-items: center; }
.tile--center .tile__cta { justify-content: center; }

/* Tile destacado: texto e imagen lado a lado, apilados en pantallas chicas */
.tile--feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  min-height: auto;
}
.tile--feature .tile__media { margin-top: 0; }
.tile--feature .tile__title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.tile--feature .tile__desc  { font-size: 1.0625rem; max-width: 44ch; }
@media (max-width: 760px) {
  .tile--feature { grid-template-columns: minmax(0, 1fr); }
}

.tile--dark {
  background: #0b0b0d;
  color: #f5f5f7;
}
.tile--dark .tile__desc { color: #a1a1a6; }
.tile--dark .tile__eyebrow { color: #2997ff; }
.tile--dark::after { border-color: rgba(255,255,255,.1); }

.tile__link { position: absolute; inset: 0; z-index: 2; }
.tile__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Product cards (catalog grid) ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease-soft);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 26px;
  background: var(--bg-sunken);
}
.card__media img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__cat   { font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
               text-transform: uppercase; color: var(--accent); }
.card__title { margin-top: 7px; font-size: 1.0625rem; font-weight: 620; letter-spacing: -.022em; line-height: 1.3; }
.card__meta  { margin-top: 6px; font-size: .875rem; color: var(--text-muted); }
.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card__specs span {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  font-size: .75rem;
  color: var(--text-muted);
}
.card__foot { margin-top: auto; padding-top: 16px; }
.card__link { position: absolute; inset: 0; z-index: 2; }

/* ---------- Feature rows ---------- */
/* Dos columnas explicitas con pistas minmax(0, 1fr).
   Con `1fr` a secas la pista no puede achicarse por debajo del min-content de
   su contenido, y la galeria terminaba desbordando sobre la columna derecha.
   El `min-width: 0` de los hijos cierra el mismo agujero del lado del item. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
.split > * { min-width: 0; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.split--reverse > *:first-child { order: 2; }
/* Mismo punto de corte que .split: apiladas, el texto va primero. */
@media (max-width: 859px) { .split--reverse > *:first-child { order: 0; } }

.media-frame {
  display: grid;
  place-items: center;
  padding: clamp(26px, 4vw, 54px);
  border-radius: var(--r-xl);
  background: var(--bg-sunken);
  overflow: hidden;
}
.media-frame img { max-height: 460px; width: auto; object-fit: contain; }
.media-frame--flush { padding: 0; }
.media-frame--flush img { width: 100%; max-height: none; border-radius: var(--r-xl); }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none;
                     stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.0625rem; font-weight: 620; letter-spacing: -.02em; }
.feature p  { margin: 7px 0 0; font-size: .9375rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  text-align: center;
}
.stat__num {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 680;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(160deg, var(--text) 30%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { margin-top: 9px; font-size: .875rem; color: var(--text-muted); }

/* ---------- Gallery (product page) ---------- */
.gallery { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; min-width: 0; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
}
@media (max-width: 760px) {
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; padding-bottom: 6px; }
  .gallery__thumbs::-webkit-scrollbar { height: 4px; }
  .gallery__thumbs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
}

.thumb {
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  flex: 0 0 auto;
  padding: 9px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-sunken);
  cursor: pointer;
  transition: border-color .25s var(--ease-soft), transform .25s var(--ease);
}
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb:hover { transform: translateY(-2px); }
.thumb[aria-selected="true"] { border-color: var(--accent); }

.gallery__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-height: 620px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(20px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--bg-sunken);
}
.gallery__stage img {
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: fadeScale .5s var(--ease);
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(.975); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Spec lists & tables ---------- */
/* Siempre 2x2: las fichas tienen 4 datos y con auto-fit entraban 3 en la
   primera fila, dejando una celda vacia al lado del cuarto. */
.spec-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
}
.spec-highlights div { padding: 20px 18px; background: var(--bg-sunken); }
.spec-highlights dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.spec-highlights dd { margin: 6px 0 0; font-size: 1.32rem; font-weight: 620; letter-spacing: -.028em; }

.table-scroll { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }

table.spec {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .9375rem;
}
table.spec caption { text-align: left; padding-bottom: 14px; color: var(--text-muted); font-size: .875rem; }
table.spec th, table.spec td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec thead th {
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  border-bottom-color: var(--line-strong);
}
table.spec tbody th { width: 34%; font-weight: 500; color: var(--text-muted); }
table.spec tbody td { font-weight: 500; }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: var(--bg-sunken); }
.spec-yes { color: var(--accent); font-weight: 600; }

/* ---------- List with checks ---------- */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  color: var(--text-muted);
}
.checklist li + li { margin-top: 12px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---------- Notice ---------- */
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.notice svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
              stroke: var(--accent); fill: none; stroke-width: 1.7;
              stroke-linecap: round; stroke-linejoin: round; }
.notice p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.notice strong { color: var(--text); }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-sunken);
  width: fit-content;
  max-width: 100%;
}
.filter {
  padding: 9px 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .28s var(--ease-soft), color .28s var(--ease-soft);
}
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -.018em;
  cursor: pointer;
}
.acc__btn:hover { color: var(--accent); }
.acc__sign {
  position: relative;
  flex: 0 0 auto;
  width: 15px; height: 15px;
}
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.6px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform .35s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { margin: 0 0 22px; padding-right: 40px; font-size: .9875rem;
                line-height: 1.58; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(48px, 7vw, 92px) clamp(26px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 130%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,113,227,.34), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .t-lead { color: color-mix(in srgb, var(--text-inverse) 68%, transparent); }
.cta-band .btn--ghost { border-color: color-mix(in srgb, var(--text-inverse) 40%, transparent);
                        color: var(--text-inverse); }
.cta-band .btn--ghost:hover { background: color-mix(in srgb, var(--text-inverse) 12%, transparent);
                              border-color: var(--text-inverse); }

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(44px, 6vw, 72px) 34px;
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  font-size: .8125rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer h4 { font-size: .8125rem; font-weight: 620; margin-bottom: 12px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li + li { margin-top: 9px; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  padding-top: 22px;
  color: var(--text-faint);
}
.footer__logo { height: 16px; width: auto; opacity: .55; }
html[data-theme="dark"] .footer__logo { filter: invert(1); }
.footer__legal { margin-left: auto; }

/* ---------- Breadcrumb ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: .8125rem;
  color: var(--text-faint);
}
.crumb a:hover { color: var(--text); }
.crumb span::before { content: "/"; margin-right: 7px; opacity: .5; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Bandeja de producto (tema oscuro) ----------
   Toda la fotografía de producto viene con fondo blanco sólido. En tema
   oscuro se apoya sobre una bandeja clara para que se lea como una mesa de
   estudio y no como un recuadro blanco suelto sobre el fondo negro. */
html[data-theme="dark"] {
  --stage: #f2f2f4;
}

html[data-theme="dark"] .card__media,
html[data-theme="dark"] .gallery__stage,
html[data-theme="dark"] .media-frame,
html[data-theme="dark"] .thumb {
  background: var(--stage);
}

html[data-theme="dark"] .thumb { border-color: rgba(0, 0, 0, .12); }
html[data-theme="dark"] .thumb[aria-selected="true"] { border-color: var(--accent); }

html[data-theme="dark"] .tile__media,
.tile--dark .tile__media {
  background: var(--stage, #f2f2f4);
  border-radius: 22px;
  padding: 16px;
}

html[data-theme="dark"] .tile__media img,
.tile--dark .tile__media img {
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .16));
}

html[data-theme="dark"] .hero__stage img {
  border-radius: var(--r-lg);
  filter: drop-shadow(0 40px 64px rgba(0, 0, 0, .55));
}

/* ---------- Formulario ---------- */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__field--full { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__field { grid-column: 1 / -1; }
}

.form label {
  font-size: .8125rem;
  font-weight: 550;
  letter-spacing: -.005em;
  color: var(--text-muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  transition: border-color .22s var(--ease-soft), box-shadow .22s var(--ease-soft);
}
.form textarea { min-height: 132px; resize: vertical; }
.form select { appearance: none; cursor: pointer;
               background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                                 linear-gradient(135deg, currentColor 50%, transparent 50%);
               background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
               background-size: 6px 6px, 6px 6px;
               background-repeat: no-repeat;
               padding-right: 40px; }
.form input::placeholder,
.form textarea::placeholder { color: var(--text-faint); }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

/* ---------- Tarjetas de información ---------- */
.info-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}
.info-card h3 { font-size: 1.16rem; font-weight: 620; letter-spacing: -.022em; }
.info-card p  { margin: 10px 0 0; font-size: .9375rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Utilities ---------- */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.flex-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: 10px; }
.mt-3  { margin-top: 18px; }
.mt-4  { margin-top: 28px; }
.mt-5  { margin-top: 44px; }
.mt-6  { margin-top: 64px; }
