/* Páginas de compra, pedido y descarga (se apoyan en style.css) */
body.pg { min-height: 100vh; }
.pg-top { border-bottom: 1px solid var(--line); }
.pg-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.pg-main { width: min(100% - 32px, 560px); margin: 0 auto; padding: 40px 0 72px; }
.pg-main h1 { font-family: var(--f-display); font-weight: var(--d-weight); font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; letter-spacing: var(--d-track); }
.pg-main .lead { color: var(--muted); margin-top: 8px; }
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 20px; }
.opciones { display: grid; gap: 10px; margin-top: 20px; }
.opcion { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opcion input { accent-color: var(--accent); }
.opcion .pr { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.opcion .pr s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.campo { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.campo input[type=text], .campo input[type=email], .campo input[type=tel] { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.campo input:focus { border-color: var(--accent); outline: none; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; }
.chk input { margin-top: 4px; accent-color: var(--accent); }
.aviso { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.aviso.err { border: 1px solid #e3b4a8; color: #9b2c1b; }
.monto { font-variant-numeric: lining-nums tabular-nums; font-family: var(--f-body); font-weight: 600; letter-spacing: -.02em; font-size: 2.5rem; line-height: 1; margin-top: 6px; }
.estado { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.estado.ok { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 220px; margin: 16px auto 0; }
.qr img { width: 100%; height: auto; }
.pre { white-space: pre-line; margin-top: 12px; font-size: 14px; }
.btn[disabled], .btn.off { opacity: .45; cursor: not-allowed; pointer-events: none; }
.pg-main .btn { width: 100%; margin-top: 18px; }

/* Tarjetas de «Pedir instalación» */
.ops { display: grid; gap: 10px; }
.op { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; }
.op input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.op:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.op:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.op-t { font-weight: 600; }
.op-d { grid-column: 1; font-size: 14px; color: var(--muted); }
.op-p { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
/* Línea de tiempos del pedido */
.tiempos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; counter-reset: t; }
.tiempos li { counter-increment: t; font-size: 13px; color: var(--muted); padding: 10px 10px 10px 34px; position: relative; border: 1px solid var(--line); border-radius: 12px; line-height: 1.3; }
.tiempos li::before { content: counter(t); position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.tiempos li.on { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.tiempos li.on::before { background: var(--accent); color: #fff; }
@media (max-width: 480px) { .tiempos { grid-template-columns: minmax(0, 1fr); } }


/* Pedido y compra simples: un solo foco */
.pg-main { padding-top: 24px; }
.tiempos li.done { color: var(--ink); }
.tiempos li.done::before { background: var(--accent-soft); color: var(--accent); content: "✓"; }
.tiempos { margin-bottom: 8px; }
@media (max-width: 480px) { .tiempos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .tiempos li { padding: 34px 6px 8px; text-align: center; font-size: 12px; } .tiempos li::before { left: 50%; top: 8px; transform: translateX(-50%); } }
.tarjeta.foco { text-align: center; }
.tarjeta.foco .monto { font-size: clamp(2.5rem, 12vw, 3.25rem); }
.ref-l { color: var(--muted); font-size: 14px; margin-top: 6px; }
.qr.qr-g { width: min(100%, 320px); padding: 14px; margin-top: 18px; border: 1px solid var(--line); }
.escanea { font-weight: 600; margin-top: 12px; }
.pg-main .btn.btn-sm { width: auto; margin-top: 10px; }
.pasos { text-align: left; margin: 18px 0 0; padding-left: 22px; font-size: 15px; color: var(--ink); }
.pasos li { margin-top: 6px; }
.comp { margin-top: 12px; text-align: left; font-size: 14px; color: var(--muted); }
.comp summary { cursor: pointer; text-align: center; }
.gracias { font-family: var(--f-display); font-weight: var(--d-weight); font-size: 1.6rem; line-height: 1.2; }
.calma { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.linkbtn { background: none; border: 0; padding: 4px; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
#monto::after { content: " COP"; font-size: .38em; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Comprobante: zona de carga */
.zona { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; padding: 22px 16px; min-height: 120px; justify-content: center; text-align: center; border: 2px dashed var(--accent-line); border-radius: 14px; background: var(--accent-soft); color: var(--accent); cursor: pointer; transition: background .15s, border-color .15s; }
.zona:hover, .zona.arrastra { border-color: var(--accent); background: #fff; }
.zona:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.zona.off { opacity: .5; pointer-events: none; }
.zona-t { font-weight: 600; color: var(--ink); font-size: 15px; }
.zona-d { font-size: 13px; color: var(--muted); }
.zona input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.elegido { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: left; }
.elegido img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.pdf-i { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.el-info { flex: 1; min-width: 0; display: grid; }
.el-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink); }
.el-info span { font-size: 13px; color: var(--muted); }
.pg-main .elegido .btn { margin-top: 0; min-height: 44px; }
.zona[hidden], .elegido[hidden], .elegido [hidden] { display: none !important; }
