:root {
  --night: #070d18;
  --navy: #102341;
  --orange: #ff913f;
  --green: #287b4b;
  --paper: #f5f7fa;
  --panel: #fff;
  --ink: #102341;
  --muted: #596677;
  --line: #dae0e8;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 Inter,
    Arial,
    sans-serif;
}
.dark {
  --paper: #070d18;
  --panel: #0c1627;
  --ink: #f5f7fa;
  --muted: #b4c1d2;
  --line: #1e2b40;
  color-scheme: dark;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 600;
}
h2 {
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 600;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
img {
  display: block;
  max-width: 100%;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 50;
  background: white;
  color: var(--navy);
  padding: 15px;
}
.skip:focus {
  top: 0;
}
header {
  height: 88px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #070d18f5;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #ffffff14;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.brand img {
  width: 42px;
  height: 48px;
  object-fit: contain;
}
header nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: #c5cedb;
}
header nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s;
}
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.3, 0.6, 0.2, 1);
}
header nav a:hover,
header nav a[aria-current] {
  color: #fff;
}
header nav a:hover::after,
header nav a[aria-current]::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--orange);
  color: var(--night);
  padding: 16px 25px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #ffad70;
  transform: translateY(-2px);
}
.small {
  padding: 11px 17px;
  font-size: 14px;
}
.header-actions > .small {
  background: transparent;
  color: #fff;
  border-color: #566277;
}
.header-actions > .small:hover {
  border-color: var(--orange);
}
.icon {
  border: 1px solid #78839655;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
.cart-btn {
  background: none;
  border: 0;
  font-size: 14px;
}
.cart-btn span {
  color: var(--orange);
  margin-left: 6px;
}
header .brand-glow {
  animation: logo-entry 1.5s ease both;
}
header .brand:hover .brand-glow {
  filter: brightness(1.12);
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-areas: "intro media" "price media" "purchase media";
  grid-template-rows: 1fr auto 1fr;
  column-gap: clamp(32px, 6vw, 100px);
  row-gap: 24px;
  padding: clamp(32px, 4.4vw, 72px) max(6%, calc((100% - 1280px) / 2));
  background: radial-gradient(ellipse at 75% 18%, #182e49, transparent 67%), var(--night);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 3%, #ff913fb3 32%, #439369 76%, transparent);
  transform-origin: left;
}
.hero-intro {
  grid-area: intro;
  align-self: end;
}
.hero .eyebrow {
  margin-bottom: 16px;
}
.hero .hero-title {
  font-size: clamp(68px, 7vw, 102px);
  font-weight: 600;
  line-height: 1;
}
.hero .hero-title span {
  display: block;
  max-width: 15ch;
  margin-top: 10px;
  color: #c5d1e1;
  font-size: 0.5em;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  border-left: 8px solid var(--orange);
}
.hero-price {
  grid-area: price;
}
.hero-price p, .hero-buy p {
  color: #b8c5d6;
  font-size: 14px;
}
.hero-price strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.hero-buy {
  grid-area: purchase;
  align-self: start;
}
.hero-buy .button {
  gap: 20px;
}
.hero-buy p {
  max-width: 43ch;
  margin-top: 12px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.17em;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 24px;
}
.text-link {
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68c58d;
  box-shadow: 0 0 12px #68c58d55;
}
.ribbon {
  padding: 16px 6%;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}
.section {
  padding: 100px 7%;
}
.feature {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.feature h3 {
  font-size: 17px;
}
.feature p {
  font-size: 14px;
  margin-top: 7px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 46px;
}
.section-head > p {
  font-size: 15px;
}
.how {
  /* mismo fondo que la página: el teléfono del tutorial queda flotando, sin marcos */
  background: var(--paper);
  overflow-x: clip;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8%;
  align-items: center;
}
.radar {
  height: 420px;
  border-radius: 12px;
  background: #0c192b;
  position: relative;
  overflow: hidden;
  color: white;
  display: grid;
  place-items: center;
}
.radar-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 40px 40px;
  transform: rotate(-15deg) scale(1.5);
}
.orbit {
  position: absolute;
  border: 1px solid #4c976a40;
  border-radius: 50%;
  width: 130px;
  height: 130px;
}
.two {
  width: 240px;
  height: 240px;
}
.three {
  width: 350px;
  height: 350px;
}
.radar.locating .orbit {
  animation: radar-pulse 2.8s ease-in-out infinite;
}
.radar.locating .two {
  animation-delay: 0.3s;
}
.radar.locating .three {
  animation-delay: 0.6s;
}
.tag-point {
  width: 76px;
  height: 76px;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 45px #64e89730;
}
.tag-point img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-top {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.demo-label {
  color: #a4b1c6;
}
.demo-status {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  border: 1px solid #ffffff20;
  background: #11243a;
  padding: 15px;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 6px;
}
.step {
  display: flex;
  text-align: left;
  gap: 22px;
  padding: 24px 20px;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
}
.step.active {
  background: var(--paper);
  border-left-color: var(--orange);
}
.step > span {
  font-size: 12px;
  color: var(--green);
}
.step h3 {
  font-size: 19px;
}
.step p {
  font-size: 14px;
  margin-top: 9px;
}
.fine {
  font-size: 12px;
  margin-top: 22px;
}
.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pack {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 10px;
}
.pack h3 {
  font-size: 26px;
}
.pack p {
  font-size: 14px;
  margin-top: 10px;
}
.pack-price {
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 30px 0 0;
}
.pack-price small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.pack .button {
  width: 100%;
  margin-top: 24px;
}
.shipping {
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.shipping p {
  font-size: 13px;
  margin-top: 8px;
}
.secondary {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  font-size: 13px;
}
.secondary:hover {
  background: #244267;
}
.security {
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}
.security p {
  color: #afbed2;
  margin: 24px 0;
  font-size: 15px;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.trust-grid article > span {
  font-size: 28px;
  color: #7bc695;
}
.trust-grid h3 {
  font-size: 17px;
  margin-top: 12px;
}
.trust-grid p {
  font-size: 13px;
  margin: 12px 0 0;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10%;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}
details p {
  font-size: 14px;
  margin-top: 16px;
}
.future {
  text-align: center;
  padding: 80px 20px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.future p:not(.eyebrow) {
  margin: 24px 0;
}
.future > span {
  font-size: 10px;
  letter-spacing: 0.15em;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 20px;
}
footer {
  background: var(--night);
  color: #fff;
  padding: 50px 7%;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
}
footer p,
footer a:not(.brand),
footer button {
  font-size: 12px;
  color: #b4c1d2;
}
footer > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}
footer button {
  border: 0;
  background: none;
  padding: 0;
}
footer small {
  grid-column: 1/-1;
  color: #73849b;
  border-top: 1px solid #ffffff14;
  padding-top: 24px;
  font-size: 11px;
}
dialog {
  width: min(500px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  background: var(--panel);
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #030913b8;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.dialog-head h2 {
  font-size: 26px;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-line img {
  width: 92px;
  height: 92px;
  flex: none;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #16264380, #0a142400 75%), #0a1424;
}
.dark .cart-line img {
  background: transparent;
}
.quantity {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}
.quantity button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 5px;
}
.total {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.full {
  width: 100%;
  margin-top: 25px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  z-index: 30;
  display: none;
}
.reveal {
  opacity: 1;
}
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.motion-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes logo-entry {
  0% {
    opacity: 0;
    filter: grayscale(1) brightness(0.5);
  }
  45% {
    opacity: 1;
    filter: grayscale(1) brightness(0.8);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}
@keyframes radar-pulse {
  50% {
    opacity: 0.4;
    transform: scale(1.08);
  }
}
@media (max-width: 1000px) {
  header nav {
    gap: 14px;
  }
  .header-actions {
    gap: 10px;
  }
  header {
    padding: 0 4%;
  }
  .header-actions > .small {
    display: none;
  }
  .section {
    padding: 75px 5%;
  }
  .pack {
    padding: 24px;
  }
  .shipping {
    flex-direction: column;
  }
  .security {
    gap: 6%;
  }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 136px; }
  header {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    padding: 14px 5%;
    gap: 10px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 32px;
    height: 37px;
  }
  header nav {
    order: 3;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid #ffffff15;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "media" "price" "purchase";
    grid-template-rows: auto;
    gap: 10px;
    padding: clamp(16px, 4vw, 26px) 6% 26px;
  }
  .hero .hero-title {
    font-size: clamp(40px, 10vw, 62px);
  }
  .hero .hero-title span {
    font-size: 0.62em;
    max-width: none;
    margin-top: 5px;
  }
  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 9px;
  }
  .hero-price {
    margin-top: 2px;
  }
  .hero-price strong {
    font-size: clamp(21px, 4.9vw, 28px);
  }
  .hero-buy .button {
    width: 100%;
    justify-content: space-between;
    padding: 13px 16px;
  }
  .hero-buy p {
    max-width: none;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 9px;
  }
  .ribbon {
    font-size: 13px;
    padding: 14px 6%;
  }
  .section {
    padding: 60px 6%;
  }
  .demo-grid,
  .security,
  .faq {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    margin-top: 22px;
    font-size: 14px;
  }
  .packs {
    grid-template-columns: 1fr;
  }
  .pack {
    padding: 28px;
  }
  .pack-price {
    margin-top: 18px;
  }
  .radar {
    height: 350px;
  }
  .trust-grid {
    gap: 25px;
  }
  .future {
    padding: 60px 6%;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    padding: 40px 6%;
    gap: 25px;
  }
  footer > .brand {
    grid-column: 1/-1;
  }
}
video:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 700px) {
}
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: light-line 1.1s .12s ease-out both; }
}
@keyframes light-line {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes film-entry {
  from { opacity: .55; transform: translateY(10px) scale(.975); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
[hidden] {
  display: none !important;
}
/* Textos según cómo se compra: estático (Mercado Libre) o tienda directa con servidor */
.only-direct { display: none !important; }
.is-direct .only-direct { display: inline !important; }
.is-direct .only-static { display: none !important; }

/* ===== Portada: emblema + A Tag sobre azul noche, sin recuadro ===== */
.hero-visual {
  grid-area: media;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 520px);
  aspect-ratio: 955 / 1045;
}
.hero-visual::before {
  /* luz ambiente que separa el producto del fondo, sin bordes */
  content: "";
  position: absolute;
  inset: 8% 4% 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #8fb3ec2e, #8fb3ec0d 55%, transparent);
  pointer-events: none;
}
.emblem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.emblem .piece {
  fill: #11264a;
  stroke: #9ab8e4;
  stroke-opacity: 0.3;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}
.emblem-orange { fill: #fc8335; }
.emblem-green {
  fill: #2b764c;
  filter: drop-shadow(0 0 5px #3fbf7a59);
}
.emblem-glint {
  fill: none;
  stroke: #ffe2c4;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0.12 0.88;
  stroke-dashoffset: 0.12;
  opacity: 0;
  filter: drop-shadow(0 0 7px #ff9a4a);
}
.tag-world {
  /* centro del hexágono interior del emblema */
  position: absolute;
  left: 49.7%;
  top: 46.5%;
  width: 68%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.tag-still,
.tag-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tag-world.is-live .tag-still { visibility: hidden; }
/* La silueta se separa del azul noche con un halo frío muy suave, sin bordes */
.tag-still,
.tag-canvas {
  filter: drop-shadow(0 0 22px #8fb3ec33) drop-shadow(0 22px 26px #0000008c);
}
.tag-toggle {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff2e;
  border-radius: 50%;
  background: #070d18b3;
  color: #c5d1e1;
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s;
}
.tag-toggle:hover,
.tag-toggle:focus-visible { opacity: 1; border-color: #ffffff66; }
.tag-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag-toggle .icon-play { fill: currentColor; display: none; }
.tag-toggle[aria-pressed="true"] .icon-play { display: block; }
.tag-toggle[aria-pressed="true"] .icon-pause { display: none; }
.tag-canvas { pointer-events: none; }

/* Intro: una vez por sesión (clase .intro en <html>), ~1,5 s, sin tapar título ni compra */
@media (prefers-reduced-motion: no-preference) {
  .intro .company .emblem .piece {
    stroke-dasharray: 1;
    animation:
      emblem-draw 0.62s calc(var(--i) * 45ms) cubic-bezier(0.3, 0.6, 0.2, 1) both,
      emblem-fill 0.5s calc(0.28s + var(--i) * 35ms) ease-out both;
  }
  .intro .company .emblem-glint { animation: emblem-glint 0.62s 0.32s cubic-bezier(0.45, 0, 0.2, 1) both; }
  .intro .company .emblem-orange { animation: emblem-show 0.32s 0.62s ease-out both; }
  .intro .company .emblem-green { animation: emblem-green 0.5s 0.86s ease-out both; }
}
@keyframes emblem-draw {
  from { stroke-dashoffset: 1; stroke-opacity: 0.85; }
  to { stroke-dashoffset: 0; stroke-opacity: 0.3; }
}
@keyframes emblem-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes emblem-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes emblem-glint {
  0% { opacity: 0; stroke-dashoffset: 0.12; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -0.34; }
}
@keyframes emblem-green {
  0% { opacity: 0; filter: none; }
  55% { opacity: 1; filter: drop-shadow(0 0 16px #46d98a); }
  100% { opacity: 1; filter: drop-shadow(0 0 5px #3fbf7a59); }
}

/* ===== Recorrido del producto: frente, reverso y llavero ===== */
.tour {
  position: relative;
  padding: 90px 7%;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 70% 45%, #142b4c, transparent 70%),
    var(--night);
}
.tour .eyebrow { margin-bottom: 14px; }
.tour h2 { color: #fff; }
.tour-steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.tour-step p { color: #b8c5d6; margin-top: 8px; max-width: 34ch; }
.tour-num {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.tour-figure {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 22px;
}

/* Antes de elegir */
.product-notes h2 { margin-bottom: 30px; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 34px;
  margin-bottom: 22px;
}

@media (max-width: 700px) {
  .hero-visual { width: min(78vw, 330px); }
  .tour { padding: 64px 6%; }
  .tour-steps { grid-template-columns: 1fr; gap: 46px; }
  .notes-grid { grid-template-columns: 1fr; }
}

/* Demo que avanza sola: barra de progreso en el paso activo */
.step { position: relative; }
.steps.is-auto .step.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
  transform-origin: left;
  animation: step-progress 3.2s linear both;
}
@keyframes step-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Emblema del cierre */
.future .emblem--mark {
  position: static;
  display: block;
  width: 84px;
  height: auto;
  aspect-ratio: 955 / 1045;
  margin: 0 auto 26px;
}
.future .emblem--mark .piece { fill: #11264a; stroke: #11264a; stroke-opacity: 1; }
.dark .future .emblem--mark .piece { stroke: #9ab8e4; stroke-opacity: 0.3; }
@media (prefers-reduced-motion: no-preference) {
  .future.will-draw .emblem--mark .piece { stroke: #11264a; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
  .future.will-draw .emblem--mark .emblem-orange,
  .future.will-draw .emblem--mark .emblem-green { opacity: 0; }
  .future.is-drawn .emblem--mark .piece {
    animation:
      emblem-draw-mark 0.7s calc(var(--i) * 60ms) cubic-bezier(0.3, 0.6, 0.2, 1) forwards,
      emblem-fill 0.5s calc(0.35s + var(--i) * 45ms) ease-out forwards;
  }
  .future.is-drawn .emblem--mark .emblem-orange { animation: emblem-show 0.35s 0.75s ease-out forwards; }
  .future.is-drawn .emblem--mark .emblem-green { animation: emblem-green 0.5s 0.95s ease-out forwards; }
}
@keyframes emblem-draw-mark { to { stroke-dashoffset: 0; } }

/* Modo oscuro: ajustes de contraste donde había colores fijos claros */
.dark .secondary { background: #1b3358; }
.dark .secondary:hover { background: #24426f; }
.dark .quantity button { background: #101d33; }

/* ===== Tutorial: el teléfono es el protagonista ===== */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "intro player" "chapters player";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 7vw, 120px);
  row-gap: 34px;
  align-items: start;
  margin-bottom: clamp(70px, 9vw, 130px);
}
.guide-intro { grid-area: intro; align-self: end; padding-top: 6vh; }
.guide-intro .eyebrow { margin-bottom: 14px; }
.guide-intro h2 { max-width: 13ch; }
.guide-intro > p:last-child { max-width: 42ch; margin-top: 18px; }
.guide-player {
  grid-area: player;
  position: relative;
  justify-self: center;
}
.guide-player video {
  display: block;
  /* escala legible sin recortar: el video completo, en su proporción 9:16 */
  height: min(80vh, 780px);
  height: min(80svh, 780px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  background: #060b16;
  border-radius: 22px;
  scroll-margin-top: 100px;
}
.dark .guide-player video {
  border-radius: 0;
  /* bordes fundidos con el azul noche: no queda un rectángulo alrededor del teléfono */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 93%, transparent);
  mask-composite: intersect;
}
.dark .guide-player video:fullscreen { -webkit-mask-image: none; mask-image: none; }
.dark .guide-player::before {
  /* el resplandor violeta del video continúa sobre la página y se apaga en el azul noche */
  content: "";
  position: absolute;
  inset: -8% -30%;
  background: radial-gradient(closest-side, #170a2b 0%, #0f0b22 45%, transparent 100%);
  pointer-events: none;
}
.guide-player video { position: relative; }
.guide-play {
  position: absolute;
  left: 50%;
  /* sobre el mapa de la portada, sin tapar la tarjeta ni el botón «Conectar» */
  top: 25%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  background: #070d18d9;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 30px #0008;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, border-color 0.2s;
}
.guide-play:hover,
.guide-play:focus-visible { border-color: var(--orange); transform: translateX(-50%) translateY(-2px); }
.guide-play-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
}
.guide-play-icon::before {
  content: "";
  margin-left: 4px;
  border-block: 9px solid transparent;
  border-left: 14px solid var(--night);
}
.guide-play-text { display: grid; text-align: left; line-height: 1.25; }
.guide-play-text small { color: #b8c5d6; font-weight: 500; font-size: 12px; }
.chapters {
  grid-area: chapters;
  display: grid;
  gap: 10px;
  max-width: 460px;
}
.chapters[hidden] { display: none; }
.chapters button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.chapters button:hover { border-color: #ff913f88; }
.chapters .ch-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chapters .ch-text { display: grid; gap: 2px; }
.chapters .ch-text strong { font-size: 17px; letter-spacing: -0.02em; }
.chapters .ch-text small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.chapters time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.chapters button[aria-current="true"] {
  border-color: var(--orange);
  background: #ff913f14;
}
.chapters button[aria-current="true"] .ch-num {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--night);
}
@media (max-width: 700px) {
  .guide {
    grid-template-columns: 1fr;
    /* capítulos encima del video: al llegar a la sección se ven juntos */
    grid-template-areas: "intro" "chapters" "player";
    grid-template-rows: auto;
    row-gap: 12px;
  }
  .guide-intro { padding-top: 0; }
  .guide-intro > p:last-child { margin-top: 10px; }
  .guide-player { width: 100%; display: grid; justify-items: center; }
  .guide-player video {
    width: min(100%, calc((100svh - 200px) * 9 / 16));
    height: auto;
    /* al elegir un capítulo, el video queda bajo el encabezado y los capítulos debajo, en pantalla */
    scroll-margin-top: calc(var(--header-h, 112px) + 8px);
  }
  /* capítulos pegados al reproductor, al alcance del pulgar */
  .chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
  }
  .chapters button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    min-height: 58px;
    padding: 8px 6px;
    text-align: center;
  }
  .chapters .ch-num, .chapters .ch-text small { display: none; }
  .chapters .ch-text strong { font-size: 15px; }
  .chapters time { font-size: 12px; }
}

/* ===== Portada de empresa ===== */
.company {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  align-items: center;
  column-gap: clamp(32px, 6vw, 100px);
  min-height: min(calc(100svh - 88px), 820px);
  padding: clamp(40px, 5vw, 88px) max(6%, calc((100% - 1280px) / 2));
  background: radial-gradient(ellipse at 78% 30%, #182e49, transparent 66%), var(--night);
  color: #fff;
}
.company::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 3%, #ff913fb3 32%, #439369 76%, transparent);
  transform-origin: left;
}
.company h1 {
  max-width: 14ch;
  font-size: clamp(42px, 5.6vw, 82px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.company-lead {
  max-width: 52ch;
  margin-top: 26px;
  color: #c5d1e1;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}
.company-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 34px;
}
.company .text-link { color: #fff; }
.company .text-link:hover { color: var(--orange); }
.company-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 955 / 1045;
}
.company-visual::before {
  content: "";
  position: absolute;
  inset: 4% -8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #8fb3ec26, transparent);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .company::after { animation: light-line 1.1s .12s ease-out both; }
  /* después de la intro, el emblema "respira" muy despacio */
  .motion .company-visual { animation: emblem-float 9s ease-in-out 2s infinite; }
}
@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Qué hacemos ===== */
.areas {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 110px);
  padding-block: clamp(72px, 9vw, 130px);
}
.areas-head p:not(.eyebrow) { margin-top: 22px; max-width: 38ch; }
.areas-head h2 { max-width: 12ch; }
.area { border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area h3 { font-size: inherit; letter-spacing: 0; }
.area button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 22px;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.area-num { color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.area-name {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.area.is-open .area-name,
.area button:hover .area-name { opacity: 1; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}
.status--live { color: #4fb37f; }
.status--live::before { background: #4fb37f; opacity: 1; box-shadow: 0 0 10px #4fb37f99; }
.area-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.3, 0.6, 0.2, 1), opacity 0.35s;
  opacity: 0;
}
.area.is-open .area-body { grid-template-rows: 1fr; opacity: 1; }
.area-body > div { overflow: hidden; padding-left: 44px; }
.area-body p { max-width: 52ch; padding-bottom: 12px; }
.area-body .text-link { display: inline-block; margin-bottom: 28px; }
.area-body:not(:has(.text-link)) > div { padding-bottom: 26px; }

/* ===== Quiénes somos ===== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
  padding-block: clamp(72px, 9vw, 130px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.about h2 { max-width: 16ch; }
.about-body p { max-width: 52ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.about-body p + p { margin-top: 18px; }

/* Datos que todavía debe confirmar el dueño */
.todo span,
.todo dd span {
  display: inline-block;
  margin-right: 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.about-body .todo { margin-top: 28px; font-size: 14px; }

/* ===== Productos ===== */
.store-head {
  padding: clamp(64px, 8vw, 110px) max(7%, calc((100% - 1280px) / 2)) clamp(36px, 5vw, 64px);
}
.store-head h2 { max-width: 16ch; }
.store-head p:not(.eyebrow) { margin-top: 18px; max-width: 52ch; }

/* ===== Contacto ===== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 110px);
  padding-block: clamp(72px, 9vw, 120px);
}
.contact-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.5fr) 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 14px; }
.contact-list dd { color: var(--ink); font-size: 16px; }
.contact-list a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--orange); }
.contact-list a:hover { color: var(--orange); }
.contact-list .todo dd { color: var(--muted); }

@media (max-width: 900px) {
  .company {
    grid-template-columns: 1fr;
    min-height: 0;
    row-gap: 36px;
    padding: 36px 6% 46px;
  }
  .company h1 { max-width: none; font-size: clamp(36px, 10.4vw, 52px); }
  .company-actions .button { width: 100%; justify-content: center; }
  .company-visual { order: -1; justify-self: start; width: 112px; }
  .company { row-gap: 22px; padding-top: 28px; }
  .areas, .about, .contact { grid-template-columns: 1fr; }
  .area button { grid-template-columns: auto 1fr; padding: 22px 0; }
  .area .status { grid-column: 2; }
  .area-body > div { padding-left: 0; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ===================== Sitio de varias páginas ===================== */

/* Transición suave entre páginas (navegadores que la soportan; el resto navega normal) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out 0.18s ease-in both; }
  ::view-transition-new(root) { animation: page-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  header { view-transition-name: site-header; }
  .page-first > *:not(svg) { animation: page-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-first > *:nth-child(2) { animation-delay: 0.06s; }
  .page-first > *:nth-child(3) { animation-delay: 0.12s; }
}
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
@keyframes page-rise { from { opacity: 0; transform: translateY(14px); } }

/* La primera sección de cada página interna arranca con aire bajo el encabezado */
.page-first { padding-top: clamp(56px, 8vw, 110px); }
.page-first h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.areas.page-first h1 { max-width: 12ch; }
.about.page-first h1 { max-width: 16ch; }
.contact.page-first h1 { max-width: 10ch; }
.store-head h1 { max-width: 16ch; }
.future.page-first {
  padding-block: clamp(64px, 9vw, 120px);
  background: radial-gradient(ellipse at 50% 0%, #15294733, transparent 70%), var(--paper);
  border-top: 0;
}
.future.page-first h1 { max-width: 14ch; margin-inline: auto; }
.future.page-first p:not(.eyebrow) { max-width: 56ch; margin-inline: auto; }
.future .emblem--mark { margin-bottom: 30px; }

/* Menú: página actual */
header nav a[aria-current="page"] { color: #fff; }

/* ----- Menú móvil ----- */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.menu-bars { position: relative; width: 18px; height: 10px; }
.menu-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, top 0.3s;
}
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8px; }
.menu-open .menu-bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-bars span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  header.has-menu { flex-wrap: nowrap; height: 72px; min-height: 0; padding: 0 5%; gap: 12px; }
  header.has-menu .menu-toggle { display: inline-flex; order: 2; margin-left: auto; }
  header.has-menu .header-actions { order: 3; margin-left: 0; }
  header.has-menu nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    order: 4;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 5% 22px;
    border-top: 1px solid #ffffff14;
    border-bottom: 1px solid #ffffff14;
    background: #070d18fa;
    backdrop-filter: blur(16px);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    overflow: visible;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.3s;
  }
  header.menu-open nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
  }
  header.has-menu nav a { padding: 14px 0; border-bottom: 1px solid #ffffff10; }
  header.has-menu nav a:last-child { border-bottom: 0; }
  header.has-menu nav a::after { bottom: 10px; right: auto; width: 28px; }
  html { scroll-padding-top: 88px; }
}
@media (max-width: 520px) {
  header.has-menu .cart-btn { font-size: 0; gap: 0; }
  header.has-menu .cart-btn #count { font-size: 14px; }
  header.has-menu .cart-btn::before { content: "🛒"; font-size: 16px; filter: grayscale(1) brightness(2); margin-right: 6px; }
  header.has-menu .menu-label { display: none; }
  header.has-menu .menu-toggle { padding: 11px 12px; }
}

/* ----- Inicio: directorio de áreas ----- */
.directory {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 7vw, 110px);
  padding-block: clamp(72px, 9vw, 130px);
}
.directory-head h2 { max-width: 11ch; }
.directory-list { list-style: none; margin: 0; padding: 0; }
.directory-list li { border-top: 1px solid var(--line); }
.directory-list li:last-child { border-bottom: 1px solid var(--line); }
.directory-list a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px 24px;
  padding: 26px 0;
  color: var(--ink);
}
.dir-num { color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.dir-text { display: grid; gap: 6px; }
.dir-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: color 0.25s;
}
.dir-desc { color: var(--muted); font-size: 15px; max-width: 48ch; }
.dir-arrow {
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s;
}
.directory-list a:hover .dir-title,
.directory-list a:focus-visible .dir-title { color: var(--orange); }
.directory-list a:hover .dir-arrow,
.directory-list a:focus-visible .dir-arrow { transform: translateX(6px); color: var(--orange); }
.directory-list a:not(:has(.status)) .dir-arrow { grid-column: 4; }

/* ----- Inicio: A Tag destacado ----- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(56px, 7vw, 100px) max(7%, calc((100% - 1280px) / 2));
  background: radial-gradient(ellipse at 75% 50%, #182e49, transparent 62%), var(--night);
  color: #fff;
}
.feature h2 { font-size: clamp(44px, 6vw, 84px); letter-spacing: -0.045em; }
.feature p:not(.eyebrow) { max-width: 40ch; margin: 18px 0 30px; color: #c5d1e1; font-size: 17px; }
.feature-img { width: min(100%, 460px); height: auto; justify-self: center; filter: drop-shadow(0 30px 40px #0009); }
@media (prefers-reduced-motion: no-preference) {
  .motion .feature-img { animation: emblem-float 8s ease-in-out infinite; }
}

/* ----- Tienda: A Tag con llavero (bucle silencioso del anuncio) ----- */
.ad {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}
.ad-copy h2 { font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.045em; line-height: 1; }
.ad-sub { margin-top: 14px; max-width: 32ch; font-size: 17px; color: var(--muted); }
.ad-price { margin: 28px 0 22px; }
.ad-price p { font-size: 13px; color: var(--muted); }
.ad-price strong { display: block; margin-top: 4px; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.03em; }
.ad-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 620px);
  aspect-ratio: 1;
}
/* Foto fija: mismo encuadre que el video (producto al 68 % del ancho, con aire alrededor) */
.ad-still {
  position: absolute;
  left: 16%;
  top: 18.6%;
  width: 68%;
  height: auto;
  filter: drop-shadow(0 26px 30px #0007);
  transition: opacity 0.6s;
}
.ad-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s;
  /* bordes fundidos con el azul noche: no queda ningún recuadro */
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
}
.ad-visual.is-playing .ad-loop { opacity: 1; }
.ad-visual.is-playing .ad-still { opacity: 0; }
html:not(.dark) .ad-loop { display: none; }
html:not(.dark) .ad-still { filter: drop-shadow(0 24px 26px #10234133); }
@media (prefers-reduced-motion: reduce) { .ad-loop { display: none; } }
@media (max-width: 900px) {
  .ad-visual { order: -1; width: min(100%, 440px); margin-block: -6% -10%; }
  .ad-buy { width: 100%; justify-content: center; }
}

/* ----- Enlaces a páginas relacionadas ----- */
.related {
  padding: clamp(48px, 6vw, 80px) max(7%, calc((100% - 1280px) / 2));
  border-top: 1px solid var(--line);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 clamp(24px, 4vw, 60px);
  margin-top: 18px;
}
.related-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.related-kicker { grid-column: 1; color: var(--muted); font-size: 13px; }
.related-title { grid-column: 1; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; transition: color 0.25s; }
.related-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 20px; color: var(--muted); transition: transform 0.3s, color 0.25s; }
.related-list a:hover .related-title { color: var(--orange); }
.related-list a:hover .related-arrow { color: var(--orange); transform: translateX(5px); }

/* ----- Pie: páginas ----- */
.footer-nav { display: flex; flex-direction: column; align-items: start; gap: 10px; }

@media (max-width: 900px) {
  .directory, .feature, .ad { grid-template-columns: 1fr; }
  .directory-list a { grid-template-columns: auto 1fr auto; padding: 22px 0; }
  .directory-list .status { grid-column: 2; grid-row: 2; }
  .directory-list .dir-arrow { grid-column: 3; grid-row: 1 / 3; }
  .feature-img { width: min(80%, 340px); order: -1; }
  .feature .button { width: 100%; justify-content: center; }
  .ad-copy { text-align: left; }
}
footer { align-items: start; }
footer .footer-nav { gap: 8px; }
footer .footer-nav a { font-size: 13px; }
.contact-list dd { margin: 0; }
@media (max-width: 900px) {
  header.has-menu nav {
    background: #070d18;
    min-height: calc(100svh - 72px);
    justify-content: flex-start;
    padding-top: 18px;
  }
  header.has-menu nav a { font-size: 26px; }
}
.menu-open ~ main, .menu-open ~ footer { pointer-events: none; }
/* Tienda: encabezado compacto para que A Tag aparezca enseguida */
.store-head.page-first { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(20px, 3vw, 36px); }
.store-head h1 { font-size: clamp(32px, 3.8vw, 52px); }
@media (max-width: 900px) { .ad { gap: 18px; } }
