/* ==========================================================================
   MasterLabs — mockups/apple/apple.css
   Matriz en estilo Apple: blanco, tipografía neutra, imagen grande,
   movimiento suave al hacer scroll. Todo local.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../iconos-logos-web/fonts/inter/inter-normal-300-800.woff2") format("woff2");
}

:root {
  /* Tema claro (por defecto) */
  --bg: #fff;
  --bg-2: #f5f5f7;
  --bg-3: #000;
  --surface: #fff;
  --surface-2: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-2-on-dark: #a1a1a6;
  --link: #0066cc;
  --link-on-dark: #2997ff;
  --pill: #0071e3;
  --pill-hover: #0077ed;
  --line: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
  --logo-filter: grayscale(1) brightness(0.35) contrast(1.1);
  --font: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* Tema oscuro: por preferencia del sistema (si el visitante no eligió) o por elección explícita */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000;
    --bg-2: #161617;
    --bg-3: #000;
    --surface: #1d1d1f;
    --surface-2: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --link: #2997ff;
    --line: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    --logo-filter: grayscale(1) invert(1) brightness(0.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000;
  --bg-2: #161617;
  --bg-3: #000;
  --surface: #1d1d1f;
  --surface-2: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --link: #2997ff;
  --line: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  --logo-filter: grayscale(1) invert(1) brightness(0.85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
::selection { background: #b3d7ff; color: var(--text); }
:focus-visible { outline: 2px solid var(--pill); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 44px, 980px); margin-inline: auto; }
.wrap--wide { width: min(100% - 44px, 1240px); margin-inline: auto; }

/* --- Barra global ----------------------------------------------------------- */

.gnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 58px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.gnav__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.gnav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.gnav__brand img { height: 26px; width: auto; }
.gnav ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.gnav li a { color: var(--text); opacity: 0.8; font-size: 14.5px; letter-spacing: -0.01em; }
.gnav li a[aria-current="page"] { opacity: 1; font-weight: 600; }
.gnav li a:hover { opacity: 1; text-decoration: none; }

/* Barra local: aparece al pasar el hero y cambia con la sección */
.lnav {
  position: fixed;
  top: 58px;
  inset-inline: 0;
  z-index: 40;
  height: 52px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.lnav.is-on { transform: none; opacity: 1; }
.lnav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.lnav__name { display: inline-flex; align-items: center; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.lnav__name small { font-size: 12px; font-weight: 400; color: var(--text-2); margin-left: 10px; }
.lnav__cta { display: flex; align-items: center; gap: 22px; font-size: 12px; }

.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--pill);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.25s var(--ease-out);
}
.pill:hover { background: var(--pill-hover); text-decoration: none; }
.pill:active { transform: scale(0.98); }
.pill--lg { padding: 12px 24px; font-size: 17px; }

.more { font-size: 21px; color: var(--link); }
.more::after { content: " ›"; }
.band--black .more { color: var(--link-on-dark); }

/* --- Bandas ----------------------------------------------------------------- */

.band { padding-block: 120px; }
.band--gray { background: var(--bg-2); }
.band--black { background: var(--bg-3); color: var(--text-on-dark); }
.band--tight { padding-block: 80px; }

.center { text-align: center; }
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.h-hero { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.h-band { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.h-tile { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; }
.lede { font-size: clamp(19px, 2vw, 26px); line-height: 1.24; font-weight: 400; letter-spacing: -0.01em; color: var(--text-2); max-width: 44ch; margin-inline: auto; }
.band--black .lede { color: var(--text-2-on-dark); }
.links { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }

/* Aparición al entrar en pantalla */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* --- Hero ------------------------------------------------------------------- */

.hero { padding: 142px 0 0; overflow: hidden; }
.hero .eyebrow { animation: rise 0.9s var(--ease-out) both; }
.hero .h-hero { margin-top: 6px; animation: rise 0.9s 0.08s var(--ease-out) both; }
.hero .lede { margin-top: 18px; animation: rise 0.9s 0.16s var(--ease-out) both; }
.hero .links { margin-top: 22px; animation: rise 0.9s 0.24s var(--ease-out) both; }

.hero__visual {
  position: relative;
  margin: 64px auto 0;
  width: min(100%, 1040px);
  animation: pop 1.3s 0.2s var(--ease-out) both;
}
.hero__tablet { width: 82%; }
.hero__phone {
  position: absolute;
  right: 2%;
  bottom: -6%;
  width: 18%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.28));
}
.hero__phone .device--phone { width: 100%; }
.hero__fade { height: 120px; background: linear-gradient(180deg, transparent, var(--bg-2)); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Maquetas dentro de esta página */
.device { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.device--tablet { width: 100%; }
.device--phone { width: 100%; }
.device--desktop { width: 100%; }

/* --- BitRaw: sección pegada que cambia al bajar ------------------------------ */

.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 64px;
  align-items: start;
  margin-top: 72px;
}
.scrolly__sticky { position: sticky; top: 142px; }
.scrolly__visual { position: relative; transition: transform 0.6s var(--ease-out); }
.scrolly__badge {
  position: absolute;
  left: 50%;
  bottom: -28px;
  translate: -50% 0;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--line);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.scrolly__badge b { color: var(--pill); }

/* Estados por paso */
.scrolly__visual .raw__split { transition: width 0.8s var(--ease-out); }
.scrolly__visual[data-step="1"] .raw__split { width: 0; border-right-width: 0; }
.scrolly__visual[data-step="1"] .raw__after { opacity: 0; }
.scrolly__visual .raw__panel { transition: box-shadow 0.5s, background 0.5s; }
.scrolly__visual[data-step="3"] .raw__panel { box-shadow: inset 0 0 0 2px var(--gel-bitraw); background: #101725; }
.scrolly__visual[data-step="3"] .raw__canvas img { filter: brightness(0.82); transition: filter 0.5s; }
.scrolly__visual[data-step="4"] .scrolly__badge { opacity: 1; transform: none; }
.scrolly__visual[data-step="4"] { transform: scale(0.98); }

.steps { padding-top: 8vh; }
.step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
.step h3 { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 10px; font-size: 19px; line-height: 1.4; color: var(--text-2); max-width: 34ch; }
.step .more { font-size: 17px; margin-top: 12px; display: inline-block; }

/* --- Airnode ---------------------------------------------------------------- */

.phone-stage { width: min(100%, 270px); margin: 56px auto 0; }
.phone-stage .screen { font-size: 10.5px; }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 88px;
  text-align: left;
}
.feature svg { width: 40px; height: 40px; stroke: var(--text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.band--black .feature svg { stroke: var(--text-on-dark); }
.feature h3 { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; font-size: 17px; color: var(--text-2); }
.band--black .feature p { color: var(--text-2-on-dark); }

/* --- LumaCore --------------------------------------------------------------- */

.desk-stage { width: min(100%, 980px); margin: 64px auto 0; }
.specs {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.spec { text-align: center; }
.spec b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.spec span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2-on-dark); }
.badge-beta { display: inline-block; padding: 4px 10px; border-radius: 980px; background: rgba(255, 255, 255, 0.12); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-on-dark); }

/* --- Tiles: elige la tuya --------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.tile {
  position: relative;
  padding: 40px 32px 32px;
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.tile__art { height: 150px; display: grid; place-items: center; }
.tile__art img, .tile__art svg { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); transition: transform 0.6s var(--ease-out); }
.tile:hover .tile__art img, .tile:hover .tile__art svg { transform: scale(1.04); }
.tile__art svg { padding: 22px; background: #1d1d1f; stroke: #fff; fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 18px; }
.tile__tag { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.tile__desc { margin-top: 14px; font-size: 17px; }
.tile__price { margin-top: 18px; font-size: 17px; }
.tile__price small { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.tile__links { margin-top: 18px; display: flex; justify-content: center; gap: 22px; font-size: 17px; }
.tile__links .more { font-size: 17px; }

/* --- Sobre mí ---------------------------------------------------------------- */

.about p.lede { max-width: 52ch; }
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 72px;
  text-align: left;
}

/* --- Novedades ---------------------------------------------------------------- */

.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.news article {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}
.news article:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news time { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.news h3 { margin-top: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.news p { margin-top: 8px; font-size: 15px; color: var(--text-2); }

/* --- Pie ---------------------------------------------------------------------- */

.foot { background: var(--bg-2); padding: 40px 0 48px; font-size: 12px; color: var(--text-2); }
.foot .fine { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.foot .fine p + p { margin-top: 8px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.foot__cols h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--text); }
.foot__cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot__cols a { color: var(--text-2); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }

/* --- Responsivo --------------------------------------------------------------- */

@media (max-width: 900px) {
  .gnav__right { flex-direction: row-reverse; gap: 4px; }
  .menu-btn { display: inline-grid; }
  .gnav ul {
    position: fixed;
    left: 0; right: 0; top: 58px;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 16px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out);
  }
  .gnav.is-open ul { transform: none; opacity: 1; pointer-events: auto; }
  .gnav li a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .gnav li:last-child a { border-bottom: 0; }
  .is-dark .gnav ul, .is-bitraw .gnav ul { background: rgba(8, 12, 20, 0.92); }
  .band { padding-block: 80px; }
  .scrolly { grid-template-columns: 1fr; gap: 24px; }
  .scrolly__sticky { top: 108px; }
  .step { min-height: 40vh; }
  .features, .values, .tiles, .news, .foot__cols { grid-template-columns: 1fr; }
  .hero__phone { display: none; }
  .hero__tablet { width: 100%; }
  .lnav__name small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .hero .eyebrow, .hero .h-hero, .hero .lede, .hero .links, .hero__visual { animation: none; opacity: 1; transform: none; transition: none; }
  .lnav { transition: none; }
}

/* ==========================================================================
   Adiciones: matriz como hub + páginas de producto
   ========================================================================== */

/* Anuncios de la matriz: uno por app, imagen + texto, alternando fondo */
.promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.promo--flip .promo__copy { order: 2; }
.promo__copy { text-align: left; }
.promo__copy .eyebrow { font-size: 17px; }
.promo__copy .h-band { margin-top: 6px; }
.promo__copy .lede { margin: 16px 0 0; max-width: 38ch; font-size: clamp(18px, 1.6vw, 21px); }
.promo__copy .links { justify-content: flex-start; margin-top: 18px; }
.promo__copy .links .more { font-size: 19px; }
.promo__art { position: relative; }
.promo__art .device { transition: transform 0.7s var(--ease-out); }
.promo__art:hover .device { transform: translateY(-6px); }
.promo__art .device--phone { width: 62%; margin-inline: auto; }
.promo__art .device--phone .screen { font-size: 10px; }
.promo__art .dv--phone { width: min(260px, 40%); margin-inline: auto; transition: transform 0.7s var(--ease-out); }
.promo__art:hover .dv--phone { transform: translateY(-6px); }
.hero__phone .dv--phone .dv-body { box-shadow: 0 0 0 0.9cqw var(--rim), 0 0 0 1.3cqw #25292f; }

/* Hero de página de producto */
.hero--product .eyebrow { color: var(--text-2); }
.hero--product .hero__visual { width: min(100%, 980px); }
.hero--product .hero__tablet { width: 100%; }
.hero--product .hero__phoneonly { width: min(100%, 300px); margin-inline: auto; }
.hero--product .hero__phoneonly .screen { font-size: 10.5px; }
.hero--black { background: var(--bg-3); color: var(--text-on-dark); }
.hero--black .eyebrow { color: var(--text-2-on-dark); }
.hero--black .lede { color: var(--text-2-on-dark); }
.hero--black .more { color: var(--link-on-dark); }
.hero--black .hero__fade { background: linear-gradient(180deg, transparent, var(--bg-3)); }
.hero--product .hero__fade { height: 80px; }

/* Ficha de datos (sin adjetivos) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.fact { padding: 24px; border-radius: 16px; background: var(--surface); }
.band--black .fact { background: #111; }
.fact span { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.fact b { display: block; margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* Pasos "cómo funciona" */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; text-align: left; }
.steps3 div b { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--pill); line-height: 1; }
.steps3 h3 { margin-top: 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.steps3 p { margin-top: 8px; font-size: 17px; color: var(--text-2); }

/* Banda de cierre con llamada a la acción */
.cta-band { text-align: center; }
.cta-band .lede { margin-top: 12px; }
.cta-band .actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }

/* Miga de pan de producto en la barra local */
.lnav--static { position: sticky; top: 58px; transform: none; opacity: 1; }
.lnav__name a { color: inherit; }

/* Nota de estado (p. ej. prueba cerrada) */
.note { display: inline-block; margin-top: 18px; padding: 10px 16px; border-radius: 12px; background: rgba(0, 113, 227, 0.08); color: var(--text); font-size: 14px; }
.band--black .note, .hero--black .note { background: rgba(255, 255, 255, 0.1); color: var(--text-on-dark); }

@media (max-width: 900px) {
  .promo { grid-template-columns: 1fr; gap: 32px; }
  .promo--flip .promo__copy { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps3 { grid-template-columns: 1fr; }
}

/* Barra global en páginas oscuras */
.is-dark .gnav { background: rgba(0, 0, 0, 0.72); border-bottom-color: rgba(255, 255, 255, 0.12); }
.is-dark .gnav__brand, .is-dark .gnav li a { color: var(--text-on-dark); }
.is-dark .lnav { background: rgba(0, 0, 0, 0.72); border-bottom-color: rgba(255, 255, 255, 0.12); color: var(--text-on-dark); }
.is-dark .lnav__name small { color: var(--text-2-on-dark); }
.is-dark .lnav__cta a:not(.pill) { color: var(--link-on-dark); }

/* Crédito de fotografía: discreto, pero presente en cada maqueta */
.credit {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-2);
  opacity: 0.75;
  text-align: center;
}
.credit--right { text-align: right; }
.credit--over {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.band--black .credit, .is-dark .credit { color: var(--text-2-on-dark); }
.promo__art .credit { text-align: right; }


/* --- Selector de tema (claro / oscuro) ---------------------------------------- */

.theme {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--ease-out);
}
.theme:hover { background: var(--surface-2); }
.theme:active { transform: scale(0.94); }
.theme svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .ico-sun { display: none; }
:root[data-theme="dark"] .theme .ico-sun { display: block; }
:root[data-theme="dark"] .theme .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme .ico-moon { display: none; }
}
.gnav__right { display: flex; align-items: center; }
.is-dark .theme, .is-bitraw .theme { color: var(--text-on-dark); }
.is-dark .theme:hover, .is-bitraw .theme:hover { background: rgba(255, 255, 255, 0.12); }

/* Transición suave al cambiar de tema */
.theme-anim, .theme-anim * { transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease) !important; }

/* --- Marcos de dispositivo con captura real ------------------------------------ */

.device.is-img { padding: 0; overflow: hidden; }
.device--tablet.is-img { padding: 1.9%; border-radius: 22px; background: #0b0f17; }
.device--tablet.is-img img { width: 100%; height: auto; border-radius: 8px; display: block; }
.device--phone.is-img { padding: 2.6%; border-radius: 30px; background: #0b0f17; }
.device--phone.is-img img { width: 100%; height: auto; border-radius: 22px; display: block; }


/* Botón de menú (solo móvil) */
.menu-btn { display: none; place-items: center; gap: 4px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.gnav.is-open .menu-btn span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.gnav.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.gnav.is-open .menu-btn span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.is-dark .menu-btn, .is-bitraw .menu-btn { color: var(--text-on-dark); }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .lnav__name { font-size: 17px; white-space: nowrap; }
  .lnav__cta a:not(.pill) { display: none; }
  .lnav__cta .pill { padding: 7px 14px; font-size: 13px; }
}

/* --- Páginas legales --------------------------------------------------------- */

.legal { padding: 132px 0 96px; }
.legal__head { max-width: 720px; }
.legal__head .lede { margin: 16px 0 0; }
.legal__meta { margin-top: 18px; font-size: 14px; color: var(--text-2); }
.legal__body { max-width: 720px; margin-top: 48px; font-size: 17px; line-height: 1.6; }
.legal__body h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { margin: 12px 0 0; padding-left: 22px; }
.legal__body li + li { margin-top: 8px; }
.legal__body b { font-weight: 600; }
