/* Landing 3D del chasis N7-GLASS · marca My Store Digital */
:root {
  --negro: #181818;
  --negro-2: #202020;
  --naranja: #FE9100;
  --texto: #F4F4F4;
  --tenue: #B4B4B4;
  --linea: rgba(255, 255, 255, 0.14);
  --gutter: 16px;
  --titulos: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --textos: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--negro); touch-action: pan-y; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font-family: var(--textos);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, p, ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
html.girando, html.girando body { user-select: none; -webkit-user-select: none; cursor: grabbing; }

/* Fondo: panal tenue y un resplandor naranja, con moderación */
.fondo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 62% 52%, rgba(254, 145, 0, 0.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 97V64.7M0 48.5v32.3L28 97l28-16.2V48.5' fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
}
#escena {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
}
html.lista #escena { opacity: 1; }
main, .pie { position: relative; z-index: 2; }
main { cursor: grab; }

/* Barra */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(var(--gutter), env(safe-area-inset-left)) 12px max(var(--gutter), env(safe-area-inset-right));
  background: linear-gradient(rgba(24, 24, 24, 0.92), rgba(24, 24, 24, 0));
}
.marca {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--titulos); font-weight: 700; font-size: 15px;
  text-decoration: none; letter-spacing: 0.01em;
}

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 16px;
  border-radius: 10px; border: 2px solid var(--naranja);
  background: var(--naranja); color: var(--negro);
  font-family: var(--titulos); font-weight: 700; font-size: 15px;
  text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.boton:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(254, 145, 0, 0.28); }
.boton:focus-visible, .marca:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.boton--linea { background: transparent; color: var(--texto); border-color: var(--linea); }
.boton--linea:hover { border-color: var(--naranja); box-shadow: none; }
.boton--mini { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 8px; }

/* Textos comunes */
.antetitulo {
  font-family: var(--titulos); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--naranja);
}
h1, h2 { font-family: var(--titulos); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 64px); margin-top: 10px; white-space: nowrap; }
h2 { font-size: clamp(26px, 3.2vw, 44px); margin-top: 10px; }

/* Inicio */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 90px max(var(--gutter), 6vw) 60px;
  position: relative;
}
.hero__texto { max-width: 520px; }
.bajada { margin-top: 18px; font-size: 19px; color: var(--tenue); max-width: 30em; }
.datos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.datos li {
  padding: 7px 12px; border: 1px solid var(--linea); border-radius: 999px;
  font-size: 14px; font-weight: 700; background: rgba(24, 24, 24, 0.6);
}
.respaldo { display: none; }
.pista {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tenue);
  white-space: nowrap;
}
.pista__rueda {
  width: 18px; height: 28px; border: 2px solid var(--tenue); border-radius: 10px; position: relative;
}
.pista__rueda::after {
  content: ''; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px;
  background: var(--naranja); border-radius: 2px; animation: rueda 1.6s ease-in-out infinite;
}
@keyframes rueda { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(9px); opacity: 0; } }

/* Desarme: solo aporta altura de scroll; los rótulos viven en .capa */
.desarme { height: 480vh; }
.solo-lectores {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Medidas */
.medidas {
  min-height: 110vh; display: flex; align-items: center;
  padding: 80px max(var(--gutter), 6vw);
}
.medidas__texto { max-width: 440px; }
.medidas__texto p:last-child { margin-top: 16px; color: var(--tenue); }

/* Compra */
.compra {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 90px max(var(--gutter), 6vw) 60px;
}
.tarjeta {
  width: min(100%, 520px); cursor: auto;
  padding: 32px; border-radius: 18px;
  background: rgba(28, 28, 28, 0.9);
  border: 1px solid var(--linea);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tarjeta h2 { font-size: clamp(24px, 2.4vw, 32px); }
.tarjeta__sub { margin-top: 10px; color: var(--tenue); }
.precio { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.precio__valor { font-family: var(--titulos); font-weight: 800; font-size: clamp(38px, 4vw, 52px); line-height: 1; white-space: nowrap; }
.precio__nota { color: var(--tenue); font-size: 15px; }
.acciones { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.acciones .boton { flex: 1 1 200px; }
.tarjeta__envio { margin-top: 20px; font-size: 14px; color: var(--tenue); }

.pie {
  padding: 28px max(var(--gutter), 6vw) 36px;
  border-top: 1px solid var(--linea);
  background: var(--negro);
  font-size: 13px; color: var(--tenue);
}
.pie p { max-width: 70ch; }
.pie p + p { margin-top: 8px; color: var(--texto); font-family: var(--titulos); font-weight: 700; }

/* Capa de rótulos */
.capa { position: fixed; inset: 0; z-index: 3; pointer-events: none; --rotulos: 0; }
.capa__titulo, .capa__lineas, #rotulos, #puntos, .ficha-movil { opacity: var(--rotulos); }
.capa:not(.capa--activa) .capa__titulo,
.capa:not(.capa--activa) .capa__lineas,
.capa:not(.capa--activa) #rotulos,
.capa:not(.capa--activa) #puntos,
.capa:not(.capa--activa) .ficha-movil { visibility: hidden; }
.capa__titulo {
  position: absolute; top: 74px; left: 0; right: 0; text-align: center;
  font-family: var(--titulos); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--naranja);
}
.capa__lineas { position: absolute; inset: 0; width: 100%; height: 100%; }
.capa__lineas polyline { fill: none; stroke: rgba(254, 145, 0, 0.75); stroke-width: 1.25; }

.rotulo {
  position: absolute; width: min(250px, 21vw);
  padding: 12px 14px; border-radius: 12px;
  background: rgba(24, 24, 24, 0.82); border: 1px solid var(--linea);
}
.rotulo--izq { left: max(24px, 4vw); }
.rotulo--der { right: max(24px, 4vw); }
.rotulo__titulo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--titulos); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--tenue);
}
.rotulo__titulo b {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--naranja); color: var(--negro); font-size: 12px; letter-spacing: 0;
}
.rotulo__dato { margin-top: 6px; font-family: var(--titulos); font-weight: 800; font-size: 20px; line-height: 1.15; }
.rotulo__nota { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--tenue); }
.rotulo__fuente { margin-top: 8px; font-size: 12px; color: #8d8d8d; }

.punto {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--naranja); color: var(--negro);
  font-family: var(--titulos); font-weight: 800; font-size: 12px;
  box-shadow: 0 0 0 4px rgba(254, 145, 0, 0.22);
  will-change: transform;
}
.ficha-movil { display: none; }

.cotas { position: absolute; inset: 0; opacity: 0; }
.cota {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px;
  background: var(--negro); border: 1px solid var(--naranja);
  font-size: 13px; color: var(--tenue); will-change: transform;
}
.cota b { font-family: var(--titulos); font-weight: 800; font-size: 14px; color: var(--texto); }

.cargando {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 6;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tenue);
}
.aviso-nojs { position: relative; z-index: 6; padding: 16px; text-align: center; }

/* Sin WebGL: se muestra la foto de la ficha */
html.sin-webgl #escena, html.sin-webgl .capa, html.sin-webgl .desarme, html.sin-webgl .pista { display: none; }
html.sin-webgl .respaldo { display: block; width: min(46vw, 520px); height: auto; margin-left: auto; border-radius: 16px; }

/* Celular */
html.es-movil .fondo {
  background:
    radial-gradient(90% 40% at 50% 62%, rgba(254, 145, 0, 0.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 97V64.7M0 48.5v32.3L28 97l28-16.2V48.5' fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
}
html.es-movil .hero { align-items: flex-start; padding: 84px var(--gutter) 60px; }
html.es-movil .bajada { font-size: 17px; margin-top: 12px; }
html.es-movil .datos { margin-top: 16px; gap: 6px; }
html.es-movil .datos li { font-size: 13px; padding: 6px 10px; }
html.es-movil .medidas { align-items: flex-start; padding: 96px var(--gutter) 60px; }
html.es-movil .compra { align-items: flex-start; justify-content: center; padding: 50vh var(--gutter) 40px; }
html.es-movil .tarjeta { padding: 22px 18px; background: rgba(28, 28, 28, 0.96); }
html.es-movil .acciones .boton { flex: 1 1 100%; }
html.es-movil #rotulos, html.es-movil .capa__lineas { display: none; }
html.es-movil .punto { opacity: 0.55; transform-origin: center; }
html.es-movil .punto--activo { opacity: 1; box-shadow: 0 0 0 5px rgba(254, 145, 0, 0.3), 0 0 22px rgba(254, 145, 0, 0.7); }
html.es-movil .punto:not(.punto--activo) { background: #3a3a3a; color: var(--texto); box-shadow: none; }
html.es-movil .ficha-movil {
  display: block; position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: max(var(--gutter), env(safe-area-inset-bottom));
  min-height: 150px; padding: 14px 16px; border-radius: 14px;
  background: rgba(28, 28, 28, 0.94); border: 1px solid var(--linea);
}
.ficha-movil__paso { font-size: 12px; color: #9a9a9a; margin-bottom: 6px; }
.ficha-movil__paso b { color: var(--naranja); font-family: var(--titulos); font-size: 14px; }
html.sin-webgl.es-movil .respaldo, html.sin-webgl .hero { flex-wrap: wrap; }

@media (max-width: 859px) {
  .hero__texto { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pista__rueda::after { animation: none; }
  .boton, #escena { transition: none; }
}
