:root {
  --fog: #e9edef;
  --paper: #f6f8f9;
  --graphite: #1b2327;
  --muted: #55626a;
  --oak: #b8701f;
  --oak-dark: #96590f;
  --leaf: #2b7347;
  --line: #cfd7db;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--graphite);
  font: 400 1rem/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
  padding-bottom: 84px; /* espacio para la barra fija en celular */
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 2px; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(233, 237, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font: 800 1.35rem/1 var(--display);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo span { color: var(--oak); }
.topbar-cta {
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  padding: 8px 14px; border: 1.5px solid var(--graphite); border-radius: 999px;
}
.topbar-cta:hover { background: var(--graphite); color: #fff; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 14px 22px;
  background: var(--oak); color: #fff;
  font: 700 1.05rem/1 var(--display);
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--oak-dark); }

/* ---------- hero ---------- */
.hero { max-width: 1080px; margin: 0 auto; padding: 18px 18px 8px; display: grid; gap: 22px; }

.gallery { min-width: 0; }
.stage {
  position: relative; aspect-ratio: 3 / 4;
  background: #dfe5e8; border-radius: var(--radius); overflow: hidden;
}
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide[data-slide="4"] { object-fit: contain; background: #fff; }

.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumb {
  position: relative; padding: 0; aspect-ratio: 1; overflow: hidden;
  border: 2px solid transparent; border-radius: 10px; background: #dfe5e8; cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--oak); }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(27, 35, 39, 0.35);
}
.play::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}

.buy { display: grid; gap: 14px; align-content: start; }
.buy h1 { font-size: clamp(1.7rem, 6.2vw, 2.5rem); font-weight: 800; }
.sub { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 12px; }
.price strong { font: 800 2.4rem/1 var(--display); }
.price s { color: var(--muted); font-size: 1.1rem; }

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trust li { position: relative; padding-left: 28px; font-weight: 500; }
.trust li::before {
  content: ""; position: absolute; left: 4px; top: 0.35em;
  width: 7px; height: 12px;
  border: solid var(--leaf); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- beneficios ---------- */
.band, .specs { max-width: 1080px; margin: 0 auto; padding: 36px 18px 8px; }
.band h2, .specs h2, .order h2 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; margin-bottom: 18px; }
.features { display: grid; gap: 0; }
.features article { padding: 18px 0; border-top: 1.5px solid var(--graphite); }
.features h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.features p { color: var(--muted); max-width: 52ch; }

/* ---------- ficha técnica ---------- */
.specs dl { margin: 0; }
.specs dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- pedido ---------- */
.order {
  max-width: 560px; margin: 36px auto 0; padding: 26px 18px 34px;
  background: var(--paper); border-radius: 20px 20px 0 0;
}
.order-head { margin-bottom: 18px; }
.order-head h2 { margin-bottom: 6px; }
.order-head p { color: var(--muted); }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input, select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem var(--body); color: var(--graphite);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
input:focus, select:focus { border-color: var(--oak); outline: 0; box-shadow: 0 0 0 3px rgba(184, 112, 31, 0.25); }
input:user-invalid, select:user-invalid { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; border-top: 1.5px solid var(--graphite); }
.total strong { font: 800 1.7rem/1 var(--display); }
.fine { color: var(--muted); font-size: 0.88rem; text-align: center; }

.errors { margin-bottom: 16px; padding: 12px 16px; background: #fbe9e7; border-left: 4px solid #b3261e; border-radius: 6px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- pie ---------- */
footer { padding: 28px 18px 36px; text-align: center; color: var(--muted); display: grid; gap: 6px; background: var(--paper); }
footer .logo { color: var(--graphite); }

/* ---------- barra fija (celular) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }
.sticky-cta div { display: grid; line-height: 1.2; }
.sticky-cta strong { font: 800 1.25rem/1.1 var(--display); }
.sticky-cta span { font-size: 0.8rem; color: var(--muted); }
.sticky-cta .btn { width: auto; flex: 1; max-width: 220px; min-height: 48px; }

/* ---------- gracias ---------- */
.thanks { max-width: 520px; margin: 0 auto; padding: 48px 18px; display: grid; gap: 14px; }
.thanks h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; }
.total-line { font: 700 1.3rem var(--display); color: var(--leaf); }
.thanks .btn { margin-top: 8px; }
.back { text-align: center; color: var(--muted); }
body:has(.thanks) { padding-bottom: 0; }

/* ---------- escritorio ---------- */
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-top: 36px; align-items: start; }
  .buy { position: sticky; top: 90px; }
  .features { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .order { border-radius: 20px; margin-bottom: 48px; padding: 34px 32px; }
  footer { padding-top: 36px; }
  .btn { width: auto; min-width: 280px; }
  .order .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}