/* Checkout propio — estructura del checkout de una página del mentor (MasteryPay,
   13-oct-2026): fondo gris claro, tarjetas blancas numeradas, ofertas en lista,
   ciudad con buscador, botón fijo "Faltan N datos" y resumen a la derecha en
   computadora. Mobile first. Colores de marca por producto desde `marca`. */

:root {
  --cta: #FF6633;          /* botón principal */
  --cta-texto: #FFFFFF;
  --primario: #FF6633;     /* selección, números de sección, bordes activos */
  --acento: #71445D;
  --suave: #FFEDD6;
  --fondo: #F3F4F6;
  --tarjeta: #FFFFFF;
  --campo: #F9FAFB;
  --texto: #111827;
  --texto-2: #6B7280;
  --borde: #E5E7EB;
  --ok: #16A34A;
  --error: #DC2626;
  --wa: #25D366;
  --radio: 14px;
  --tinte: color-mix(in srgb, var(--primario) 7%, #fff);
  /* Espaciado (marca.espaciado, ajustable en el editor): entre secciones,
     relleno de cada tarjeta y entre campos/opciones. */
  --ck-secciones: 12px;
  --ck-relleno: 16px;
  --ck-campos: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.ck-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ck { min-height: 100vh; display: flex; flex-direction: column; }

/* ─── Barra, banner y cabecera ─────────────────────────────────────────────── */
.ck-barra {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px;
  padding: 8px 12px; font-size: 12.5px; color: var(--texto-2); background: var(--tarjeta);
}
.ck-banner {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; font-size: 13px; font-weight: 600; background: #111827; color: #fff;
}
.ck-banner__reloj { padding: 2px 8px; border-radius: 6px; background: var(--cta); font-variant-numeric: tabular-nums; }
.ck-cabecera { display: flex; align-items: center; justify-content: center; padding: 14px 16px 6px; background: var(--tarjeta); border-bottom: 1px solid var(--borde); padding-bottom: 14px; }
.ck-logo { max-height: 36px; max-width: 190px; object-fit: contain; }
.ck-marca { margin: 0; font-weight: 800; font-size: 19px; letter-spacing: .02em; color: var(--texto); }

/* ─── Cuerpo ───────────────────────────────────────────────────────────────── */
.ck-cuerpo { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 14px 14px; display: grid; gap: var(--ck-secciones); align-content: start; }
.ck-form { display: grid; gap: var(--ck-secciones); }
.ck-pasos { display: flex; flex-direction: column; gap: var(--ck-secciones); }

.ck-tarjeta {
  background: var(--tarjeta); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: var(--ck-relleno);
}
.ck-aviso { text-align: center; display: grid; gap: 10px; }
.ck-aviso p { margin: 0; }

.ck-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 calc(var(--ck-campos) + 4px); font-size: 16px; font-weight: 700; }
.ck-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--primario); color: #fff; font-size: 12.5px; font-weight: 700;
}
.ck-titulo--resumen { margin-bottom: 12px; font-size: 15px; }

/* ─── Ofertas ──────────────────────────────────────────────────────────────── */
.ck-ofertas { border: 0; margin: 0; padding: 0; display: grid; gap: var(--ck-campos); }
.ck-of {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 12px;
  border: 1.5px solid var(--borde); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.ck-of:has(input:checked) { border-color: var(--primario); background: var(--tinte); box-shadow: 0 0 0 1px var(--primario); }
.ck-of input { accent-color: var(--primario); width: 20px; height: 20px; margin: 0; flex: none; }
.ck-of__img { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; flex: none; background: #fff; }
.ck-of__info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ck-of__titulo { font-weight: 700; font-size: 15px; line-height: 1.25; }
.ck-of__sub { font-size: 12.5px; color: var(--texto-2); }
.ck-of__ahorro { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #B45309; background: #FEF3C7; }
.ck-of__precio { text-align: right; display: grid; flex: none; }
.ck-of__precio b { font-size: 16px; font-weight: 700; }
.ck-of__precio s { font-size: 12px; color: #9CA3AF; }
.ck-of__cinta {
  position: absolute; top: -10px; right: 12px; padding: 2px 9px; border-radius: 999px;
  background: var(--primario); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
}

/* Regalos de la oferta elegida (versión compacta) */
.ck-regalos { margin-top: var(--ck-campos); padding: 10px; border-radius: 12px; border: 1px dashed var(--borde); background: var(--campo); display: grid; gap: 10px; }
.ck-regalos__cabeza { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; }
.ck-regalos__cuenta { color: var(--primario); }
.ck-regalos__lista { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.ck-regalo { display: grid; justify-items: center; gap: 4px; text-align: center; }
.ck-regalo__img { position: relative; width: 100%; max-width: 72px; aspect-ratio: 1; border-radius: 10px; background: #fff; border: 1px solid var(--borde); display: grid; place-items: center; overflow: hidden; }
.ck-regalo__img img { width: 100%; height: 100%; object-fit: cover; }
.ck-regalo__img svg { width: 44%; height: 44%; fill: none; stroke: var(--primario); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ck-regalo__nombre { font-size: 10.5px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.ck-regalo__estado { font-size: 9px; font-weight: 800; letter-spacing: .04em; color: var(--ok); }
.ck-regalo--bloqueado .ck-regalo__img { filter: grayscale(1); opacity: .45; }
.ck-regalo--bloqueado .ck-regalo__estado { color: #9CA3AF; }
.ck-regalo[role="button"] { cursor: pointer; }
/* Bloqueado pero alcanzable: la etiqueta dice cómo ("CON +Q100") en el color de la marca. */
.ck-regalo--alcanzable .ck-regalo__img { opacity: .7; }
.ck-regalo--alcanzable .ck-regalo__estado { color: var(--primario); }
/* Regalo que trae el upsell: etiqueta con miniatura, distinta de la frase verde. */
.ck-extra__regalo { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 8px 2px 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--primario) 12%, #fff); color: var(--texto); font-size: 11px; font-weight: 700; max-width: 100%; white-space: nowrap; }
.ck-extra__regalo span { overflow: hidden; text-overflow: ellipsis; }
.ck-extra__regalo img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; }
@keyframes ck-destello { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primario) 45%, transparent); } }
.ck-resaltar { animation: ck-destello 1.4s ease-out; }
@media (prefers-reduced-motion: reduce) { .ck-resaltar { animation: none; outline: 3px solid var(--primario); outline-offset: 2px; } }

/* ─── Opciones (pago y envío) ──────────────────────────────────────────────── */
.ck-opciones { display: grid; gap: var(--ck-campos); }
.ck-opcion {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 12px;
  border: 1.5px solid var(--borde); border-radius: 12px; background: #fff; cursor: pointer;
}
.ck-opcion:has(input:checked) { border-color: var(--primario); background: var(--tinte); box-shadow: 0 0 0 1px var(--primario); }
.ck-opcion input { accent-color: var(--primario); width: 20px; height: 20px; margin: 0; flex: none; }
.ck-opcion--fija { cursor: default; border-color: var(--primario); background: var(--tinte); }
.ck-opcion__texto { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ck-opcion__texto strong { font-size: 14.5px; }
.ck-opcion__texto small { color: var(--texto-2); font-size: 12.5px; }
.ck-opcion__precio { flex: none; font-size: 15px; font-weight: 700; color: var(--primario); text-align: right; }
.ck-gratis { color: var(--ok) !important; }

/* Pago con tarjeta (Stripe): opción con ahorro y el formulario debajo. */
.ck-opcion__lado { flex: none; display: grid; justify-items: end; gap: 2px; }
.ck-ahorro { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); background: #ECFDF5; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ck-recomendado { display: inline-block; vertical-align: 1px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--primario); border-radius: 999px; padding: 1px 7px; }
.ck-tarjetas { display: flex; gap: 4px; margin-top: 4px; }
.ck-tarjetas i { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: var(--texto-2); border: 1px solid var(--borde); border-radius: 4px; padding: 1px 4px; }
.ck-tarjeta-caja { border: 1.5px solid var(--primario); border-top: 0; border-radius: 0 0 12px 12px; margin-top: -12px; padding: 18px 12px 12px; background: #fff; }
.ck-tarjeta-caja__nota { margin: 10px 0 0; font-size: 11.5px; color: var(--texto-2); }
.ck-tarjeta-caja__demo { margin: 0; padding: 16px; text-align: center; font-size: 13px; color: var(--texto-2); border: 1px dashed var(--borde); border-radius: 10px; }
.ck-opcion--tarjeta:has(input:checked) { border-radius: 12px 12px 0 0; }
.ck-envio__beneficios { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12px; color: var(--texto-2); }
.ck-envio__beneficios li::before { content: "\2713  "; color: var(--ok); font-weight: 700; }

/* Unidad extra (order bump): casilla, como en el checkout del mentor */
.ck-extra {
  position: relative;
  display: flex; align-items: center; gap: 12px; margin: var(--ck-campos) 0 0; padding: 13px 12px;
  border: 1.5px dashed var(--primario); border-radius: 12px; background: #fff; cursor: pointer;
}
/* Compacto (por defecto): una fila delgada que no compite con las ofertas. */
.ck-extra--compacto { gap: 10px; padding: 8px 10px; border-width: 1.5px; border-radius: 10px; background: color-mix(in srgb, var(--primario) 4%, #fff); }
.ck-extra--compacto input { width: 18px; height: 18px; }
.ck-extra--compacto .ck-extra__img { width: 30px; height: 30px; border-radius: 6px; }
.ck-extra--compacto .ck-extra__texto strong { font-size: 13px; line-height: 1.25; }
.ck-extra--compacto .ck-extra__texto small { font-size: 11px; }
.ck-extra--compacto .ck-extra__precio { display: flex; align-items: baseline; gap: 5px; }
.ck-extra--compacto .ck-extra__precio b { font-size: 13.5px; }
.ck-extra--compacto .ck-extra__precio s { font-size: 11px; }
.ck-extra--activo { border-style: solid; background: var(--tinte); }
.ck-extra input { accent-color: var(--primario); width: 20px; height: 20px; margin: 0; flex: none; }
.ck-extra__img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; flex: none; }
.ck-extra__texto { flex: 1; display: grid; gap: 1px; }
.ck-extra__texto strong { font-size: 14px; line-height: 1.3; }
.ck-extra__texto small { color: var(--ok); font-size: 12px; font-weight: 600; }
.ck-extra__texto small:empty { display: none; }
.ck-extra__precio { text-align: right; display: grid; flex: none; }
.ck-extra__precio b { color: var(--primario); font-size: 15px; }
.ck-extra__precio s { font-size: 12px; color: #9CA3AF; }

/* ─── Campos ───────────────────────────────────────────────────────────────── */
.ck-campo { position: relative; display: grid; gap: 6px; margin-bottom: calc(var(--ck-campos) + 4px); font-size: 13.5px; font-weight: 600; }
.ck-campo:last-of-type { margin-bottom: 0; }
.ck-campo > span i, .ck-campo > label i { font-style: normal; color: var(--error); }
.ck-campo em { font-style: normal; font-weight: 400; color: var(--texto-2); }
.ck-campo input:not([type="hidden"]):not([type="checkbox"]), .ck-entrada {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--borde); border-radius: 10px;
  background: var(--campo); color: var(--texto); font: 400 16px Inter, system-ui, sans-serif; /* 16px: iOS no hace zoom */
}
.ck-campo input::placeholder { color: #9CA3AF; }
.ck-campo input:focus { outline: 2px solid var(--primario); outline-offset: 0; border-color: transparent; background: #fff; }
.ck-entrada { display: flex; align-items: center; padding: 0; overflow: hidden; }
.ck-entrada:focus-within { outline: 2px solid var(--primario); border-color: transparent; background: #fff; }
.ck-campo .ck-entrada input { flex: 1; min-width: 0; border: 0 !important; outline: none !important; background: transparent !important; padding-left: 6px; min-height: 46px; }
.ck-entrada__icono { display: grid; place-items: center; padding-left: 12px; color: var(--wa); }
.ck-entrada__icono svg { width: 18px; height: 18px; fill: currentColor; }
.ck-entrada__prefijo { padding-left: 8px; color: var(--texto-2); font-size: 15px; font-weight: 500; }
.ck-campo--mal input:not([type="hidden"]), .ck-campo--mal .ck-entrada { border-color: var(--error); background: #FEF2F2; }
.ck-error { color: var(--error); font-size: 12px; font-weight: 500; }
/* Tocó comprar con este campo vacío: se sacude y destella en rojo. */
@keyframes ck-sacudir { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes ck-rojo { 0% { box-shadow: 0 0 0 0 transparent; } 35% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 30%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ck-campo--sacudir { animation: ck-sacudir .45s ease-in-out; }
.ck-campo--sacudir input:not([type="hidden"]), .ck-campo--sacudir .ck-entrada { animation: ck-rojo 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .ck-campo--sacudir, .ck-campo--sacudir input, .ck-campo--sacudir .ck-entrada { animation: none; } }
.ck-faltan { margin: 0 0 6px; text-align: center; color: var(--error); font-size: 12.5px; font-weight: 600; }
.ck-error:empty { display: none; }
.ck-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Municipio con buscador */
.ck-lugar label { display: block; }
.ck-lugar__lista {
  position: absolute; z-index: 6; top: calc(100% - 4px); left: 0; right: 0; max-height: 264px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--borde); border-radius: 12px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, .14); font-weight: 400;
}
.ck-lugar__lista li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.ck-lugar__lista li small { color: var(--texto-2); font-size: 12.5px; text-align: right; }
.ck-lugar__lista li[aria-selected="true"], .ck-lugar__lista li:hover { background: var(--tinte); }
.ck-lugar__lista .ck-lugar__nada { cursor: default; color: var(--texto-2); font-size: 13.5px; }
.ck-lugar__lista .ck-lugar__nada:hover { background: none; }
.ck-lugar mark { background: none; color: var(--primario); font-weight: 700; }
.ck-promesa { margin: 2px 0 0; color: var(--ok); font-size: 13px; font-weight: 500; }
.ck-promesa b { font-weight: 600; }
.ck-promesa b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }

/* ─── Resumen ──────────────────────────────────────────────────────────────── */
.ck-lateral { display: grid; gap: 12px; align-content: start; }
.ck-resumen__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ck-resumen__items li { display: flex; align-items: center; gap: 12px; }
.ck-resumen__foto { position: relative; width: 52px; height: 52px; flex: none; border-radius: 10px; border: 1px solid var(--borde); background: #fff; }
.ck-resumen__foto img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.ck-resumen__cant { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: rgba(17, 24, 39, .75); color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.ck-resumen__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ck-resumen__txt strong { font-size: 14px; font-weight: 600; }
.ck-resumen__txt small { font-size: 12.5px; color: var(--texto-2); }
.ck-resumen__precio { display: grid; justify-items: end; font-size: 14px; font-weight: 600; }
.ck-resumen__precio s { font-size: 12px; color: #9CA3AF; font-weight: 400; }
.ck-resumen__cuentas { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--borde); display: grid; gap: 6px; font-size: 14px; }
.ck-resumen__cuentas > div { display: flex; justify-content: space-between; gap: 12px; }
.ck-resumen__cuentas dt { color: var(--texto-2); }
.ck-resumen__cuentas dd { margin: 0; font-weight: 500; }
.ck-resumen__gratis dd { color: var(--ok); font-weight: 700; }
.ck-resumen__total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--borde); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ck-resumen__total > div:first-child { display: grid; gap: 1px; }
.ck-resumen__total strong { font-size: 17px; }
.ck-resumen__total small { font-size: 12.5px; color: var(--texto-2); }
.ck-resumen__monto { display: flex; align-items: baseline; gap: 6px; }
.ck-resumen__monto small { font-size: 12px; color: var(--texto-2); }
.ck-resumen__monto b { font-size: 22px; font-weight: 800; }
/* Texto, no bloque: con fondo y bordes redondeados parecía un botón y lo tocaban
   creyendo que era el de comprar (Clarity, 17-oct-2026). */
.ck-resumen__ahorro { margin: 10px 0 0; color: var(--ok); font-size: 13px; font-weight: 600; text-align: center; }

.ck-extra__cinta {
  position: absolute; top: -9px; right: 10px; padding: 1px 8px; border-radius: 999px;
  background: var(--primario); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em;
}
.ck-calificacion { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--texto); }
.ck-calificacion__estrellas { color: #F59E0B; letter-spacing: 1px; font-size: 15px; }
.ck-calificacion small { color: var(--texto-2); }
.ck-sellos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 11.5px; color: var(--texto-2); }
.ck-sellos li { display: grid; gap: 2px; justify-items: center; }
.ck-sellos li > span:first-child { font-size: 18px; }

.ck-garantia { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radio); border: 1px solid var(--borde); background: #fff; }
.ck-garantia svg { width: 42px; height: 42px; flex: none; fill: none; stroke: var(--primario); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ck-garantia span { display: grid; gap: 2px; }
.ck-garantia strong { font-size: 14px; }
.ck-garantia small { font-size: 12.5px; color: var(--texto-2); }

.ck-alerta { padding: 12px 14px; border-radius: 12px; background: #FEF2F2; color: var(--error); font-size: 14px; font-weight: 500; }
.ck-alerta a { color: inherit; }

/* ─── Botón fijo abajo ─────────────────────────────────────────────────────── */
.ck-cierre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
  padding: 10px 14px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--borde);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ck-cierre > * { max-width: 532px; margin-left: auto; margin-right: auto; }
.ck-boton {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 52px;
  padding: 12px 16px; border: 0; border-radius: 12px; font: 700 16px Inter, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; text-align: center;
}
.ck-boton--cta { background: var(--cta); color: var(--cta-texto); box-shadow: 0 6px 16px color-mix(in srgb, var(--cta) 30%, transparent); }
.ck-boton--cta:disabled { opacity: .65; cursor: progress; }
/* Mientras falten datos: botón claro con borde (como "Faltan 6 datos ↓"). */
.ck-boton--faltan { background: #fff; color: var(--primario); border: 2px solid var(--primario); box-shadow: none; }
.ck-boton--wa { background: var(--wa); color: #fff; }
.ck-boton__icono { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ck-seguro { margin: 6px 0 0; text-align: center; font-size: 11.5px; color: var(--texto-2); }

/* ─── Pedido recibido ──────────────────────────────────────────────────────── */
.ck-listo { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 26px 18px 22px; }
.ck-listo h1 { margin: 0; font-size: 24px; }
.ck-listo p { margin: 0; }
.ck-listo__check { width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.ck-listo__sub { color: var(--texto-2); font-size: 14px; margin-top: -8px !important; }
.ck-listo__sub strong { color: var(--texto); }
.ck-listo__auto { font-size: 12px; color: var(--texto-2); }
.ck-listo__resumen { width: 100%; text-align: left; border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; }
.ck-listo__producto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--campo); }
.ck-listo__producto img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; flex: none; }
.ck-listo__producto span { display: grid; }
.ck-listo__producto strong { font-size: 15px; }
.ck-listo__producto small { font-size: 13px; color: var(--texto-2); }
.ck-listo__resumen dl { margin: 0; padding: 4px 14px; }
.ck-listo__resumen dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; }
.ck-listo__resumen dl > div + div { border-top: 1px solid var(--borde); }
.ck-listo__resumen dt { color: var(--texto-2); flex: none; }
.ck-listo__resumen dd { margin: 0; text-align: right; font-weight: 600; }
.ck-listo__resumen dl > div:first-child dd { font-size: 17px; font-weight: 800; }
.ck-listo__pasos { list-style: none; counter-reset: paso; width: 100%; margin: 0; padding: 0; text-align: left; display: grid; gap: 12px; }
.ck-listo__pasos li { counter-increment: paso; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: start; }
.ck-listo__pasos li::before { content: counter(paso); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primario); color: #fff; font-size: 13px; font-weight: 700; }
.ck-listo__pasos li:first-child::before { background: var(--wa); }
.ck-listo__pasos strong { font-size: 14.5px; line-height: 1.3; padding-top: 4px; }
.ck-listo__pasos small { font-size: 13px; color: var(--texto-2); }
.ck-listo .ck-boton--wa { width: 100%; }
.ck[data-estado="listo"] .ck-cuerpo { padding-bottom: 32px; }

.ck-pie { padding: 16px 16px 24px; text-align: center; font-size: 12px; color: var(--texto-2); }
.ck-pie p { margin: 0; }
.ck[data-estado="formulario"] .ck-pie { padding-bottom: 120px; }

/* ─── Computadora: formulario a la izquierda, resumen fijo a la derecha ────── */
@media (min-width: 900px) {
  .ck-cuerpo { max-width: 1040px; padding: 24px 24px 24px; }
  .ck-form { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 24px; align-items: start; }
  .ck-pasos { grid-column: 1; }
  .ck-lateral { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 20px; }
  .ck-alerta { grid-column: 1; }
  .ck-cierre > * { max-width: 600px; }
  .ck[data-estado="listo"] .ck-cuerpo, .ck[data-estado="cargando"] .ck-cuerpo, .ck[data-estado="no-disponible"] .ck-cuerpo { max-width: 560px; }
}

/* ─── Popup dentro de la landing: una columna, sin pie ─────────────────────── */
.ck-popup .ck-pie { display: none; }
.ck-popup .ck { min-height: 0; }
.ck-popup .ck-cabecera { padding-left: 52px; padding-right: 52px; }
.ck-popup .ck-form { grid-template-columns: 1fr; }
.ck-popup .ck-lateral { position: static; grid-column: auto; grid-row: auto; }
.ck-popup .ck-cuerpo { max-width: 560px; }
/* El pie reserva el espacio del botón fijo en la página; el popup no tiene pie. */
.ck-popup .ck-cuerpo { padding-bottom: 120px; }

/* ─── Avisos de compras y vista previa ─────────────────────────────────────── */
.ck-aviso-compra {
  position: fixed; left: 10px; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 7;
  max-width: 260px; display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px;
  border-radius: 999px; background: #fff; border: 1px solid var(--borde);
  box-shadow: 0 6px 18px rgba(17, 24, 39, .14); font-size: 11.5px; line-height: 1.3;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.ck-aviso-compra--visible { opacity: 1; transform: none; }
.ck-aviso-compra__icono { font-size: 15px; width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--campo); }
.ck-aviso-compra__icono img { width: 100%; height: 100%; object-fit: cover; }
.ck-aviso-compra__texto { display: grid; }
.ck-aviso-compra__texto b { font-weight: 600; }
.ck-aviso-compra__texto small { font-size: 10.5px; color: var(--texto-2); }

.ck-vista-previa {
  position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 12px; background: #111827; color: #fff; font-size: 12px;
}
.ck-vista-previa b { color: #FDE68A; }
.ck-vista-previa label { display: flex; align-items: center; gap: 6px; }
.ck-vista-previa select { font: 12px Inter, system-ui, sans-serif; padding: 4px 6px; border-radius: 6px; border: 0; }

@media (prefers-reduced-motion: reduce) { *, .ck-aviso-compra { transition: none !important; } }

/* ─── Cierre por inactividad: "¿Sigues ahí?" (datos intactos) ──────────────── */
.ck-inactivo { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(17, 24, 39, .55); backdrop-filter: blur(3px); }
.ck-inactivo__caja { width: 100%; max-width: 360px; padding: 22px 20px; border-radius: 16px; background: #fff; text-align: center; display: grid; gap: 10px; box-shadow: 0 20px 50px rgba(17, 24, 39, .3); }
.ck-inactivo__caja p { margin: 0; color: var(--texto-2); font-size: 14px; }
.ck-inactivo__titulo { font-size: 19px !important; font-weight: 800; color: var(--texto) !important; }
