/* =========================================================
   Enviar Comprobante de Pago — hoja de estilos compartida

   La usan las 4 páginas:
     formulario-escritorio.html
     formulario-movil.html
     recibo-movil.html
     recibo-escritorio.html

   Para cambiar el color de acento (botón, tasa BCV, casillas
   marcadas, etiqueta "Pago recibido") edita --accent.
   Para quitar todo el color, usa  --accent: #333333;
   ========================================================= */

:root {
  --accent: #675319;
  --text: #333333;
  --muted: #666666;
  --line: #e4e4e4;
  --border: #949494;
  --border-soft: #cfcfcf;
  --surface: #f7f7f7;
  --hover: #f3f3f3;
  --font: 'Public Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

h1, h2, p, dl, dd, fieldset {
  margin: 0;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

button,
input {
  font-family: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Texto solo para lectores de pantalla */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   FORMULARIO — escritorio
   ========================================================= */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.form {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Campo de texto con botón "borrar" ---------- */

.control {
  position: relative;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 50px 0 14px;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.input--num {
  font-variant-numeric: tabular-nums;
}

.clear {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.clear[hidden] {
  display: none;
}

.clear circle {
  fill: #e4e4e4;
}

.clear:hover circle {
  fill: #d2d2d2;
}

/* ---------- Lista desplegable (Diplomado) ---------- */

.select {
  position: relative;
}

.select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  text-align: left;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.select__btn.has-value {
  color: var(--text);
}

.select.is-open .select__btn {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select__chev {
  flex: none;
  transition: transform 0.15s;
}

.select.is-open .select__chev {
  transform: rotate(180deg);
}

.select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 21;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.select.is-open .select__list {
  display: flex;
}

.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.opt:hover,
.opt.is-active {
  background: var(--hover);
}

.opt[aria-selected="true"] {
  font-weight: 600;
}

.opt__check {
  flex: none;
  opacity: 0;
  stroke: var(--accent);
}

.opt[aria-selected="true"] .opt__check {
  opacity: 1;
}

/* ---------- Qué va a pagar ---------- */

.pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay__legend {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
}

.option:has(input:checked) {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Respaldo para navegadores sin :has() (lo activa app.js) */
.option.is-checked {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.option__check {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.option__name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
}

.option__amount {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.option__price {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.option__tag {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Total y botones de copiar ---------- */

.total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 6px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
}

.total__label {
  padding-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

.total__vals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.total__usd {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.total__bs-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.total__bs {
  font-size: 15px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.copied-msg {
  font-size: 13px;
  color: var(--accent);
}

.copy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  cursor: pointer;
}

.copy:hover {
  background: var(--hover);
}

.copy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.copy:disabled:hover {
  background: #ffffff;
}

.copy .icon-copy {
  stroke: var(--text);
}

.copy .icon-check {
  display: none;
  stroke: var(--accent);
}

.copy.is-copied .icon-copy {
  display: none;
}

.copy.is-copied .icon-check {
  display: block;
}

.copy-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Comprobante y botón de envío ---------- */

.drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding: 11px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.drop:focus-within {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.drop__input:focus-visible {
  outline: none;
}

.drop__btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.drop__name {
  min-width: 0;
  font-size: 15px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hint {
  font-size: 14px;
  color: var(--muted);
}

.submit {
  align-self: stretch;
  height: 54px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Columna de información de pago ---------- */

.side {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  padding: 28px;
  background: var(--surface);
  border-radius: 8px;
}

.panel__title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.info {
  display: flex;
  flex-direction: column;
}

.info__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.info__row:last-child {
  padding-bottom: 0;
}

.info__label {
  font-size: 14px;
  color: var(--muted);
}

.info__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.rate__label {
  font-size: 14px;
  color: var(--muted);
}

.rate__value {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rate__text {
  margin-top: 6px;
  font-size: 15px;
}

.note {
  padding: 0 4px;
  font-size: 15px;
  color: var(--muted);
}


/* =========================================================
   RECIBO — componentes comunes (móvil y escritorio)
   ========================================================= */

.logo {
  flex: none;
  display: block;
  width: auto;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
}

.r-inst {
  font-size: 16px;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.chip svg {
  stroke: var(--accent);
}

.r-usd {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.r-cur {
  font-size: 14px;
  color: var(--muted);
}

.r-meta__item {
  display: flex;
  flex-direction: column;
}

.r-meta__item--end {
  align-items: flex-end;
}

.r-meta__label {
  font-size: 14px;
  color: var(--muted);
}

.r-meta__value {
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.r-sec__title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.r-list {
  display: flex;
  flex-direction: column;
}

.r-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.r-row dt {
  font-size: 15px;
  color: var(--muted);
}

.r-row dd {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.r-row--item dt {
  color: var(--text);
}

.r-row--strong dt {
  color: var(--text);
  font-weight: 600;
}

.r-row--strong dd {
  font-weight: 600;
}

.r-row--accent dd {
  color: var(--accent);
}

.r-row dd.wrap-any {
  overflow-wrap: anywhere;
}

.r-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.r-file svg {
  flex: none;
}

.r-file span {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.r-foot {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Recibo móvil ---------- */

.r-card {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.r-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.r-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.r-kicker {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.r-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.r-bs {
  font-size: 18px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.r-hero .chip {
  align-self: flex-start;
  margin-top: 12px;
}

.r-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px dashed #b5b5b5;
  border-bottom: 1px dashed #b5b5b5;
}

.r-card .r-foot {
  padding-top: 4px;
}

/* ---------- Recibo escritorio ---------- */

.rd-page {
  min-height: 100vh;
  padding: 56px 24px;
  background: var(--surface);
}

.rd-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rd-head,
.rd-titlebar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.rd-head {
  gap: 20px 32px;
}

.rd-titlebar {
  gap: 16px 32px;
}

.rd-head .r-head {
  gap: 14px;
}

.rd-meta {
  display: flex;
  gap: 32px;
}

.rd-title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rd-titlebar .chip {
  height: 36px;
  padding: 0 16px 0 12px;
}

.rd-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  padding: 24px 0;
  border-top: 1px dashed #b5b5b5;
  border-bottom: 1px dashed #b5b5b5;
}

.rd-band__block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rd-band__block--end {
  align-items: flex-end;
}

.rd-band__label {
  font-size: 14px;
  color: var(--muted);
}

.rd-bs {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 32px 48px;
  align-items: start;
}

.rd-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rd-foot {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}


/* =========================================================
   Añadidos para el sitio real
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand .logo {
  width: auto;
  height: 44px;
  max-width: 100%;
}

.alert {
  padding: 14px 16px;
  font-size: 15px;
  color: #7a1f1f;
  background: #fdf3f3;
  border: 1px solid #e3b4b4;
  border-radius: 8px;
}

.alert p + p {
  margin-top: 4px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hint {
  display: none;
}

.rate__meta {
  font-size: 13px;
  color: var(--muted);
}

.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.input[aria-invalid="true"],
.select__btn[aria-invalid="true"] {
  border-color: #b3261e;
}

.rd-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 880px;
  margin: 20px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.btn--primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.rd-warn {
  max-width: 880px;
  margin: 0 auto 16px;
}

@media print {
  .rd-page { padding: 0; background: #ffffff; }
  .rd-card { border: 0; }
  .rd-actions { display: none; }
}

/* =========================================================
   Pantallas pequeñas (diseño móvil)
   ========================================================= */

@media (max-width: 720px) {
  .wrap {
    max-width: 480px;
    padding: 32px 20px 48px;
    gap: 24px;
  }

  .title {
    font-size: 28px;
  }

  .form {
    margin-top: 8px;
    gap: 24px;
  }

  .fields {
    gap: 16px;
  }

  .pay {
    gap: 8px;
  }

  .option {
    gap: 12px;
    padding: 8px 14px;
  }

  .option__check {
    width: 22px;
    height: 22px;
  }

  .option__name {
    line-height: 1.3;
  }

  .option__amount {
    gap: 4px;
    white-space: nowrap;
  }

  .total {
    padding: 16px 2px 0;
  }

  .total__vals {
    gap: 4px;
  }

  .total__bs-row {
    gap: 8px;
  }

  .copy {
    width: 44px;
    height: 44px;
  }

  .copy-group {
    gap: 8px;
  }

  .drop {
    gap: 8px 14px;
    padding: 10px 14px;
  }

  .drop__btn {
    height: 44px;
  }

  .submit {
    height: 56px;
    padding: 0 24px;
  }

  .panel {
    padding: 20px;
  }

  .panel__title {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .info__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 52px;
    padding: 0;
  }

  .info__value {
    justify-content: flex-end;
    gap: 8px;
    min-height: 0;
    font-size: 16px;
    text-align: right;
  }

  .rate {
    gap: 4px;
    margin-top: -8px;
    padding: 18px 20px;
  }

  .rate__value {
    font-size: 24px;
  }

  .layout {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 24px;
  }

  .form {
    flex: none;
    width: 100%;
    margin-top: 0;
  }

  .side {
    order: -1;
    flex: none;
    gap: 16px;
  }

  .rate {
    margin-top: 0;
  }

  .note {
    display: none;
  }

  .hint {
    display: block;
  }

  .copied-msg {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .rd-page {
    padding: 20px 12px 32px;
  }

  .r-usd {
    font-size: 40px;
  }

  .rd-bs {
    font-size: 26px;
  }

  .rd-band__block--end {
    align-items: flex-start;
  }
}

/* =========================================================
   Barra superior del sitio
   ========================================================= */

.snav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #675319;
}

.snav__in {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.snav__brand {
  flex: none;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.snav__brand img {
  display: block;
  height: 50px;
  width: auto;
  max-width: 100%;
}

.snav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  cursor: pointer;
}

.snav__toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

.snav__toggle:focus-visible,
.snav__menu a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.snav__menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.snav__menu a {
  display: block;
  padding: 12px 11px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.snav__menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1100px) {
  .snav__toggle {
    display: flex;
  }

  .snav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #675319;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  }

  .snav__menu.is-open {
    display: block;
  }

  .snav__menu ul {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .snav__menu a {
    padding: 14px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media print {
  .snav { display: none; }
}

/* =========================================================
   Formulario por pasos, iconos de copiar sin recuadro y barra móvil
   ========================================================= */

.wrap--wiz {
  max-width: 680px;
}

.wiz {
  flex: none;
  width: 100%;
  gap: 24px;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress__bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress__seg {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.progress__seg.is-done,
.progress__seg.is-current {
  background: var(--accent);
}

.progress__seg.is-current {
  opacity: 0.5;
}

.progress__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step[hidden] {
  display: none;
}

.step__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

.step__title:focus {
  outline: none;
}

.step__error {
  padding: 12px 14px;
  font-size: 15px;
  color: #7a1f1f;
  background: #fdf3f3;
  border: 1px solid #e3b4b4;
  border-radius: 8px;
}

.step__error[hidden] {
  display: none;
}

.step__nav {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.next,
.submit {
  flex: 1;
  height: 54px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.back {
  flex: none;
  height: 54px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.wiz .hint {
  display: block;
}

.wiz .total {
  margin-top: 0;
  padding: 0 4px;
  border-top: 0;
}

/* Icono de copiar: solo el icono, sin recuadro */
.copy,
.copy:hover,
.copy:disabled:hover {
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.copy {
  width: 40px;
  height: 40px;
}

.copy:hover .icon-copy {
  stroke: var(--accent);
}

.info__value {
  min-width: 0;
}

a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}

/* Barra superior: el logo se encoge y deja siempre visible el botón */
.snav__brand {
  flex: 1 1 0;
  min-width: 0;
}

.snav__brand img {
  height: auto;
  max-height: 50px;
  max-width: 100%;
  min-width: 0;
}

.snav__toggle {
  flex: none;
}

@media (max-width: 720px) {
  .snav__in {
    padding: 0 14px;
    gap: 12px;
    min-height: 62px;
  }

  .copy {
    width: 44px;
    height: 44px;
  }
}


/* Aviso mínimo: recibo enviado al correo (se oculta a los 7 segundos) */
.toast {
  position: fixed;
  top: 84px;
  right: 16px;
  z-index: 70;
  width: min(360px, calc(100% - 32px));
  padding: 14px 16px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
}

.toast__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: toast-count 7s linear forwards;
}

@keyframes toast-count {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media print {
  .toast { display: none; }
}

/* =========================================================
   Guía interactiva paso a paso
   ========================================================= */

.tour__abrir {
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

.tour__sombra {
  position: fixed;
  z-index: 80;
  background: rgba(20, 16, 6, 0.62);
}

.tour__aro {
  position: fixed;
  z-index: 81;
  pointer-events: none;
  border: 2px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--accent);
  transition: left 0.2s, top 0.2s, width 0.2s, height 0.2s;
}

.tour__pop {
  position: fixed;
  z-index: 90;
  width: min(340px, calc(100vw - 24px));
  padding: 16px 18px 12px;
  color: var(--text);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.tour__cont {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.tour__tit {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.tour__txt {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.tour__ayuda {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #9b1c1c;
}

.tour__ayuda[hidden],
.tour__atras[hidden] {
  display: none;
}

.tour__botones {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.tour__atras,
.tour__sig {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.tour__atras {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
}

.tour__sig {
  color: #ffffff;
  background: var(--accent);
  border: 0;
}

.tour__sig:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tour__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tour__chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.tour__chk input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.tour__saltar {
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

@media print {
  .tour__sombra, .tour__aro, .tour__pop, .tour__abrir { display: none; }
}

.tour__ico {
  display: inline-block;
  vertical-align: -3px;
  margin: 0 1px;
  color: var(--text);
}
