/* Flash Player Java — estilos de la web de presentación.
 * Los estilos de elementos genéricos usan :where() (especificidad 0) para no alterar el reproductor,
 * cuyos estilos van en reproductor/src/sticky-player.css con prefijo .sp-.
 */

:root {
  --bg: #0d0b12;
  --bg-2: #13101a;
  --surface: #18141f;
  --surface-2: #211b2b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ece9f2;
  --muted: #aaa3b8;
  --accent: #ff1f4b;
  --accent-ink: #ff6b87;
  --violet: #8b5cf6;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  overflow-x: hidden;
}
:where(h1, h2, h3, h4) { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
:where(p) { margin: 0 0 1em; }
:where(img) { max-width: 100%; height: auto; }
:where(code) { font-family: var(--mono); font-size: .9em; color: #ffc2cf; }
:where(.section-head, .feature-text, .tile, .faq, .req-list, .hint, .integrate, .site-footer, .demo-notes, .hero-copy) a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where(.section-head, .feature-text, .tile, .faq, .req-list, .hint, .integrate, .site-footer, .demo-notes) a:hover { color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hint { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 31, 75, .7); }
.btn-primary:hover { background: #e3133d; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: #fff; }
.btn-soft { border-color: var(--line); background: var(--surface-2); color: var(--text); border-radius: 10px; min-height: 40px; font-size: 14px; }
.btn-soft:hover { border-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 18, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover, .nav a.is-current { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; }
/* «Comprar por US$40 →» en la cabecera fija: el mismo botón de la barra de compra (.btn .btn-primary .shop-buy);
   aquí solo se coloca a la derecha de «Probar reproductor», también visible en móvil (fuera del menú). */
.nav-buy { flex: none; margin-left: -8px; }
/* Con el botón de compra completo, nada de la cabecera se parte en dos líneas; el menú se compacta un poco. */
.site-header .brand, .site-header .nav a, .nav-try { white-space: nowrap; flex-shrink: 0; }
.header-row { gap: 14px; }
.nav { gap: 2px; }
.nav a:not(.btn) { padding: 8px 9px; }
.nav-cta { margin-left: 8px; }
.nav-buy { margin-left: -4px; }
.nav-try { display: none; flex: none; gap: .3em; }

/* Escritorio estrecho: el menú completo y los dos botones caben en una línea si la marca muestra solo el logotipo. */
@media (min-width: 961px) and (max-width: 1199px) {
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav a { white-space: nowrap; }
  .nav-cta { margin-left: 6px; }
}

/* ------------------------------------------------------------------ barra de compra (encima de la cabecera) */

.shop-bar { background: #100d16; border-bottom: 1px solid var(--line); }
.shop-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1200px, 100% - 36px); min-height: 59px; margin-inline: auto; }
.shop-name { margin: 0; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.shop-actions { display: flex; align-items: center; gap: 22px; }
.shop-store { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.shop-store:hover { color: var(--accent-ink); }
.shop-buy { min-height: 40px; padding: 0 18px; font-size: 13.5px; white-space: nowrap; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(139, 92, 246, .28), transparent 60%),
    radial-gradient(50% 60% at 10% 10%, rgba(255, 31, 75, .22), transparent 60%),
    linear-gradient(180deg, #1a0d2b 0%, var(--bg) 85%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 850; letter-spacing: -.035em; margin-bottom: 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #d9d3e4; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 560px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hero-facts strong { display: block; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.hero-note { margin-top: 26px; color: var(--muted); font-size: 13px; text-align: right; }

.hero-visual { position: relative; padding-bottom: 40px; }
.frame-browser {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #0a0910;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 31, 75, .08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #15121c; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3444; }
.frame-browser img { display: block; width: 100%; }
.frame-phone {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 27%;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: #0a0910;
  box-shadow: var(--shadow);
}
.frame-phone img { display: block; width: 100%; border-radius: 20px; }

/* ------------------------------------------------------------------ secciones */

.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 820; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.shot { margin: 0; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color .2s, transform .25s;
}
.shot-open img { display: block; width: 100%; height: auto; }
.shot-open:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.feature h3, .tile h3 { font-size: clamp(23px, 2.3vw, 30px); font-weight: 780; }
.feature-text > p { color: #cfc8db; }
.feature-skins .feature-text { order: 2; }

.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.source-grid li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.source-grid b { display: block; color: #fff; font-size: 15px; }
.source-grid span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 96px; }
.tile {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.tile p { color: #cfc8db; font-size: 16px; }
.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.tile .shot-sm { margin-top: 18px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ticks { margin: 16px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #cfc8db; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ticks b { color: #fff; }

.skin-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; }
.skin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 14px var(--font);
  cursor: pointer;
}
.skin-chip i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.skin-chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 31, 75, .12); color: #fff; }

.modes { margin: 22px 0 14px; display: grid; gap: 12px; }
.modes div { padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: var(--radius-sm); background: var(--surface); }
.modes dt { color: #fff; font-weight: 700; margin-bottom: 4px; }
.modes dd { margin: 0; color: #cfc8db; font-size: 15.5px; }
.float-shots { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: end; }
.shot-window .shot-open { background: #1a1a1b; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.phone-mini { border-radius: 16px; }

/* ------------------------------------------------------------------ demo */

.section-demo {
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(255, 31, 75, .14), transparent 70%),
    var(--bg-2);
}
.section-demo .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.section-demo .section-head { margin-bottom: 8px; }
.demo-stage {
  padding: 8px 18px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%),
    #0b0a0f;
  box-shadow: var(--shadow);
}
.demo-player { min-height: 140px; }
.demo-msg { padding: 30px; color: var(--muted); text-align: center; }
.demo-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.demo-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.demo-panel h3 { font-size: 18px; margin-bottom: 10px; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-state { display: grid; gap: 8px; margin: 0; font-size: 14.5px; }
.demo-state div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
.demo-state dt { color: var(--muted); }
.demo-state dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.demo-notes ul { margin: 0; padding-left: 18px; color: #cfc8db; font-size: 14.5px; }
.demo-notes li { margin-bottom: 8px; }
.demo-notes b { color: #fff; }

/* ------------------------------------------------------------------ galería */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 14px var(--font);
  cursor: pointer;
}
.filter:hover { color: #fff; }
.filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0d0b12; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; margin: 0; padding: 0; list-style: none; }
.gallery li[hidden] { display: none; }
.gallery .g-tall .shot-open { aspect-ratio: 16 / 9; display: flex; justify-content: center; background: #0a0910; }
.gallery .g-tall .shot-open img { width: auto; height: 100%; object-fit: contain; }
.gallery .g-wide .shot-open { aspect-ratio: 16 / 9; display: flex; align-items: center; background: #0a0910; }
.gallery .g-wide .shot-open img { width: 100%; height: 100%; object-fit: contain; }
.gallery p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.lightbox {
  width: min(1240px, 100vw - 24px);
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #0a0910;
  color: var(--text);
}
.lightbox::backdrop { background: rgba(5, 4, 8, .86); backdrop-filter: blur(4px); }
.lb-inner { position: relative; padding: 52px 64px 18px; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 160px); object-fit: contain; margin: 0 auto; border-radius: 8px; }
.lightbox.is-tall img { width: auto; }
.lightbox figcaption { margin-top: 12px; color: #cfc8db; font-size: 15px; }
.lb-count { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: #fff;
  font: 400 28px/1 var(--font);
  cursor: pointer;
}
.lb-close { top: 8px; right: 8px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover { border-color: #fff; }

/* ------------------------------------------------------------------ cómo funciona */

.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.steps li { position: relative; padding: 0 0 26px 64px; counter-increment: paso; }
.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  font-weight: 800;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 50px; bottom: 6px; width: 2px; background: var(--line-2); }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: #cfc8db; font-size: 16px; margin: 0; }
.integrate { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.integrate h3 { font-size: 22px; }
.integrate h4 { margin-top: 26px; font-size: 17px; }
.integrate > p { color: #cfc8db; font-size: 16px; }
.code {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0a0910;
  color: #e7e2f0;
  font: 13.5px/1.6 var(--mono);
  overflow-x: auto;
  white-space: pre;
}
.code code { color: inherit; font-size: inherit; }
.html-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ requisitos */

.req-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding: 16px 18px 6px; text-align: left; color: #fff; font-weight: 700; }
th, td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
tbody th { color: #fff; font-weight: 650; white-space: nowrap; }
td { color: #cfc8db; }
.tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.ok { background: rgba(52, 211, 153, .14); color: var(--ok); }
.tag.mid { background: rgba(251, 191, 36, .13); color: var(--warn); }
.tag.no { background: rgba(255, 255, 255, .08); color: var(--muted); }
.req-list { margin: 0; padding: 0; list-style: none; }
.req-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: #cfc8db; font-size: 15.5px; }
.req-list li:first-child { padding-top: 0; }
.req-list b { color: #fff; }

/* ------------------------------------------------------------------ preguntas */

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  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%); color: var(--accent-ink); font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: #cfc8db; }

/* ------------------------------------------------------------------ pie */

.site-footer { padding: 56px 0 64px; border-top: 1px solid var(--line); background: #09080d; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 40px; }
.site-footer p { color: var(--muted); font-size: 14px; }
.site-footer nav { display: grid; gap: 6px; align-content: start; }
.site-footer nav a { color: #cfc8db; font-size: 15px; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.credits b { color: #fff; }

/* ------------------------------------------------------------------ aparición */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ adaptable */

@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 8px 8px; font-size: 14px; }
  .demo-side { grid-template-columns: 1fr 1fr; }
  .demo-notes { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(13, 11, 18, .97);
    border-bottom: 1px solid var(--line);
  }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  /* Con el menú plegado, «Probar reproductor» y «Comprar» siguen a la vista en la cabecera fija. */
  .header-row { gap: 8px; }
  .nav-try { display: inline-flex; order: 2; margin-left: auto; }
  .nav-buy { order: 3; margin-left: 0; }
  .nav-toggle { order: 4; flex: none; margin-left: 4px; }
  .nav-try { min-height: 40px; padding: 0 14px; font-size: 14px; }

  .hero { padding-top: 48px; }
  .hero-grid, .feature, .tile-wide, .how, .req-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 40px; }
  .frame-browser { transform: none; }
  .hero-note { text-align: left; }
  .feature { gap: 30px; margin-bottom: 72px; }
  .feature-skins .feature-text { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .bento, .shot-pair, .demo-side, .demo-actions { grid-template-columns: minmax(0, 1fr); }
  .float-shots { grid-template-columns: minmax(0, 1fr) 120px; }
  .tile, .integrate { padding: 20px; }
  .demo-stage { padding: 6px 8px 14px; }
  .frame-phone { width: 30%; right: -4px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .lb-inner { padding: 52px 8px 70px; }
  .lb-nav { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 54px); }
  .lb-next { right: calc(50% - 54px); }
  tbody th { white-space: normal; }
  th, td { padding: 12px 14px; }
  /* Barra de compra: nombre y «Ver tienda» en la primera fila, «Comprar» a todo el ancho debajo. */
  .shop-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; width: calc(100% - 32px); padding: 10px 0 12px; }
  .shop-actions { display: contents; }
  .shop-buy { grid-column: 1 / -1; width: 100%; }
  .nav-try { padding: 0 12px; font-size: 13.5px; }
  .nav-buy { grid-column: auto; width: auto; } /* la regla de .shop-buy de arriba es para la barra superior */
}

/* Cabecera fija con «Comprar por US$40 →» a su tamaño original (179 px): en 481–700 px la marca queda en el
   logotipo para que todo quepa en una línea. */
@media (min-width: 481px) and (max-width: 700px) {
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Teléfono: dos filas en la cabecera fija. Arriba la marca y el menú; abajo «Probar reproductor» y «Comprar». */
@media (max-width: 480px) {
  html { scroll-padding-top: 132px; }
  .header-row { flex-wrap: wrap; row-gap: 10px; min-height: 0; padding: 12px 0; }
  .nav-toggle { order: 1; flex: none; margin-left: auto; }
  .nav-try { order: 2; flex: 1 1 calc(100% - 200px); margin-left: 0; }
  .nav-buy { order: 3; }
}

@media (max-width: 370px) {
  .nav-try-more { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .shot-open { transition: none; }
  .btn-primary:hover, .shot-open:hover { transform: none; }
}
