/* ORVY · estilos de la landing. Sin estilos en línea (la CSP los bloquea). */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('/assets/fonts/silkscreen.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #06080b;
  --panel: #0d1116;
  --panel-2: #121821;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #eef3f6;
  --muted: #8b97a4;
  --oled: #9de9ff;
  --oled-2: #4fe3ff;
  --hot: #b79bff;
  --case: #ecebe6;
  --glow: 0 0 24px rgba(79, 227, 255, 0.45), 0 0 80px rgba(79, 227, 255, 0.18);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --pixel: 'Silkscreen', ui-monospace, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--oled);
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 800;
  font-stretch: 112%;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
::selection {
  background: var(--oled);
  color: #000;
}
:focus-visible {
  outline: 2px solid var(--oled);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Grano de película sobre toda la página */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; }
  25% { background-position: -40px 30px; }
  50% { background-position: 30px -50px; }
  75% { background-position: -20px 45px; }
  100% { background-position: 45px -15px; }
}
/* Nada se sale por los lados (cinta inclinada, aurora, rejilla) */
main {
  overflow-x: clip;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.5em;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #c8f5ff, var(--oled-2));
  color: #021015;
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(79, 227, 255, 0.7), 0 0 110px rgba(79, 227, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  filter: saturate(0.4) brightness(0.8);
  cursor: progress;
}
.btn-small {
  padding: 0.6em 1.1em;
  font-size: 0.9rem;
}
.btn-big {
  padding: 1.15em 2.2em;
  font-size: 1.2rem;
  animation: pulse 2.6s ease-in-out infinite;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
  50% { box-shadow: 0 0 40px rgba(79, 227, 255, 0.8), 0 0 140px rgba(79, 227, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
}
.link-btn {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.link-btn strong {
  color: var(--oled);
  font-weight: 700;
  border-bottom: 1px solid rgba(157, 233, 255, 0.4);
}
.link-btn:hover strong {
  border-bottom-color: var(--oled);
}
.link-btn.plain {
  margin: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--pixel);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oled);
  text-shadow: 0 0 12px rgba(79, 227, 255, 0.6);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 1px;
  background: var(--oled);
  box-shadow: 0 0 10px var(--oled-2);
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0.2; }
}

/* ---------- Cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  background: rgba(6, 8, 11, 0.62);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--pixel);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(157, 233, 255, 0.55);
}
.logo.small {
  font-size: 1rem;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.lang button {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 0.75rem;
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: #000;
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(64px, 8vw, 120px);
  scroll-margin-top: 80px;
  isolation: isolate;
}
/* Aurora de fondo */
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% 0;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 72% 42%, rgba(79, 227, 255, 0.28), transparent 70%),
    radial-gradient(30% 40% at 90% 15%, rgba(183, 155, 255, 0.22), transparent 70%),
    radial-gradient(35% 35% at 15% 85%, rgba(79, 227, 255, 0.1), transparent 70%);
  filter: blur(20px);
  animation: aurora 14s ease-in-out infinite alternate;
}
/* Rejilla de suelo */
.hero::after {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -2%;
  height: 46%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(157, 233, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 233, 255, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 6s linear infinite;
}
@keyframes aurora {
  to { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}
@keyframes floor {
  to { background-position: 0 56px, 0 0; }
}

.hero-copy {
  min-width: 0;
  container-type: inline-size;
}
/* El tamaño va ligado al ancho de la columna: «PANTALLA.» y «SCREEN.» siempre caben */
.headline {
  display: flex;
  flex-direction: column;
  font-size: min(13cqw, 7rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.headline .glow {
  background: linear-gradient(95deg, #ffffff 0%, var(--oled) 40%, var(--oled-2) 70%, var(--hot) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(79, 227, 255, 0.45));
}
.lede {
  max-width: 34em;
  margin: 26px 0 30px;
  color: #c3ccd5;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

/* Tarjeta de alta */
.card {
  position: relative;
  max-width: 560px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--oled-2), transparent 40%, transparent 60%, var(--hot));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
}
.field-row {
  display: flex;
  gap: 8px;
}
.field-row input {
  flex: 1;
  min-width: 0;
  padding: 0.95em 1.1em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field-row input::placeholder {
  color: #66717d;
}
.field-row input:focus {
  outline: none;
  border-color: var(--oled);
  box-shadow: 0 0 0 4px rgba(79, 227, 255, 0.15);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--oled-2);
}
.form-msg {
  min-height: 1.2em;
  margin: 8px 4px 0;
  font-size: 0.9rem;
}
.form-msg:empty {
  margin: 0;
}
.form-msg.err {
  color: #ff9a9a;
}
.fine {
  margin: 12px 4px 0;
  color: #66717d;
  font-size: 0.8rem;
}

/* ---------- Modelo 3D de la portada ---------- */
.pad-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
/* Foco de luz sobre la "mesa" donde se apoya el modelo */
.pad-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 115%;
  aspect-ratio: 2.2;
  transform: translate(-50%, -50%);
  z-index: -1;
  background: radial-gradient(closest-side, rgba(157, 233, 255, 0.2), rgba(79, 227, 255, 0.06) 60%, transparent);
  filter: blur(10px);
}
.pad-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 4 / 3;
}
.pad-stage canvas.pad3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.pad-stage.ready canvas.pad3d {
  opacity: 1;
}
.pad-stage canvas.grabbing {
  cursor: grabbing;
}
.pad-fallback {
  position: absolute;
  inset: 8% 0;
  transition: opacity 0.6s ease;
}
.pad-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.pad-stage.ready .pad-fallback {
  opacity: 0;
  pointer-events: none;
}
.pad-wrap.static .apps,
.pad-wrap.static .pad-hint {
  display: none;
}
.apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  margin-top: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.apps button {
  padding: 0.55em 1.05em;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.apps button:hover {
  color: var(--ink);
}
.apps button[aria-selected='true'] {
  background: var(--oled);
  color: #021015;
  box-shadow: 0 0 22px rgba(79, 227, 255, 0.55);
}
.pad-hint {
  margin: 0;
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Cinta ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0 -2vw;
  padding: 16px 0;
  background: var(--oled);
  color: #021015;
  transform: rotate(-2deg);
  box-shadow: 0 0 60px rgba(79, 227, 255, 0.45);
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--pixel);
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Secciones ---------- */
main > section:not(.hero) {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gutter) 0;
}
.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-lede {
  max-width: 40em;
  margin: 18px 0 0;
  color: #c3ccd5;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

/* Interruptores mecánicos */
.sw-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 22px;
  align-items: stretch;
}
.sw-layout .sw-photo {
  aspect-ratio: auto !important;
  min-height: 300px;
}
.sw-cards {
  display: grid;
  gap: 14px;
  align-content: start;
}
.sw-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 28px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}
.sw-card:hover {
  border-color: rgba(157, 233, 255, 0.4);
  transform: translateX(4px);
}
.sw-card h3 {
  font-size: 1.35rem;
  font-stretch: 110%;
}
.sw-card p {
  margin: 6px 0 0;
  color: var(--muted);
}
.curve {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.curve .axis {
  stroke: var(--line-2);
  stroke-width: 1.5;
}
.curve .line {
  stroke: var(--oled);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 5px rgba(79, 227, 255, 0.8));
  animation: draw 3.2s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
.sw-card[data-kind='tactile'] .line {
  animation-delay: 0.35s;
}
.sw-card[data-kind='clicky'] .line {
  animation-delay: 0.7s;
}
.curve .click {
  stroke: var(--hot);
  stroke-width: 2.5;
  opacity: 0;
  animation: click 3.2s 0.7s infinite;
}
@keyframes draw {
  0% { stroke-dashoffset: 1; }
  45%, 100% { stroke-dashoffset: 0; }
}
@keyframes click {
  0%, 18% { opacity: 0; transform: scale(0.6); }
  22% { opacity: 1; transform: scale(1.15); }
  40%, 100% { opacity: 0; }
}
.curve-legend {
  margin: 0;
  justify-self: start;
  font-family: var(--pixel);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Rueda: comparación de resolución */
.wh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.dial {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
}
.dial-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tick-coarse path {
  stroke: #5d6873;
  stroke-width: 4;
  stroke-linecap: round;
}
.tick-fine path {
  stroke: rgba(157, 233, 255, 0.55);
  stroke-width: 0.6;
}
.tick-arc {
  fill: none;
  stroke: var(--oled);
  stroke-width: 12;
  stroke-linecap: round;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(79, 227, 255, 0.9));
}
/* El disco imita la rueda real: plástico blanco texturizado con el botón plano cerca del borde */
.dial-disc {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 38% 30%, #ffffff, #ebe9e4 50%, #d2d0ca 100%);
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, 0.9),
    inset 0 -8px 16px rgba(0, 0, 0, 0.16),
    0 0 0 6px #1a1e22,
    0 0 0 7px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(79, 227, 255, 0.18);
}
.dial-disc.grab {
  cursor: grabbing;
}
.dial-disc:focus-visible {
  outline-offset: 10px;
  border-radius: 50%;
}
.dial-dimple {
  position: absolute;
  left: 66%;
  top: 56%;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #fbfbf9, #e4e3de 75%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22), inset 0 1px 0 #fff, 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.dial-dimple::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 48%;
  height: 4%;
  border-radius: 2px;
  background: #b9b8b3;
  transform: rotate(-80deg);
}
.dial-hint {
  margin: 0;
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oled);
}
.meters {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.meter {
  display: grid;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.meter.m-fine {
  border-color: rgba(157, 233, 255, 0.4);
  box-shadow: inset 0 0 40px rgba(79, 227, 255, 0.08);
}
.m-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.meter b {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.meter.m-coarse b {
  color: #8a96a3;
}
.meter.m-fine b {
  color: var(--oled);
  text-shadow: var(--glow);
}
.m-unit {
  font-weight: 700;
}
.m-sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 0.45em 0.9em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.88rem;
}
.pills li::before {
  content: '✓ ';
  color: var(--oled);
}

/* Vídeo */
.video-frame {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 2px;
  background: linear-gradient(130deg, var(--oled-2), rgba(255, 255, 255, 0.08) 35%, rgba(255, 255, 255, 0.04) 65%, var(--hot));
  box-shadow: 0 50px 120px -30px rgba(79, 227, 255, 0.35);
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
}
.video-frame video.tall {
  aspect-ratio: 9 / 16;
  max-height: 82vh;
  margin: 0 auto;
}
.sound {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 0.55em 1em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-family: var(--pixel);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.sound[aria-pressed='true'] {
  border-color: var(--oled);
  color: var(--oled);
}

/* Ventajas */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s;
}
.feature::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(79, 227, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 233, 255, 0.35);
}
.feature:hover::after {
  opacity: 1;
}
.feature p {
  margin: 10px 0 0;
  color: var(--muted);
}
.oled {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(157, 233, 255, 0.25);
  box-shadow: inset 0 0 20px rgba(79, 227, 255, 0.12), 0 0 30px rgba(79, 227, 255, 0.15);
}
.oled svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--oled);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(157, 233, 255, 0.9));
}

/* Galería del prototipo */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 12vw, 180px);
  gap: 14px;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  aspect-ratio: auto !important;
}
.gallery figure picture,
.gallery figure img {
  width: 100%;
  height: 100%;
}
.gallery figure img {
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery figure:hover img {
  transform: scale(1.04);
}
.g-a { grid-column: 1 / 5; grid-row: 1 / 3; }
.g-b { grid-column: 5 / 7; grid-row: 1 / 4; }
.g-c { grid-column: 1 / 5; grid-row: 3 / 5; }
.g-d { grid-column: 5 / 7; grid-row: 4 / 7; }
.g-e { grid-column: 1 / 3; grid-row: 5 / 7; }
.g-f { grid-column: 3 / 5; grid-row: 5 / 7; }

/* Huecos para fotos reales que faltan */
figure.slot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
figure.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure.slot.empty {
  border: 1.5px dashed rgba(157, 233, 255, 0.55);
  background:
    repeating-linear-gradient(135deg, rgba(157, 233, 255, 0.06) 0 12px, transparent 12px 24px),
    var(--panel);
}
.slot-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  height: 100%;
  padding: 20px;
}
.slot-box p {
  margin: 0;
  max-width: 30em;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #c8d2db;
}
.slot-box code {
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
}
.slot-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--oled);
  color: #021015;
  font-family: var(--pixel);
  font-size: 0.7rem;
}

/* Cifras */
.specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(40px, 6vw, 70px) 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.specs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.specs b {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
  color: var(--oled);
  text-shadow: var(--glow);
}
.specs span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Usos */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.use figure {
  margin-bottom: 20px;
}
.use p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Preguntas */
.faq > * {
  max-width: 900px;
}
.faq h2 {
  margin-bottom: 30px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--pixel);
  font-size: 1.4rem;
  color: var(--oled);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  margin: -6px 0 24px;
  max-width: 44em;
  color: var(--muted);
}

/* Cierre */
.final {
  position: relative;
  text-align: center;
  padding-bottom: clamp(80px, 10vw, 140px) !important;
}
.final-pixel {
  margin: 0 0 -0.12em;
  font-family: var(--pixel);
  font-size: clamp(5rem, 24vw, 19rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(157, 233, 255, 0.55);
  text-shadow: 0 0 60px rgba(79, 227, 255, 0.25);
  user-select: none;
}
.final h2 {
  margin-bottom: 34px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 32px var(--gutter) 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot a {
  color: var(--muted);
}
.foot a:hover {
  color: var(--ink);
}
.foot .logo {
  margin-right: auto;
}

/* ---------- Ventana de reserva ---------- */
dialog.reserve {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #121821, #0a0d11);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(79, 227, 255, 0.15), 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 120px rgba(79, 227, 255, 0.15);
}
dialog.reserve::backdrop {
  background: rgba(2, 4, 6, 0.7);
  backdrop-filter: blur(6px);
}
dialog.reserve[open] {
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
}
.dialog-body {
  position: relative;
  padding: 34px 28px 28px;
}
.dialog-body h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-stretch: 105%;
}
.dialog-body > div > p:not(.eyebrow):not(.form-msg) {
  color: var(--muted);
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Preguntas tras el alta ---------- */
.questions .eyebrow.ok {
  color: #9dffb8;
  text-shadow: 0 0 12px rgba(80, 255, 140, 0.5);
}
.questions .eyebrow.ok::before {
  background: #9dffb8;
  box-shadow: 0 0 10px #4dff8a;
}
.q-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-stretch: 105%;
}
.q-sub {
  margin: 8px 0 18px;
  color: var(--muted);
}
.q-form fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.q-form legend {
  margin-bottom: 10px;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips span {
  display: inline-block;
  padding: 0.5em 0.95em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chips label:hover span {
  border-color: rgba(157, 233, 255, 0.5);
}
.chips input:checked + span {
  background: var(--oled);
  border-color: var(--oled);
  color: #021015;
  box-shadow: 0 0 16px rgba(79, 227, 255, 0.45);
}
.chips input:focus-visible + span {
  outline: 2px solid var(--oled);
  outline-offset: 2px;
}
.q-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

/* ---------- Páginas sencillas (privacidad, baja, 404) ---------- */
.simple {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 80px;
}
.simple h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  font-stretch: 115%;
  margin-bottom: 20px;
}
.simple h2 {
  margin: 40px 0 10px;
  font-size: 1.35rem;
  font-stretch: 100%;
}
.simple p,
.simple li {
  color: #c3ccd5;
}
.simple .muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.simple .todo {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 210, 90, 0.16);
  color: #ffd25a;
}
.simple .lang-block[hidden] {
  display: none;
}
.big404 {
  font-family: var(--pixel);
  font-size: clamp(6rem, 30vw, 14rem);
  line-height: 1;
  color: var(--oled);
  text-shadow: var(--glow);
}

/* ---------- Aparición al hacer scroll (solo con JS) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}
.js-reveal .feature-grid .reveal:nth-child(2),
.js-reveal .use-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.js-reveal .feature-grid .reveal:nth-child(3),
.js-reveal .use-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }
  .pad-wrap {
    order: -1;
  }
  .pad-stage {
    aspect-ratio: 7 / 5;
  }
  .feature-grid,
  .use-grid,
  .sw-layout,
  .wh-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sw-layout .sw-photo {
    aspect-ratio: 4 / 3 !important;
    min-height: 0;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: row dense;
  }
  .gallery figure {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery .g-a,
  .gallery .g-c,
  .gallery .g-f {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9 !important;
  }
  .gallery .g-b,
  .gallery .g-d,
  .gallery .g-e {
    aspect-ratio: 4 / 5 !important;
  }
  .gallery .g-e {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .top .btn-small {
    display: none;
  }
  .field-row {
    flex-direction: column;
  }
  .field-row .btn {
    width: 100%;
  }
  .apps {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 22px;
  }
  .apps button {
    padding: 0.6em 0.5em;
    font-size: 0.88rem;
  }
  .specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 14px;
  }
  .sw-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .curve {
    max-width: 220px;
  }
  .meters {
    grid-template-columns: 1fr;
  }
  .q-actions {
    flex-wrap: wrap;
  }
}

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