/* Combos navideños · Variety World SV
   Cielo de noche: azul noche, dorado para títulos y llamados, blanco para el texto, vino para lo festivo.
   Primero para teléfono, una sola columna de 560 px como máximo. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --noche: #0A0A23;
  --noche-2: #12123A;
  --noche-3: #1B1B4C;
  --dorado: #FFC400;
  --oro: #F1B322;
  --oro-claro: #FFE28C;
  --blanco: #F8F8FF;
  --vino: #722F37;
  --wa: #25D366;
  --texto: rgba(248, 248, 255, .9);
  --suave: rgba(248, 248, 255, .68);
  --hilo: rgba(241, 179, 34, .24);
  --hilo-fuerte: rgba(241, 179, 34, .5);
  --titulos: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cuerpo: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 560px;
  --radio: 16px;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background-color: var(--noche);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--noche);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* Cielo: brillo cálido arriba y polvo de estrellas muy tenue. Fijo y sin imágenes. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 226, 140, .55), transparent 60%),
    radial-gradient(1px 1px at 78% 9%, rgba(248, 248, 255, .45), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 34%, rgba(255, 226, 140, .4), transparent 60%),
    radial-gradient(1px 1px at 30% 62%, rgba(248, 248, 255, .3), transparent 60%),
    radial-gradient(1px 1px at 88% 72%, rgba(255, 226, 140, .35), transparent 60%),
    radial-gradient(ellipse 80% 45% at 50% -5%, rgba(241, 179, 34, .13), rgba(241, 179, 34, 0) 70%),
    radial-gradient(ellipse 120% 70% at 50% 0%, #15154a 0%, rgba(10, 10, 35, 0) 70%);
  background-size: 340px 460px, 340px 460px, 340px 460px, 340px 460px, 340px 460px, 100% 100%, 100% 100%;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--dorado);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Utilidades ---------- */

.icon { width: 40px; height: 40px; flex: none; }
.icon--sm { width: 20px; height: 20px; }
.icon--xs { width: 18px; height: 18px; }
.icon-wa { width: 22px; height: 22px; flex: none; }
.muted { color: var(--suave); font-weight: 500; }

.eyebrow {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro);
}

.rule {
  width: 120px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(255, 196, 0, 0), var(--dorado), rgba(255, 196, 0, 0));
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dorado);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hilo-fuerte), rgba(241, 179, 34, 0));
}
.section-title .muted { letter-spacing: .08em; text-transform: none; font-family: var(--cuerpo); font-size: 13px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn--primary {
  background: linear-gradient(180deg, #FFD23A 0%, var(--dorado) 100%);
  color: var(--noche);
  box-shadow: 0 10px 28px rgba(255, 196, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--ghost {
  background: rgba(10, 10, 35, .35);
  color: var(--dorado);
  border: 1px solid var(--hilo-fuerte);
}
.btn--sm { min-height: 44px; font-size: 13.5px; font-weight: 700; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hilo-fuerte);
  background: rgba(10, 10, 35, .4);
  color: var(--blanco);
  font-family: var(--cuerpo);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease;
}
.chip .icon { color: var(--dorado); }
.chip:active { transform: scale(.97); }
.chip--gold { background: var(--dorado); border-color: var(--dorado); color: var(--noche); }
.chip--gold .icon { color: var(--noche); }
.chip--ghost { border-color: rgba(248, 248, 255, .2); color: rgba(248, 248, 255, .86); }

.link-btn {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--texto);
  font-size: 15px;
}
.link-btn span {
  color: var(--dorado);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--hilo-fuerte);
  text-underline-offset: 4px;
}

/* ---------- Página ---------- */

.page {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 16px calc(104px + var(--seguro-abajo));
}
.page--detail { padding-bottom: calc(156px + var(--seguro-abajo)); }
.page--order { padding-bottom: 40px; }
.page--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  padding-bottom: 40px;
}
.page__title {
  margin: 24px 0 18px;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  color: var(--dorado);
}

#app.enter .page { animation: aparecer .35s ease-out both; }
@keyframes aparecer {
  from { opacity: .3; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Pantalla de arranque (antes de que cargue el JavaScript) */
.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--suave);
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.boot img { width: 140px; height: auto; animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .55; } }

/* ---------- Franja de vista previa ---------- */

.preview-strip {
  padding: 8px 16px;
  background: var(--vino);
  color: var(--blanco);
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 226, 140, .3);
}
.preview-strip strong {
  font-family: var(--titulos);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oro-claro);
}
.preview-panel {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid rgba(114, 47, 55, .9);
  border-radius: 12px;
  background: rgba(114, 47, 55, .2);
  font-size: 14px;
}
.preview-panel summary {
  min-height: 32px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 13px;
  color: var(--oro-claro);
  cursor: pointer;
}
.preview-panel ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.preview-panel li { margin: 4px 0; color: var(--texto); overflow-wrap: anywhere; }

/* ---------- Encabezado del inicio ---------- */

.hero {
  padding: 36px 0 28px;
  text-align: center;
}
.hero__logo { width: 140px; height: auto; margin: 0 auto 18px; }
.hero__title {
  font-family: var(--titulos);
  font-weight: 800;
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--dorado);
  text-shadow: 0 0 28px rgba(255, 196, 0, .22);
}
.hero__tagline {
  margin-top: 10px;
  color: var(--suave);
  font-size: 15px;
  letter-spacing: .02em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid var(--hilo-fuerte);
  border-radius: 999px;
  background: rgba(241, 179, 34, .08);
  color: var(--oro-claro);
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dorado);
  box-shadow: 0 0 10px var(--dorado);
}

/* ---------- Tarjetas de combo ---------- */

.combos { display: grid; gap: 22px; }

.card {
  position: relative;
  border: 1px solid var(--hilo);
  border-radius: var(--radio);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .38), 0 0 30px rgba(241, 179, 34, .05);
  overflow: hidden;
  transition: border-color .25s ease, transform .2s ease;
}
.card:active { transform: scale(.995); }
@media (hover: hover) {
  .card:hover { border-color: var(--hilo-fuerte); }
}
.card__link { display: block; text-decoration: none; color: inherit; }
.card__media { position: relative; }
.card__body { padding: 18px 18px 20px; }
.card__title {
  margin-top: 6px;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  color: var(--dorado);
}
.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(241, 179, 34, .14);
}
.card__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hilo-fuerte);
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 13px;
  color: var(--dorado);
}
.card__cta::after { content: "→"; font-size: 15px; }

.price {
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  color: var(--blanco);
  letter-spacing: .01em;
}
.price--lg { margin-top: 12px; font-size: 32px; }
.savings { margin-top: 4px; font-size: 13.5px; color: var(--suave); }
.savings s { text-decoration-color: rgba(248, 248, 255, .5); }
.savings strong { color: var(--oro-claro); font-weight: 700; }
.card .savings .sep { display: none; }
.card .savings strong { display: block; }
.stats {
  margin-top: 8px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oro-claro);
}
.stats--lg { font-size: 13px; margin-top: 10px; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.badge--wine { background: var(--vino); color: var(--blanco); border: 1px solid rgba(255, 226, 140, .35); }

/* ---------- Imagen del combo y collage ---------- */

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 58%, rgba(241, 179, 34, .2), rgba(241, 179, 34, 0) 70%),
    radial-gradient(ellipse 95% 85% at 50% 40%, #20205a 0%, var(--noche-2) 48%, var(--noche) 100%);
}
.media::after {
  /* viñeta suave, como en las fotos de producto */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .45) 100%);
}
.media__img { width: 100%; height: 100%; object-fit: contain; }

.media--collage {
  display: grid;
  gap: 6px;
  padding: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.collage--1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding: 20px 28px; }
.collage--2 { grid-template-rows: minmax(0, 1fr); }
.collage--3 .collage__cell:first-child { grid-row: span 2; }
.collage__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.collage__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .55));
}
.collage--empty { display: flex; align-items: center; justify-content: center; }
.collage__mark { width: 42%; height: auto; opacity: .92; filter: drop-shadow(0 0 24px rgba(241, 179, 34, .25)); }

/* ---------- Barra de arriba ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 6px max(16px, calc((100% - 528px) / 2));
  background: rgba(10, 10, 35, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 179, 34, .16);
}
.topbar__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-right: 8px;
  text-decoration: none;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texto);
}
.topbar__back .icon { color: var(--dorado); }
.topbar__logo img { width: auto; height: 30px; filter: drop-shadow(0 0 10px rgba(241, 179, 34, .25)); }
.topbar__cart {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--dorado);
  color: var(--dorado);
  text-decoration: none;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}

/* ---------- Detalle ---------- */

.detail__media {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--hilo);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 36px rgba(241, 179, 34, .07);
}
.detail__head { margin-top: 22px; }
.detail__title {
  margin-top: 6px;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: clamp(25px, 7.4vw, 31px);
  line-height: 1.12;
  color: var(--dorado);
}
.idea {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--oro);
  font-size: 17px;
  line-height: 1.55;
  color: var(--texto);
}
.family {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(114, 47, 55, .95);
  border-radius: 12px;
  background: rgba(114, 47, 55, .28);
  color: var(--oro-claro);
  font-size: 14.5px;
}
.family .icon { margin-top: 1px; color: var(--oro-claro); }

.contents { margin-top: 34px; }
.group + .group { margin-top: 26px; }
.group__title {
  margin: 0 0 12px;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 18px;
  color: var(--blanco);
}
.items { display: grid; gap: 10px; }
.item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(241, 179, 34, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(241, 179, 34, .16), rgba(241, 179, 34, 0) 70%),
    radial-gradient(circle at 50% 40%, #1f1f55 0%, var(--noche-2) 60%, var(--noche) 100%);
}
.item__img { width: 100%; height: 100%; padding: 6px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.item__icon { color: var(--dorado); }
.item__name {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--blanco);
  overflow-wrap: anywhere;
}
.item__qty { color: var(--dorado); white-space: nowrap; }
.item__meta {
  margin-top: 4px;
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 13px;
  color: var(--oro-claro);
}
.item__desc { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--suave); }
.item__note {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(114, 47, 55, .55);
  font-size: 12.5px;
  color: var(--oro-claro);
}
.item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Barra fija del detalle */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + var(--seguro-abajo));
  background: rgba(10, 10, 35, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(241, 179, 34, .28);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .35);
}
.actionbar__inner {
  display: grid;
  gap: 8px;
  max-width: 528px;
  margin: 0 auto;
}

/* ---------- Botones flotantes del inicio ---------- */

.fabs {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--seguro-abajo));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: min(100%, var(--ancho));
  padding: 0 16px;
  transform: translateX(-50%);
  pointer-events: none;
}
.fabs > * { pointer-events: auto; }
.fab-cart {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  margin-right: auto;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFD23A 0%, var(--dorado) 100%);
  color: var(--noche);
  text-decoration: none;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 196, 0, .25);
}
.fab-wa {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), 0 0 0 4px rgba(37, 211, 102, .18);
  transition: transform .15s ease;
}
.fab-wa:active { transform: scale(.94); }
.fab-wa .icon-wa { width: 30px; height: 30px; }

/* ---------- Pedido ---------- */

.lines { display: grid; gap: 10px; }
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "info sub" "step step";
  gap: 10px 12px;
  padding: 14px 16px;
  border: 1px solid var(--hilo);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.line__info { grid-area: info; }
.line__name {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--blanco);
  overflow-wrap: anywhere;
}
.line__unit { margin-top: 2px; font-size: 13.5px; color: var(--suave); }
.line__subtotal {
  grid-area: sub;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 17px;
  color: var(--blanco);
  white-space: nowrap;
}
.stepper {
  grid-area: step;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hilo-fuerte);
  border-radius: 999px;
}
.stepper__btn {
  width: 46px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--dorado);
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.stepper__qty {
  min-width: 30px;
  text-align: center;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 16px;
  color: var(--blanco);
}

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding: 16px 2px;
  border-top: 1px solid var(--hilo-fuerte);
}
.total span {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dorado);
}
.total strong {
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 28px;
  color: var(--blanco);
}
.link-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 14px;
  color: var(--dorado);
  text-decoration: none;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--vino);
  border-radius: 12px;
  background: rgba(114, 47, 55, .35);
  color: var(--oro-claro);
  font-size: 14.5px;
}

.form { margin-top: 26px; }
.field { display: block; margin-bottom: 18px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oro-claro);
}
.field__hint { display: block; margin-top: 6px; font-size: 13px; color: var(--suave); }
.field__text {
  padding: 12px 14px;
  border: 1px dashed var(--hilo);
  border-radius: 12px;
  color: var(--texto);
  font-size: 15px;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(241, 179, 34, .3);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, .05);
  color: var(--blanco);
  font-size: 16px; /* 16 px para que el iPhone no acerque la pantalla */
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23FFC400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field select option { background: var(--noche); color: var(--blanco); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, .2);
}
.field input[name="clave"] { text-transform: uppercase; letter-spacing: .08em; }
.btn--send { margin-top: 6px; min-height: 56px; font-size: 16px; }
.form__note { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--suave); }

/* ---------- Vacío, no disponible y error ---------- */

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 0;
  text-align: center;
}
.empty > p { max-width: 34ch; color: var(--suave); }
.empty .btn { margin-top: 4px; }
.empty__mark { width: 120px; height: auto; margin-bottom: 6px; filter: drop-shadow(0 0 22px rgba(241, 179, 34, .25)); }
.empty__title {
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: var(--dorado);
}
.empty .hero__logo { margin-bottom: 4px; }
.empty-note {
  display: grid;
  gap: 14px;
  padding: 28px 20px;
  border: 1px solid var(--hilo);
  border-radius: var(--radio);
  text-align: center;
  color: var(--suave);
}

/* ---------- Pie ---------- */

.footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 0 8px;
  text-align: center;
}
.safety {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--oro-claro);
  font-size: 14.5px;
}
.safety .icon { color: var(--dorado); }
.footer__brand {
  margin-top: 4px;
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(248, 248, 255, .42);
}

/* ---------- Aviso breve ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: calc(72px + env(safe-area-inset-top, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--dorado);
  border-radius: 999px;
  background: var(--noche-3);
  color: var(--blanco);
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 22px rgba(255, 196, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  pointer-events: none;
}
.toast::before { content: "✓"; color: var(--dorado); font-weight: 800; }
.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .25s ease, transform .25s ease;
}

/* ---------- Video ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 18, .9);
}
.modal__box { position: relative; width: min(100%, 720px); }
.modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hilo);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.modal__box--short { width: min(100%, calc(78vh * 9 / 16)); width: min(100%, calc(78dvh * 9 / 16)); }
.modal__box--short .modal__frame { aspect-ratio: 9 / 16; }
.modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.modal__close {
  position: absolute;
  top: -54px;
  right: 0;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(248, 248, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--blanco);
  font-size: 26px;
  line-height: 1;
}

/* ---------- Pantallas más anchas ---------- */

@media (min-width: 600px) {
  .hero { padding-top: 52px; }
  .page { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Menos movimiento ---------- */

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

/* En teléfonos de poca altura, la foto del detalle no empuja el precio detrás de la barra fija. */
@media (max-width: 599px) {
  .detail__media .media {
    max-height: 36vh;
    max-height: 36svh;
  }
}
