/* Zenit Productions · estética mármol negro + oro cepillado */
:root {
  --bg: #090806;
  --panel: rgba(17, 14, 10, 0.78);
  --gold-1: #f8ebc0;
  --gold-2: #dbb660;
  --gold-3: #a3762a;
  --gold-grad: linear-gradient(180deg, #f8ebc0 0%, #dbb660 48%, #9a6f22 100%);
  --line: rgba(219, 182, 96, 0.38);
  --line-strong: rgba(248, 235, 192, 0.7);
  --text: #f0e7d3;
  --muted: #b7aa8a;
  --error: #ff9d8c;
  --ok: #b9e3a4;
  --radius: 14px;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Luz cálida de los focos + brillo lateral, como las pilastras del fondo de la foto */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 38% at 50% -8%, rgba(236, 199, 110, 0.26), transparent 70%),
    radial-gradient(ellipse 22% 55% at 3% 32%, rgba(226, 178, 84, 0.2), transparent 70%),
    radial-gradient(ellipse 22% 55% at 97% 32%, rgba(226, 178, 84, 0.2), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 108%, rgba(226, 178, 84, 0.12), transparent 70%);
}

/* Vetas de mármol muy sutiles */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='%23f0e2b8' stroke-linecap='round'><path d='M120 0 C160 90 110 150 200 240 S260 380 330 430' stroke-width='1' opacity='.16'/><path d='M200 240 C250 250 290 210 340 230' stroke-width='.7' opacity='.12'/><path d='M760 0 C720 110 800 190 730 300 S650 460 700 620' stroke-width='1.1' opacity='.15'/><path d='M730 300 C690 320 650 300 610 340' stroke-width='.7' opacity='.1'/><path d='M0 640 C90 600 150 690 260 650 S430 700 520 900' stroke-width='.9' opacity='.13'/><path d='M880 760 C800 730 760 800 690 790' stroke-width='.7' opacity='.1'/></svg>");
  background-size: 900px 900px;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

/* ---------- selector de idioma ---------- */
.langs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
}
.lang-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  position: relative;
  opacity: 0.62;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lang-btn img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(248, 235, 192, 0.25);
}
.lang-btn:hover { opacity: 0.95; transform: translateY(-1px); }
.lang-btn.is-active { opacity: 1; }
.lang-btn.is-active img {
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px rgba(9, 8, 6, 1), 0 0 0 4.5px var(--gold-2), 0 0 22px rgba(236, 199, 110, 0.55);
}
.lang-btn:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 4px; }

/* ---------- cabecera de marca ---------- */
.brand { text-align: center; margin: 18px 0 22px; }
.emblem {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 4px;
  /* desvanece los bordes del recorte para fundirlo con el fondo */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 15%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 15%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.emblem--sm { width: 104px; }
.brand-name {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 2.9rem);
  letter-spacing: 0.34em;
  padding-left: 0.34em; /* compensa el espaciado final para centrar */
  line-height: 1.1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(236, 199, 110, 0.18);
}
.brand-sub {
  margin: 4px 0 0;
  font-weight: 400;
  font-size: clamp(1.02rem, 4.4vw, 1.3rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: #cdb27a;
}
.tagline {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 5.4vw, 1.6rem);
  letter-spacing: 0.06em;
  color: var(--gold-1);
}
.tagline::before, .tagline::after {
  content: '';
  display: inline-block;
  width: 34px;
  height: 1px;
  vertical-align: middle;
  margin: 0 12px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}
.tagline::after { background: linear-gradient(270deg, transparent, var(--gold-2)); }

/* ---------- tarjeta principal ---------- */
.card {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(248, 235, 192, 0.05) inset,
    0 0 26px rgba(236, 199, 110, 0.13),
    0 28px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  filter: drop-shadow(0 0 8px rgba(248, 235, 192, 0.9));
}

.field { margin-bottom: 22px; }
.label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.label .opt { letter-spacing: 0.05em; text-transform: none; font-weight: 400; color: var(--muted); }

.input, .textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(219, 182, 96, 0.3);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: #7d735c; }
.input:focus, .textarea:focus {
  border-color: var(--gold-1);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(219, 182, 96, 0.18);
}
.textarea { min-height: 96px; resize: vertical; }
.is-invalid { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(255, 157, 140, 0.15) !important; }
.error {
  margin: 8px 2px 0;
  font-size: 0.85rem;
  color: var(--error);
}
.error[hidden] { display: none; }

/* monedas */
.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(219, 182, 96, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}
.seg {
  padding: 8px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg:hover { color: var(--gold-1); }
.seg.is-active { background: var(--gold-grad); color: #1b1408; }
.seg:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 2px; }

/* cantidades */
.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.chip {
  padding: 14px 6px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(219, 182, 96, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--gold-1); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 2px; }
.chip.is-active {
  background: var(--gold-grad);
  color: #1b1408;
  font-weight: 700;
  border-color: var(--gold-1);
  box-shadow: 0 0 22px rgba(236, 199, 110, 0.35);
}
.chip--other { grid-column: span 3; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; }
.other-wrap { margin-top: 10px; }
.other-wrap[hidden] { display: none; }

/* frase */
.phrase {
  margin: 8px 0 22px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 5.6vw, 1.55rem);
  line-height: 1.3;
  color: var(--gold-1);
}
.orn {
  display: block;
  width: 120px;
  height: 1px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}

/* botones */
.btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: #1b1408;
  background: var(--gold-grad);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(154, 111, 34, 0.45), 0 0 0 1px rgba(248, 235, 192, 0.5) inset;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 34px rgba(219, 182, 96, 0.5), 0 0 0 1px rgba(248, 235, 192, 0.7) inset; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--ghost {
  color: var(--gold-1);
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(219, 182, 96, 0.1); box-shadow: none; }

.link {
  display: inline-block;
  color: var(--gold-2);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
}
.link:hover { color: var(--gold-1); }

.footer { margin-top: 26px; text-align: center; font-size: 0.75rem; letter-spacing: 0.2em; color: #7d735c; text-transform: uppercase; }

/* honeypot anti-bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- página de pago ---------- */
.summary {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(219, 182, 96, 0.22);
}
.summary-title {
  margin: 0 0 4px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--gold-1);
}
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.row dt { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.row dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.row .big { font-size: 1.5rem; font-weight: 600; color: var(--gold-1); }
.edit-row { text-align: center; margin: -8px 0 16px; }

.widget-wrap {
  min-height: 240px;
  padding: 14px;
  border-radius: var(--radius);
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(248, 235, 192, 0.5), 0 0 30px rgba(236, 199, 110, 0.18);
}
.widget-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 210px;
  text-align: center;
  color: #5c5546;
  font-size: 0.95rem;
}
.widget-status[hidden] { display: none; }

/* El widget de Revolut fija min-width:400px en su marco. En un móvil (375 px o menos)
   se saldría de la tarjeta, así que se le permite adaptarse al ancho disponible. */
#checkout-container { width: 100%; max-width: 100%; overflow: hidden; }
#checkout-container iframe { width: 100% !important; min-width: 0 !important; max-width: 100% !important; border: 0; display: block; }
.spinner {
  width: 22px;
  height: 22px;
  flex: none;
  border: 3px solid rgba(154, 111, 34, 0.25);
  border-top-color: #9a6f22;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.demo-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b4a06;
  background: #f6e2a6;
  border-radius: 999px;
}
.demo-box { text-align: center; padding: 10px 6px 4px; }
.demo-box p { margin: 6px 0 14px; color: #5c5546; font-size: 0.92rem; }
.demo-fake { display: grid; gap: 8px; margin: 8px 0 16px; }
.demo-fake span { display: block; height: 42px; border: 1px solid #ddd; border-radius: 10px; background: #f6f6f6; }
.demo-box .btn { color: #1b1408; }

.secure { margin: 14px 0 0; text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); }
.secure svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; }
.back-row { margin-top: 16px; text-align: center; }

/* ---------- página de gracias ---------- */
.center-card { text-align: center; padding: 34px 24px 28px; }
.status-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 30px rgba(236, 199, 110, 0.3);
}
.status-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-1); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.status-icon.is-loading { border-color: transparent; box-shadow: none; }
.big-title { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 2.1rem; color: var(--gold-1); }
.lead { margin: 0 auto 22px; max-width: 34ch; color: var(--text); }
.stack { display: grid; gap: 12px; }

/* ---------- página del QR ---------- */
.qr-box { display: grid; place-items: center; gap: 14px; }
.qr-frame { padding: 14px; background: #f4ead2; border-radius: 14px; box-shadow: 0 0 0 2px var(--gold-2), 0 0 34px rgba(236, 199, 110, 0.3); }
.qr-frame canvas, .qr-frame img { display: block; max-width: 100%; height: auto; }
.hint { margin: 0; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 380px) {
  .card { padding: 22px 16px 20px; }
  .lang-btn { width: 42px; height: 42px; }
  .langs { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- enlaces legales (pie) y aceptación ---------- */
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0 0; font-size: 0.75rem; letter-spacing: 0.06em; }
.legal-nav a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.legal-nav a:hover { color: var(--gold-1); }
.consent { margin: 0 0 14px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.consent a { color: var(--gold-2); text-underline-offset: 3px; }

/* ---------- páginas legales ---------- */
.legal { font-size: 0.92rem; }
.legal h1 { margin: 0 0 6px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.04em; color: var(--gold-1); }
.legal .updated { margin: 0 0 22px; text-align: center; font-size: 0.75rem; color: var(--muted); }
.legal h2 { margin: 24px 0 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--gold-2); text-underline-offset: 3px; }
.legal strong { color: var(--gold-1); font-weight: 600; }
.legal table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: 0.85rem; }
.legal th, .legal td { padding: 7px 8px; border-bottom: 1px solid rgba(219, 182, 96, 0.2); text-align: left; vertical-align: top; }
.legal th { color: var(--gold-2); font-weight: 600; }
.legal .back { display: block; margin-top: 22px; text-align: center; }
