/* MEISEOL · Tienda · checkout.css — propietario: S4 (checkout y pedido; SPEC2 §7.3 y §7.10).
   Checkout en tres pasos, resumen, pasarela simulada, confirmación y estado del pedido, consulta e impresión de la confirmación.
   Se carga después de /styles.css y /shop/shop.css y reutiliza sus tokens (colores, radios, sombras), botones, avisos y foco.
   Mobile-first, con los cortes de la tienda: 600 px, 700 px y 1000 px. Movimiento reducido: styles.css apaga animaciones y
   transiciones; todo lo de aquí funciona quieto. Contraste: textos ≥ 4,5:1 y bordes de los campos ≥ 3:1 (#8C8A99 sobre blanco). */

.ck, .od, .lk, .gw, .sp { --ck-field: #8C8A99; --ck-err: #B3261E; --ck-err-bg: #FDECEA; --ck-err-ink: #7A1A13; --ck-ok-bg: #EAF7EF; --ck-ok-ink: #123D27; --ck-warn-bg: #FFF6E9; --ck-warn-ink: #4A2800; }
.ck [hidden], .od [hidden], .lk [hidden], .gw [hidden], .sp [hidden] { display: none !important; }

/* ───── Página del checkout ───── */
.ck { padding: 18px 0 64px; background: linear-gradient(180deg, rgba(244, 241, 255, .75), rgba(255, 253, 248, 0) 380px); }
.ck-head { margin-bottom: 22px; }
.ck-back { display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 40px; margin-bottom: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.ck-back:hover { color: var(--violet-ink); }
.ck-back .i { width: 16px; height: 16px; }
.ck-head__title { margin-top: 8px; font-size: clamp(32px, 5vw, 48px); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; outline: none; }
.ck-head__sub { max-width: 60ch; margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Progreso: tres tramos con número y nombre */
.ck-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.ck-progress__step {
  display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid rgba(27, 27, 27, .12);
  font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--muted); transition: border-color .3s, color .3s;
}
.ck-progress__n {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ck-progress__step.is-done { border-color: var(--graphite); color: var(--graphite); }
.ck-progress__step.is-done .ck-progress__n { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }
.ck-progress__step.is-current { border-image: var(--grad) 1; color: var(--graphite); }
.ck-progress__step.is-current .ck-progress__n { background: var(--violet); border-color: var(--violet); color: #fff; }

.ck__grid { display: grid; gap: 16px; align-items: start; }
.ck__main { min-width: 0; }

/* ───── Pasos ───── */
.ck-step { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 24px; background: #fff; scroll-margin-top: 96px; transition: box-shadow .3s; }
.ck-step.is-open { box-shadow: 0 24px 50px -36px rgba(118, 87, 255, .55); border-color: rgba(118, 87, 255, .28); }
.ck-step__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.ck-step__n {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(27, 27, 27, .2); font-size: 14px; font-weight: 800; color: var(--muted);
}
.ck-step__check { display: none; width: 17px; height: 17px; stroke-width: 3; }
.ck-step.is-open .ck-step__n { background: var(--grad); border-color: transparent; color: #fff; }
.ck-step.is-done .ck-step__n { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }
.ck-step.is-done .ck-step__num { display: none; }
.ck-step.is-done .ck-step__check { display: block; animation: pop .45s var(--ease); }
.ck-step__title { flex: 1; min-width: 0; font-size: 19px; font-weight: 750; letter-spacing: -.015em; line-height: 1.2; outline: none; }
.ck-step.is-todo .ck-step__title { color: var(--muted); font-weight: 650; }
.ck-step__edit {
  min-height: 40px; padding: 0 16px; border: 1.5px solid rgba(27, 27, 27, .2); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--graphite); transition: border-color .2s, color .2s;
}
.ck-step__edit:hover { border-color: var(--violet); color: var(--violet-ink); }
.ck-step__recap { display: grid; gap: 2px; padding: 0 18px 18px 64px; font-size: 14.5px; color: #3A3746; overflow-wrap: anywhere; }
.ck-recap__gift { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--graphite); }
.ck-step__body { padding: 2px 18px 22px; }

/* ───── Formulario ───── */
.ck-form { display: grid; gap: 20px; }
.ck-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.ck-group__title { margin-bottom: 12px; padding: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ck-grid { display: grid; gap: 16px; }
.ck-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ck-field__label { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.ck-field__opt { font-weight: 500; color: var(--muted); }
.ck-field__hint { margin-top: -2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ck-input {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--ck-field); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; line-height: 1.35; color: var(--graphite); transition: border-color .2s, box-shadow .2s;
}
.ck-input::placeholder { color: #77748A; }
.ck-input:hover { border-color: #6E6B80; }
.ck-input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 0 0 5px rgba(118, 87, 255, .2); }
.ck-input--area { min-height: 92px; resize: vertical; }
.ck-input[aria-invalid="true"] { border-color: var(--ck-err); box-shadow: 0 0 0 1px var(--ck-err); }
.ck-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--ck-err), 0 0 0 5px rgba(179, 38, 30, .16); }
.ck-input[readonly] { background: var(--tint); }
.ck-field__count { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ck-field__error { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; font-weight: 650; line-height: 1.4; color: var(--ck-err); }
.ck-field__error .i { width: 16px; height: 16px; margin-top: 2px; }

.ck-fixed { display: grid; gap: 6px; align-content: start; }
.ck-fixed__label { font-size: 14.5px; font-weight: 700; }
.ck-fixed__value { display: flex; align-items: center; min-height: 50px; padding: 12px 16px; border-radius: 14px; background: var(--tint); font-weight: 650; }
.ck-fixed__value.is-empty { font-size: 14px; font-weight: 500; color: var(--muted); }

.ck-check { display: flex; align-items: flex-start; gap: 12px; }
.ck-check input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--graphite); cursor: pointer; }
.ck-check label { padding-top: 1px; font-weight: 650; line-height: 1.4; cursor: pointer; }
.ck-check.has-error input { outline: 2px solid var(--ck-err); outline-offset: 2px; }

.ck-intro, .ck-sim, .ck-hold {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--tint); font-size: 14px; line-height: 1.45; color: #3A3746;
}
.ck-intro .i, .ck-sim .i, .ck-hold .i { width: 18px; height: 18px; margin-top: 1px; color: var(--violet-ink); }
.ck-req { margin-top: -6px; font-size: 13px; color: var(--muted); }
.ck-hold { background: none; padding: 0; color: var(--muted); font-size: 13.5px; }
.ck-form__foot { display: flex; justify-content: flex-end; }
.ck-next { min-width: 200px; }

.ck-remember { display: grid; gap: 6px; }
.ck-remember__hint { padding-left: 36px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ck-gift { display: grid; gap: 14px; padding: 16px; border: 1px dashed rgba(118, 87, 255, .35); border-radius: 18px; background: rgba(244, 241, 255, .45); }
.ck-gift__box { display: grid; gap: 14px; }
.ck-gift__note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #3A3746; }

/* Opciones con radio (envío, pago): tarjeta entera clicable, radio nativo visible */
.ck-opts { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ck-opt {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "radio name price" "radio eta eta";
  align-items: center; gap: 2px 14px; min-height: 60px; padding: 14px 18px; border: 1.5px solid var(--ck-field); border-radius: 18px; background: #fff;
  cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s;
}
.ck-opt:hover { border-color: #6E6B80; }
.ck-opt input { grid-area: radio; width: 22px; height: 22px; margin: 0; accent-color: var(--graphite); cursor: pointer; }
.ck-opt__name { grid-area: name; font-weight: 750; line-height: 1.3; }
.ck-opt__price { grid-area: price; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-opt__eta { grid-area: eta; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.ck-opt__eta.is-why { font-weight: 650; color: var(--warn); }
.ck-opt:has(input:checked) { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite), 0 14px 26px -22px rgba(27, 27, 27, .55); }
.ck-opt:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 3px; }
.ck-opt input:focus-visible { outline: none; }
.ck-opt.is-disabled { cursor: not-allowed; border-style: dashed; background: #F7F6FA; }
.ck-opt.is-disabled input { cursor: not-allowed; }
.ck-opt.is-disabled .ck-opt__name, .ck-opt.is-disabled .ck-opt__price { color: var(--muted); }
.ck-opts.has-error .ck-opt { border-color: var(--ck-err); }
.ck-free { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #3A3746; }

.ck-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--violet-ink); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.ck-link:hover { color: var(--graphite); }
.ck-code { display: grid; gap: 6px; }
.ck-code__toggle { justify-self: start; }
.ck-code__box { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: #FAF9FC; border: 1px solid var(--line); }
.ck-code__form { display: grid; gap: 6px; }
.ck-code__row { display: flex; gap: 8px; }
.ck-code__row .ck-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.ck-code__row .btn { min-height: 50px; flex: none; }
.ck-code__applied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.ck-code__ok { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ck-ok-ink); }
.ck-code__ok .i { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.6; }

/* Paso 3: resumen precontractual, condiciones, privacidad y botón */
.ck-final { padding: 18px; border-radius: 20px; background: linear-gradient(160deg, #F7F4FF, #EEF6FF); border: 1px solid rgba(118, 87, 255, .2); }
.ck-final__title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.ck-final__lines { display: grid; gap: 4px; margin-top: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(27, 27, 27, .1); }
.ck-final__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ck-final__lines li > span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-final__rows { display: grid; gap: 6px; margin-top: 10px; }
.ck-final__rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.ck-final__rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-final__eta { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ck-final__total { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(27, 27, 27, .1); }
.ck-final__total dt { font-size: 17px; font-weight: 800; }
.ck-final__total dd { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.ck-final__vat { font-size: 13px; color: var(--muted); text-align: right; }
.ck-final__gift { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14.5px; font-weight: 700; }
.ck-final__problems, .ck-sum__problems { display: grid; gap: 6px; margin-top: 10px; }
.ck-final__problems li, .ck-sum__problems li { display: flex; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--warn); }
.ck-final__problems .i, .ck-sum__problems .i { width: 16px; height: 16px; margin-top: 2px; }
.ck-final__hygiene { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(27, 27, 27, .18); font-size: 13px; line-height: 1.5; color: #3A3746; }
.ck-terms label a, .ck-privacy a { color: var(--violet-ink); font-weight: 700; text-underline-offset: 3px; }
.ck-newtab { font-size: .88em; font-weight: 500; color: var(--muted); }
.ck-privacy { font-size: 13px; line-height: 1.55; color: #4A4757; }
.ck-privacy strong { color: var(--graphite); }
mark.ck-ph { padding: 0 3px; border-radius: 4px; background: #FFF1B8; color: #4A3B00; outline: 1px dashed rgba(122, 96, 0, .55); }
.ck-paybtn { gap: 10px; font-size: 15px; letter-spacing: .06em; }
.ck-paybtn .i { width: 18px; height: 18px; }
.ck-paybtn.is-busy .i { animation: ck-spin .9s linear infinite; }
.ck-paybtn:disabled { cursor: progress; }
@keyframes ck-spin { to { transform: rotate(360deg); } }

/* Mensajes: resumen de errores, avisos bajo el botón, pedido pendiente y confirmaciones */
.ck-errors { padding: 16px 18px; border: 2px solid var(--ck-err); border-radius: 18px; background: #FFF8F7; outline: none; }
.ck-errors:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.ck-errors__title { font-size: 16px; font-weight: 800; color: var(--ck-err-ink); }
.ck-errors__list { display: grid; gap: 4px; margin-top: 8px; padding-left: 18px; list-style: disc; color: var(--ck-err); }
.ck-errors__list a { font-weight: 700; color: var(--ck-err); text-underline-offset: 3px; }
.ck-paymsg { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ck-err-bg); color: var(--ck-err-ink); outline: none; }
.ck-paymsg [role="alert"] { display: flex; align-items: flex-start; gap: 10px; }
.ck-paymsg .i { width: 18px; height: 18px; margin-top: 2px; }
.ck-paymsg--info { background: var(--ck-warn-bg); color: var(--ck-warn-ink); }
.ck-paymsg .ck-link { margin-top: 4px; color: inherit; }
.ck-flash { margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: var(--ck-ok-bg); color: var(--ck-ok-ink); font-weight: 650; outline: none; }
.ck-flash p { display: flex; align-items: flex-start; gap: 10px; }
.ck-flash .i { width: 18px; height: 18px; margin-top: 2px; }
.ck-flash--error { background: var(--ck-err-bg); color: var(--ck-err-ink); }
.ck-pending {
  display: flex; gap: 12px; margin-bottom: 14px; padding: 16px 18px; border-radius: 20px; outline: none;
  background: var(--ck-warn-bg); border: 1px solid rgba(154, 77, 0, .25); color: var(--ck-warn-ink);
}
.ck-pending__icon { display: grid; flex: none; }
.ck-pending__icon .i { width: 22px; height: 22px; color: var(--warn); }
.ck-pending__title { font-weight: 800; }
.ck-pending__text { margin-top: 2px; font-size: 14px; }
.ck-pending__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ck-pending--ok { background: var(--ck-ok-bg); border-color: rgba(28, 122, 74, .25); color: var(--ck-ok-ink); }
.ck-pending--ok .ck-pending__icon .i { color: var(--ok); }
.ck-pending:focus-visible, .ck-flash:focus-visible, .ck-paymsg:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* ───── Resumen del pedido ───── */
.ck-sum { min-width: 0; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.ck-sum__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 10px 18px;
  border: 0; border-radius: 24px; background: none; font: inherit; color: var(--graphite); cursor: pointer;
}
.ck-sum__toggle-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; }
.ck-sum__chev { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ck-sum.is-open .ck-sum__chev { transform: rotate(180deg); }
.ck-sum__toggle-total { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ck-sum__body { padding: 2px 18px 20px; }
.ck-sum:not(.is-open):not(.ck-sum--static) .ck-sum__body { display: none; }
.ck-sum--static .ck-sum__body { padding-top: 20px; }
.ck-sum__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-sum__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; outline: none; }
.ck-sum__edit { min-height: 40px; font-size: 14px; }
.ck-lines { margin-top: 10px; border-top: 1px solid var(--line); }
.ck-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ck-line__media { position: relative; display: grid; place-items: center; width: 60px; height: 70px; padding: 6px 4px 3px; border-radius: 14px; }
.ck-line__media .bottle, .ck-line__media .art, .ck-line__media .pack { width: auto; height: 60px; max-width: 100%; }
.ck-line__media .pmedia__img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.ck-line__media > .spark { width: 22px; height: 22px; }
.ck-line__badge {
  position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border: 2px solid #fff; border-radius: 999px; background: var(--graphite); color: var(--milk);
  font-size: 11.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.ck-line__info { display: grid; gap: 2px; min-width: 0; }
.ck-line__brand { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-ink); }
.ck-line__name { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ck-line__meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ck-line .price-note { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ck-line__warn { display: flex; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 650; line-height: 1.35; color: var(--warn); }
.ck-line__warn .i { width: 15px; height: 15px; margin-top: 1px; }
.ck-line__total { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-line__total.is-off { color: var(--muted); text-decoration: line-through; }
.ck-line--warn { margin-inline: -8px; padding-inline: 8px; border-radius: 12px; background: var(--ck-warn-bg); }
.ck-line__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.ck-qty { display: inline-flex; align-items: center; height: 40px; padding: 2px; border: 1.5px solid var(--ck-field); border-radius: 999px; background: #fff; }
.ck-qty__btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--graphite); }
.ck-qty__btn:hover:not([aria-disabled="true"]) { background: var(--tint); }
.ck-qty__btn[aria-disabled="true"] { color: #8C8A99; cursor: not-allowed; }
.ck-qty__btn .i { width: 16px; height: 16px; stroke-width: 2.4; }
.ck-qty__n { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ck-line__remove {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px; border: 0; background: none;
  font-size: 13px; font-weight: 700; color: #4A4757; text-decoration: underline; text-underline-offset: 3px;
}
.ck-line__remove .i { width: 15px; height: 15px; }
.ck-line__remove:hover { color: var(--ck-err); }
.ck-sum__max { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ck-totals { display: grid; gap: 8px; margin-top: 14px; }
.ck-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.ck-totals dt { color: #3A3746; }
.ck-totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-totals__disc dd { color: var(--ok); }
.ck-totals__total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.ck-totals__total dt { font-size: 17px; font-weight: 800; color: var(--graphite); }
.ck-totals__total dd { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.ck-totals__total dd.is-bump { animation: ck-bump .6s var(--ease); }
@keyframes ck-bump { 40% { transform: scale(1.08); color: var(--violet-ink); } }
.ck-totals__vat { margin-top: 2px; font-size: 13px; color: var(--muted); text-align: right; }
.ck-totals__muted { font-weight: 500; color: var(--muted); }
.ck-free-tag { font-weight: 800; color: var(--ok); }
.ck-sum__free { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: 13.5px; }
.ck-sum__err { margin-top: 10px; font-size: 13.5px; font-weight: 650; color: var(--ck-err); }
.ck-sum[aria-busy="true"] .ck-totals, .ck-sum[aria-busy="true"] .ck-sum__toggle-total, .ck-sum[aria-busy="true"] .ck-line__total { opacity: .5; transition: opacity .2s .15s; }

/* Carrito vacío y modo cerrado */
.ck--empty { padding-top: 40px; }
.ck-empty .empty__title { font-size: clamp(26px, 4vw, 34px); outline: none; }
.ck-empty__guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 6px; }
.ck-empty__guides a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--violet-ink); text-underline-offset: 4px; }
.ck-closed { margin-bottom: 18px; }
.ck-closed__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───── Pasarela de pago simulada (<dialog> modal) ───── */
dialog.gw {
  width: min(500px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0;
  border-radius: 28px; background: var(--milk); color: var(--graphite); box-shadow: 0 40px 90px -30px rgba(27, 27, 27, .6);
  overflow: auto; overscroll-behavior: contain;
}
dialog.gw::backdrop { background: rgba(27, 27, 27, .46); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.gw[open] { animation: gw-in .42s var(--ease); }
dialog.gw[open]::backdrop { animation: veil .3s ease-out; }
dialog.gw.is-closing { animation: gw-out .26s ease-in forwards; }
dialog.gw.is-closing::backdrop { animation: veil-out .26s ease-in forwards; }
@keyframes gw-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes gw-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
.gw__panel { display: grid; }
.gw__head {
  position: relative; padding: 22px 64px 20px 22px; color: #fff;
  background: radial-gradient(60% 120% at 0% 0%, rgba(255, 117, 183, .45), transparent 70%), linear-gradient(120deg, #5F41E6, #3858DA);
}
.gw__head :focus-visible { outline-color: #fff; }
.gw__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.gw__spark { width: 11px; height: 11px; fill: #fff; }
.gw__title { margin-top: 10px; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.gw__close { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.gw__close:hover { background: rgba(255, 255, 255, .26); border-color: #fff; color: #fff; }
.gw__close[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.gw__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.gw__facts > div { min-width: 0; }
.gw__facts > div:first-child { grid-column: 1 / -1; }
.gw__facts > div:first-child dd { white-space: nowrap; overflow-wrap: normal; }
.gw__facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gw__facts dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gw__body { display: grid; gap: 14px; padding: 18px 22px 24px; }
.gw__how { padding: 14px 16px; border-radius: 16px; background: var(--tint); font-size: 15px; line-height: 1.5; }
.gw__how-title { margin-bottom: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-ink); }
.gw__hold { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--muted); }
.gw__hold .i { width: 17px; height: 17px; margin-top: 1px; }
.gw__actions { display: grid; gap: 10px; }
.gw__actions .btn { min-height: 52px; }
.gw [data-sim][aria-disabled="true"] { opacity: .55; cursor: progress; transform: none; }
.gw__wait { display: grid; justify-items: center; gap: 12px; padding: 30px 0 24px; text-align: center; color: #3A3746; font-weight: 650; outline: none; }
.gw__spinner .spark { width: 38px; height: 38px; animation: spin-soft 1.4s var(--ease) infinite; }
.gw__result { display: grid; justify-items: center; gap: 6px; padding: 6px 0 4px; text-align: center; }
.gw__result-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 4px; }
.gw__result-icon .i { width: 26px; height: 26px; stroke-width: 2.6; }
.gw__result--ok .gw__result-icon { background: var(--grad); color: #fff; animation: pop .5s var(--ease); box-shadow: 0 0 0 8px rgba(118, 87, 255, .14); }
.gw__result--fail .gw__result-icon { background: var(--ck-err-bg); color: var(--ck-err); }
.gw__result--info .gw__result-icon { background: var(--ck-warn-bg); color: var(--warn); }
.gw__result-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; outline: none; }
.gw__result-title span { font-size: .8em; font-weight: 600; color: var(--muted); }
.gw__result-note { font-size: 13.5px; color: var(--muted); }

/* ───── Pago con Stripe en la página (web/shop/pay-stripe.js) ─────
   Panel fijo, no <dialog>: la ventana de 3D Secure de Stripe va al final de <body> con un z-index máximo y tiene que quedar
   encima. El fondo de la página queda inerte (atributo inert) mientras está abierto. */
.sp { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 12px; }
.sp[hidden] { display: none; }
.sp__veil { position: absolute; inset: 0; background: rgba(27, 27, 27, .46); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: veil .3s ease-out; }
.sp__panel {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  border-radius: 28px; background: var(--milk); color: var(--graphite); box-shadow: 0 40px 90px -30px rgba(27, 27, 27, .6);
  outline: none; animation: gw-in .42s var(--ease);
}
.sp.is-closing .sp__panel { animation: gw-out .24s ease-in forwards; }
.sp.is-closing .sp__veil { animation: veil-out .24s ease-in forwards; }
.sp__head {
  position: relative; padding: 22px 64px 20px 22px; color: #fff;
  background: radial-gradient(60% 120% at 0% 0%, rgba(255, 117, 183, .45), transparent 70%), linear-gradient(120deg, #5F41E6, #3858DA);
}
.sp__head :focus-visible { outline-color: #fff; }
.sp__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.sp__tag .i { width: 12px; height: 12px; stroke-width: 2.4; }
.sp__title { margin-top: 10px; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.sp__close { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.sp__close:hover { background: rgba(255, 255, 255, .26); border-color: #fff; color: #fff; }
.sp__close[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.sp__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.sp__facts > div { min-width: 0; }
.sp__facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sp__facts dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp__body { padding: 18px 22px 24px; }
.sp__body > .gw__actions { margin-top: 14px; }
.sp__form { display: grid; gap: 16px; }
.sp__test { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--tint); font-size: 14px; line-height: 1.45; }
.sp__test strong { font-weight: 800; color: var(--violet-ink); }
.sp__spark { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.sp__element { min-height: 210px; }
.sp__loading { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 210px; color: #3A3746; font-weight: 650; text-align: center; }
.sp__spinner .spark { width: 34px; height: 34px; animation: spin-soft 1.4s var(--ease) infinite; }
.sp__error { padding: 12px 14px; border-radius: 14px; background: var(--ck-err-bg); color: var(--ck-err-ink); font-size: 14.5px; font-weight: 650; line-height: 1.45; }
.sp__pay { min-height: 56px; font-size: 17px; }
.sp__pay .i { width: 18px; height: 18px; }
.sp__pay:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.sp__pay[aria-busy="true"] { cursor: progress; }
.sp__hold { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sp__hold .i { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.sp__secure { font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .sp { place-items: end stretch; padding: 0; }
  .sp__panel { width: 100%; max-height: 94dvh; border-radius: 26px 26px 0 0; }
}

/* ───── Pedido: confirmación y estado ───── */
.od { padding-bottom: 64px; }
.od-hero {
  position: relative; overflow: hidden; isolation: isolate; margin-bottom: 26px; color: var(--milk);
  background: radial-gradient(45% 70% at 6% 0%, rgba(255, 117, 183, .42), transparent 70%), linear-gradient(120deg, #5F41E6, #3858DA);
  border-radius: 0 0 var(--round) var(--round);
}
.od-hero :focus-visible { outline-color: var(--milk); }
.od-hero__in { display: grid; justify-items: center; gap: 10px; padding-block: 40px 52px; text-align: center; }
.od-hero__mark { display: grid; place-items: center; width: 52px; height: 52px; }
.od-hero__mark svg { width: 100%; height: 100%; fill: #fff; animation: od-pop .9s var(--ease) both; }
.od-hero__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--milk); }
.od-hero__title { max-width: 17ch; font-size: clamp(32px, 6.2vw, 58px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; outline: none; }
.od-hero__tspark { display: inline-block; width: .5em; height: .5em; fill: #fff; vertical-align: .16em; }
.od-hero__text { max-width: 54ch; font-size: 17px; color: var(--milk); }
.od-hero__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.od-hero__bubble { position: absolute; display: block; max-width: none; height: auto; aspect-ratio: 1; overflow: visible; }
.od-hero__bubble--1 { width: clamp(120px, 19vw, 260px); left: -5%; bottom: -12%; animation: od-float 4.4s var(--ease) both; }
.od-hero__bubble--2 { width: clamp(80px, 12vw, 170px); right: 3%; top: 6%; animation: od-float 3.8s var(--ease) .25s both; }
.od-hero__bubble--3 { width: clamp(44px, 6vw, 86px); right: 16%; bottom: 8%; animation: od-float 3.4s var(--ease) .5s both; }
.od-hero__spark { position: absolute; display: block; fill: #fff; opacity: .9; animation: od-twinkle 1.5s ease-in-out .4s 2; }
.od-hero__spark--1 { width: 20px; left: 22%; bottom: 20%; }
.od-hero__spark--2 { width: 15px; right: 24%; top: 34%; animation-delay: .9s; }
.od-hero__spark--3 { width: 13px; left: 9%; top: 30%; animation-delay: 1.3s; }
/* Todo se para antes de 5 s (WCAG 2.2.2) y la composición final es la quieta. */
@keyframes od-float { from { opacity: 0; transform: translateY(26px) scale(.9); } }
@keyframes od-twinkle { 50% { opacity: .3; transform: scale(.55); } }
@keyframes od-pop { from { opacity: 0; transform: scale(.4) rotate(-30deg); } }

.od-head { padding-top: 22px; margin-bottom: 18px; }
.od-head__title { margin-top: 8px; font-size: clamp(30px, 5vw, 46px); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; outline: none; }
.od-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.od-status {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--tint);
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--violet-ink); white-space: nowrap;
}
.od-status--pendiente_pago { background: var(--ck-warn-bg); color: #7A3D00; }
.od-status--enviado { background: #E8F0FF; color: #1F49B8; }
.od-status--entregado { background: var(--ck-ok-bg); color: #155D38; }
.od-status--cancelado, .od-status--reembolsado { background: #EFEDF3; color: #4A4757; }
.od-tag { padding: 3px 10px; border: 1px solid rgba(27, 27, 27, .2); border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #4A4757; }
.od-muted { font-weight: 500; color: var(--muted); }
.od-mailnote, .od-hint {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--tint); font-size: 14.5px; line-height: 1.5; color: #3A3746;
}
.od-mailnote .i, .od-hint .i { width: 18px; height: 18px; margin-top: 2px; color: var(--violet-ink); }
.od-email { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.od-email summary {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; border-radius: 18px;
  font-weight: 750; cursor: pointer; list-style: none;
}
.od-email summary::-webkit-details-marker { display: none; }
.od-email summary::before { content: ""; width: 8px; height: 8px; flex: none; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); transition: transform .2s; }
.od-email[open] summary::before { transform: rotate(45deg); }
.od-email__body { padding: 0 18px 18px; }
.od-email__subject { margin-bottom: 8px; font-weight: 700; overflow-wrap: anywhere; }
.od-email__scroll { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #FAF9FC; }
.od-email__text { margin: 0; padding: 16px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #2A2833; white-space: pre-wrap; overflow-wrap: anywhere; }

.od__grid { display: grid; gap: 16px; align-items: start; }
.od__main, .od__side { display: grid; gap: 16px; min-width: 0; }
.od-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.od-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.od-card__row { margin-top: 8px; font-size: 14.5px; }

/* Seguimiento: vertical en móvil, horizontal desde 700 px */
.od-flow { display: grid; }
.od-flow__step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 46px; }
.od-flow__step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: -14px; width: 2px; border-radius: 2px; background: rgba(27, 27, 27, .12); }
.od-flow__step.is-linked:not(:last-child)::before { background: linear-gradient(var(--violet), var(--blue)); }
.od-flow__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #B9B6C6; background: #fff; color: var(--milk);
}
.od-flow__dot .i { width: 15px; height: 15px; stroke-width: 3; }
.od-flow__step.is-done .od-flow__dot { background: var(--graphite); border-color: var(--graphite); }
.od-flow__step.is-current .od-flow__dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(118, 87, 255, .16); }
.od-flow__label { font-weight: 750; line-height: 1.25; }
.od-flow__sub { display: block; font-size: 12.5px; font-weight: 650; color: #7A3D00; }
.od-flow__step:not(.is-done):not(.is-current) .od-flow__label { font-weight: 600; color: var(--muted); }
.od-flow__date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-final { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #F4F3F7; }
.od-final--reembolsado { background: #EEF4FF; }
.od-final__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: #4A4757; }
.od-final__icon .i { width: 18px; height: 18px; }
.od-final__title { font-weight: 800; }
.od-final__note, .od-final__date { font-size: 13px; color: var(--muted); }

.od-lines { border-top: 1px solid var(--line); }
.od-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.od-line__media { display: grid; place-items: center; width: 64px; height: 74px; overflow: hidden; padding: 6px 4px 3px; border-radius: 14px; }
.od-line__media .bottle, .od-line__media .art, .od-line__media .pack { width: auto; height: 62px; max-width: 100%; }
.od-line__media .pmedia__img { width: 100%; height: 100%; object-fit: cover; }
.od-line__media > .spark { width: 22px; height: 22px; }
.od-line__info { display: grid; gap: 2px; min-width: 0; }
.od-line__brand { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-ink); }
.od-line__name { font-size: 15.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.od-line__name a { text-decoration: none; }
.od-line__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.od-line__meta { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.od-line__total { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-totals { display: grid; gap: 8px; margin-top: 14px; }
.od-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.od-totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-totals__total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.od-totals__total dt { font-size: 17px; font-weight: 800; }
.od-totals__total dd { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.od-totals__vat { font-size: 13px; color: var(--muted); text-align: right; }
.od-paymethod { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(27, 27, 27, .16); font-size: 14.5px; }

.od-addr { line-height: 1.6; overflow-wrap: anywhere; }
.od-facts { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.od-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.od-facts dd { margin: 1px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.od-nowrap { white-space: nowrap; }
.od-track { display: grid; gap: 2px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: 14.5px; }
.od-track__n { font-weight: 750; letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.od-track a { font-weight: 700; color: var(--violet-ink); text-underline-offset: 3px; }
.od-gift__msg { margin: 10px 0; padding: 12px 14px; border-left: 3px solid var(--pink); border-radius: 0 12px 12px 0; background: #FFF2F8; font-style: italic; overflow-wrap: anywhere; }
.od-gift .od-card__title .spark { width: 18px; height: 18px; }
.od-save__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.od-save__ok { display: none; }
.od-save .is-done .od-save__ok { display: block; }
.od-save__fallback { display: grid; gap: 6px; margin-top: 12px; }
.od-history .od-card__title { margin-bottom: 12px; }
.od-events { display: grid; gap: 12px; }
.od-events__item { padding-left: 14px; border-left: 2px solid rgba(118, 87, 255, .3); }
.od-events__item--pago { border-left-color: rgba(154, 77, 0, .45); }
.od-events__item--desistimiento { border-left-color: var(--pink); }
.od-events__title { font-weight: 750; }
.od-events__msg { font-size: 14px; color: #3A3746; overflow-wrap: anywhere; }
.od-events__date { font-size: 12.5px; color: var(--muted); }
.od > .wrap > .od-history { margin-top: 16px; }

.od-pending { margin-bottom: 16px; padding: 18px 20px; border-radius: 24px; background: var(--ck-warn-bg); border: 1px solid rgba(154, 77, 0, .25); color: var(--ck-warn-ink); }
.od-pending__title { margin-bottom: 4px; font-size: 19px; font-weight: 800; color: #4A2800; }
.od-pending .ck-opts { margin-top: 14px; }
.od-pending .ck-opt { min-height: 54px; }
.od-pending .ck-sim { margin-top: 12px; background: rgba(255, 255, 255, .6); }
.od-pending__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.od-withdraw { margin-top: 24px; padding: 22px 20px; border-radius: 24px; background: linear-gradient(160deg, #F7F4FF, #FFF6FA); border: 1px solid rgba(118, 87, 255, .2); }
.od-withdraw__title { margin-bottom: 8px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.od-withdraw__hint { margin: 10px 0 16px; font-size: 13.5px; line-height: 1.5; color: #3A3746; }
.od-withdraw__hint a { font-weight: 700; color: var(--violet-ink); text-underline-offset: 3px; }
.od-withdraw--off { background: #FAF9FC; }
.od-withdraw--off a { font-weight: 700; color: var(--violet-ink); }
.od-wform { display: grid; gap: 16px; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.od-wform__lines { gap: 10px; }
.od-wform__note { font-size: 13px; color: var(--muted); }
.od-wform .btn[type="submit"] { justify-self: start; }
.od-ack { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid rgba(28, 122, 74, .25); border-radius: 18px; background: var(--ck-ok-bg); color: var(--ck-ok-ink); outline: none; }
.od-ack:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.od-ack__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; }
.od-ack__icon .i { width: 18px; height: 18px; stroke-width: 2.8; }
.od-ack__title { margin-bottom: 4px; font-weight: 800; }
.od-ack__lines { margin-top: 6px; padding-left: 18px; list-style: disc; }
.od-ack__note { margin-top: 8px; font-size: 13px; }
.od-help { margin-top: 26px; font-size: 14px; color: var(--muted); text-align: center; }
.od-help a { color: var(--violet-ink); font-weight: 700; text-underline-offset: 3px; }

/* ───── Consulta del pedido (/pedido) ───── */
.lk { padding: 18px 0 64px; background: linear-gradient(180deg, rgba(244, 241, 255, .75), rgba(255, 253, 248, 0) 380px); }
.lk__head { max-width: 760px; }
.lk-form { display: grid; gap: 16px; max-width: 760px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.lk-form__btn { justify-self: start; }
/* Solo la .wrap de la consulta (hija directa): la vista del pedido que se pinta dentro de #lk-result trae su propia .wrap,
   que no puede heredar esta rejilla (en escritorio la metía en la columna de 360 px). */
.lk > .wrap { display: grid; gap: 18px; align-items: start; }
.lk-help { max-width: 760px; padding: 20px; border-radius: 24px; background: linear-gradient(160deg, #F7F4FF, #EEF6FF); border: 1px solid rgba(118, 87, 255, .18); }
.lk-help__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.lk-help__list { display: grid; gap: 8px; margin-top: 10px; padding-left: 18px; list-style: disc; font-size: 14.5px; line-height: 1.5; color: #3A3746; }
.lk-help__links { margin-top: 12px; font-size: 14px; color: var(--muted); }
.lk-help__links a { font-weight: 700; color: var(--violet-ink); text-underline-offset: 3px; }
.lk-result { margin-top: 12px; }
.lk-result:empty { display: none; }
/* La vista del pedido dentro de la consulta ya está en el margen de la página: alineada con el formulario de arriba. */
.lk-result .od { padding-bottom: 0; }
.lk-result .od > .wrap { padding-inline: 0; }
.lk-result .od-head { padding-top: 0; }

/* ───── Tableta ───── */
@media (max-width: 599.98px) {
  /* En móvil, las burbujas del héroe se quedan en los bordes: el texto va limpio */
  .od-hero__bubble--1 { left: -64px; bottom: -64px; }
  .od-hero__bubble--2 { right: -28px; top: -24px; }
  .od-hero__bubble--3 { right: 6px; bottom: -20px; }
  .od-hero__spark--1, .od-hero__spark--2 { display: none; }
}
@media (min-width: 600px) {
  .gw__facts { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; }
  .gw__facts > div:first-child { grid-column: auto; }
  .ck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-field--wide { grid-column: 1 / -1; }
  .ck-progress__step { font-size: 13.5px; }
  .ck-opts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ck-opts--row legend { grid-column: 1 / -1; }
  .ck-opts--row .ck-opt { grid-template-areas: "radio name"; grid-template-columns: auto minmax(0, 1fr); }
  .ck-step__head { padding: 18px 22px; }
  .ck-step__body { padding: 2px 22px 24px; }
  .ck-step__recap { padding: 0 22px 20px 68px; }
  .od-card, .lk-form { padding: 24px; }
  .od-withdraw { padding: 28px; }
}
@media (min-width: 700px) {
  .od-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .od-flow__step { grid-template-columns: none; justify-items: center; align-content: start; gap: 6px; text-align: center; }
  .od-flow__step:not(:last-child)::before { left: calc(50% + 19px); right: calc(-50% + 19px); top: 14px; bottom: auto; width: auto; height: 2px; }
  .od-flow__date { white-space: normal; }
}

/* ───── Escritorio: resumen fijo a la derecha ───── */
@media (min-width: 1000px) {
  .ck { padding-top: 26px; }
  .ck__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
  .ck__main { grid-column: 1; grid-row: 1; }
  .ck-sum { grid-column: 2; grid-row: 1; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .ck-sum__toggle { display: none; }
  .ck-sum__body, .ck-sum:not(.is-open):not(.ck-sum--static) .ck-sum__body { display: block; padding: 22px; }
  .ck__grid--closed .ck-sum { position: static; max-height: none; }
  .od__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .od-hero__in { padding-block: 52px 64px; }
  .lk > .wrap { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 24px; }
  .lk__head, .lk-result { grid-column: 1 / -1; }
  .lk-form { max-width: none; }
}

/* ───── Contraste alto (forced-colors): estados con bordes del sistema ───── */
@media (forced-colors: active) {
  .ck-opt:has(input:checked), .ck-step.is-open, .ck-progress__step.is-current { outline: 2px solid Highlight; outline-offset: 2px; }
  .ck-progress__step.is-done, .ck-progress__step.is-current { border-top-color: Highlight; border-image: none; }
  .ck-step__n, .ck-progress__n, .od-flow__dot { border: 2px solid CanvasText; }
  .ck-step.is-open .ck-step__n, .od-flow__step.is-current .od-flow__dot { border-color: Highlight; }
  .ck-errors, .ck-pending, .ck-paymsg, .ck-flash, .od-ack, .od-final, .od-pending, .ck-final, .gw__how { border: 1px solid CanvasText; }
  .ck-qty__btn[aria-disabled="true"] { color: GrayText; }
  mark.ck-ph { forced-color-adjust: none; background: Mark; color: MarkText; }
}

/* ───── Impresión de la confirmación (/pedido/<n>): solo el pedido, sin la tienda alrededor ───── */
@media print {
  @page { margin: 14mm; }
  body.shop { background: #fff; }
  .shop-header, .shop-footer, .skip, .noscript, #cart-drawer, dialog.gw, #shop-live,
  .od-hero__art, .od-hero__mark, .od-email, .od-save, .od-pending__actions, .od-pending .ck-opts, .od-pending .ck-sim,
  .od-withdraw__open, .od-wform, .od-help, .ck-flash, .lk-form, .lk__head, .lk-help { display: none !important; }
  .preview-note { background: none !important; border: 1px solid #777 !important; }
  .preview-note__tag { border: 1px solid #000; background: none !important; color: #000 !important; }
  .od-hero { margin-bottom: 14px; border-radius: 0; background: none !important; border-bottom: 2px solid #000; }
  .od-hero, .od-hero * { color: #000 !important; }
  .od-hero__in { justify-items: start; padding-block: 0 12px; text-align: left; }
  .od-hero__title { max-width: none; font-size: 26px; }
  .od-hero__tspark { fill: #000; }
  .od-mailnote, .od-hint { background: none; border: 1px solid #999; }
  .od__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .od__main, .od__side { gap: 12px; }
  .od__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .od-card, .od-withdraw, .od-pending, .od-final, .od-ack { break-inside: avoid; border: 1px solid #999 !important; box-shadow: none !important; background: #fff !important; }
  .od-card { padding: 14px; border-radius: 10px; }
  .od-withdraw { padding: 14px; border-radius: 10px; }
  .od-flow__step.is-current .od-flow__dot, .od-flow__step.is-done .od-flow__dot { background: #000 !important; border-color: #000 !important; box-shadow: none; }
  .od-status { border: 1px solid #000; background: none !important; color: #000 !important; }
  .od a { color: #000; text-decoration: none; }
  .od-line__media { display: none; }
  .od-line { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; }
  .od-track { background: none; border: 1px solid #bbb; }
  * { animation: none !important; transition: none !important; }
}
