/* Landing + personalizador — Christmas Micro-Games */
:root {
  --bg: #071a16;
  --bg-2: #0b2620;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f7f5;
  --muted: rgba(243, 247, 245, 0.7);
  --red: #d7263d;
  --red-2: #ef4b5f;
  --gold: #f6c756;
  --ice: #7fd4f5;
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
}

.skip:focus {
  left: 8px;
}

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.7em 1.3em;
  border: 0;
  border-radius: 999px;
  font: 700 1rem/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.9, 0.25, 1.2),
    filter 0.2s,
    background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn--primary {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow:
    0 10px 30px -10px rgba(215, 38, 61, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--sm {
  min-height: 38px;
  padding: 0.5em 1em;
  font-size: 0.9rem;
}

.btn--xl {
  min-height: 56px;
  padding: 0.9em 1.7em;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 60ch;
}

/* -------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 26, 22, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav__flake {
  display: inline-block;
  color: var(--ice);
  animation: spin 8s linear infinite;
}

.nav__links {
  display: flex;
  gap: 20px;
  margin-inline-start: auto;
}

.nav__links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang button {
  min-width: 40px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 0.8rem var(--font);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 820px) {
  .nav__links {
    display: none;
  }
  .nav__end {
    margin-inline-start: auto;
  }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid;
  min-height: min(88vh, 860px);
  place-items: center start;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 26, 22, 0.94) 0%, rgba(7, 26, 22, 0.7) 45%, rgba(7, 26, 22, 0.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("hero.webp") center / cover no-repeat;
  animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: scale(1.06) translateX(-1.5%);
  }
}

.hero__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 10vh, 120px) clamp(20px, 4vw, 40px);
}

.hero h1 {
  max-width: 15ch;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6.4vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* ------------------------------------------------------------------ strip */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: -40px auto 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  position: relative;
}

.strip div {
  display: grid;
  padding: 22px 18px;
  text-align: center;
}

.strip div + div {
  border-inline-start: 1px solid var(--line);
}

.strip strong {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}

.strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip div:nth-child(3) {
    border-inline-start: 0;
  }
  .strip div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------- secciones */
.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) clamp(20px, 4vw, 40px);
}

.section--alt {
  width: 100%;
  max-width: none;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.section--alt > * {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.section__head {
  margin-bottom: 40px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ juegos */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 22px;
}

.game {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1.2),
    box-shadow 0.3s;
  animation: rise 0.6s calc(var(--i) * 70ms) both cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.game:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(246, 199, 86, 0.4),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.game__thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.game__sprite {
  width: 34%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.4);
}

.game:hover .game__sprite {
  transform: scale(1.12) rotate(-4deg);
}

.game__wheel {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid var(--gold);
  background: conic-gradient(
    var(--red) 0 60deg,
    #fff 0 120deg,
    var(--gold) 0 180deg,
    var(--red) 0 240deg,
    #fff 0 300deg,
    var(--gold) 0
  );
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game:hover .game__wheel {
  transform: rotate(540deg);
}

.game__play {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.7);
  transition: 0.25s;
}

.game:hover .game__play,
.game__thumb:focus-visible .game__play {
  opacity: 1;
  transform: none;
}

.game__body {
  padding: 18px 20px 22px;
}

.game h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.game p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(127, 212, 245, 0.1);
  color: var(--ice);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.features article {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.features .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(246, 199, 86, 0.12);
  font-size: 1.4rem;
}

.features h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ------------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.steps h3 {
  margin: 0 0 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.code {
  overflow: hidden;
  border-radius: var(--radius);
  background: #04110e;
  box-shadow: inset 0 0 0 1px var(--line);
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.code__bar > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.code__bar > span:nth-child(2) {
  background: #febc2e;
}

.code__bar > span:nth-child(3) {
  background: #28c840;
}

.code__copy {
  margin-inline-start: auto;
  padding: 4px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 600 0.8rem var(--font);
  cursor: pointer;
}

.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #cfe9de;
  font:
    0.88rem/1.6 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
}

/* --------------------------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer {
  padding: 40px 20px 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  margin: 4px 0;
}

/* ---------------------------------------------------------------- dialogo */
.demo {
  width: min(1180px, 96vw);
  height: min(780px, 92vh);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #03100c;
  color: var(--text);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.demo[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

@keyframes pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

.demo::backdrop {
  background: rgba(2, 8, 6, 0.75);
  backdrop-filter: blur(6px);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
}

.demo__bar strong {
  margin-inline-end: auto;
}

.demo__devices {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.demo__devices button {
  width: 40px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.demo__devices button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
}

.demo select,
.field select,
.field input[type="text"],
.field input[type="url"],
.field input[type="number"],
.field textarea {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: 500 0.9rem var(--font);
}

.demo__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.demo__stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 14px;
  background: radial-gradient(circle at 50% 40%, #0d2c25, #03100c 70%);
  min-height: 0;
}

.demo__stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #08211a;
  transition:
    width 0.45s cubic-bezier(0.2, 0.9, 0.25, 1),
    border-radius 0.45s;
}

/* marco de móvil */
.demo[data-device="mobile"] .demo__stage iframe,
.preview[data-device="mobile"] iframe {
  width: min(390px, 100%);
  height: min(780px, 100%);
  border-radius: 38px;
  box-shadow:
    0 0 0 10px #111,
    0 0 0 12px #333,
    0 30px 80px rgba(0, 0, 0, 0.6);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================ CUSTOMISER */
.cz {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  height: calc(100vh - 63px);
}

@media (max-width: 900px) {
  .cz {
    grid-template-columns: 1fr;
    height: auto;
  }
  .preview {
    min-height: 80vh;
  }
}

.panel {
  overflow-y: auto;
  padding: 20px 20px 40px;
  border-inline-end: 1px solid var(--line);
  background: var(--bg-2);
}

.panel h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.panel > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.group {
  margin: 0 0 14px;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.group legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  clear: both;
}

.field:last-child {
  margin-bottom: 0;
}

.field > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.field textarea {
  min-height: 220px;
  padding: 10px 12px;
  font:
    0.78rem/1.5 ui-monospace,
    Menlo,
    Consolas,
    monospace;
  resize: vertical;
}

.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  clear: both;
}

.row--2 {
  grid-template-columns: 1fr 1fr;
}

.swatch {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.swatch input {
  width: 100%;
  height: 42px;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  clear: both;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.actions {
  position: sticky;
  bottom: -40px;
  display: grid;
  gap: 8px;
  margin: 16px -20px -40px;
  padding: 14px 20px 20px;
  background: linear-gradient(180deg, transparent, var(--bg-2) 30%);
}

.status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.82rem;
  color: var(--ice);
}

.status.is-error {
  color: #fca5a5;
}

.preview {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: radial-gradient(circle at 50% 40%, #0d2c25, #03100c 70%);
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.preview__bar .demo__devices {
  margin-inline-start: auto;
}

.preview__stage {
  display: grid;
  place-items: center;
  padding: 18px;
  min-height: 0;
}

.preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #08211a;
  transition: width 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* ---- personalizador: controles del bloque Juego ---- */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.seg label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s;
}

.seg input:checked + span {
  background: var(--text);
  color: var(--bg);
}

.seg input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

.steppers {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 0.2s;
}

.stepper.is-off {
  opacity: 0.4;
}

.stepper__label {
  font-size: 0.88rem;
  font-weight: 600;
}

.stepper__ctl {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px var(--line);
}

.stepper__ctl button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 700 1.05rem/1 var(--font);
  cursor: pointer;
}

.stepper__ctl button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

.stepper__ctl input {
  width: 52px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 800 0.95rem var(--font);
  font-variant-numeric: tabular-nums;
  text-align: end;
  -moz-appearance: textfield;
}

.stepper__ctl input::-webkit-inner-spin-button,
.stepper__ctl input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper__unit {
  min-width: 24px;
  padding-inline-end: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.hint {
  min-height: 1em;
  margin: 2px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ============================================================ MÓVIL */
@media (max-width: 560px) {
  .nav {
    gap: 8px;
    padding: 10px 12px;
  }
  .nav__brand {
    font-size: 0.95rem;
    gap: 6px;
  }
  .nav__long {
    display: none;
  }
  .nav__end {
    gap: 6px;
  }
  .lang button {
    min-width: 34px;
    min-height: 30px;
  }
  .nav .btn--sm {
    min-height: 34px;
    padding: 0.45em 0.85em;
    font-size: 0.82rem;
  }
}

/* Modal de demo: pantalla completa en el móvil */
@media (max-width: 720px) {
  .demo {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .demo__bar {
    gap: 6px;
    padding: 8px 8px 8px 14px;
  }
  .demo__bar strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .demo__devices {
    display: none;
  }
  .demo select {
    max-width: 112px;
    padding: 0 8px;
  }
  .demo__stage {
    padding: 0;
  }
  .demo__stage iframe,
  .demo[data-device="mobile"] .demo__stage iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Personalizador: vista previa arriba en pantallas estrechas */
@media (max-width: 900px) {
  .preview {
    order: -1;
    min-height: 0;
    height: 64vh;
    border-bottom: 1px solid var(--line);
  }
  .preview__bar .demo__devices {
    display: none;
  }
  .preview__stage {
    padding: 10px;
  }
  .panel {
    border-inline-end: 0;
  }
}
