/* Reposición de lentes de contacto (reponer.html).
   Solo tokens de styles.css. Celular primero. */

.rp { padding-block: 28px 72px; }
.rp-container { max-width: 720px; }
.rp h1 { font-size: clamp(30px, 4vw, 44px); }
.rp-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.rp-form, .rp-caja, .rp-primera { margin-top: 24px; padding: 20px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rp-form { display: grid; gap: 14px; }
.rp-form h2, .rp-caja h2, .rp-primera h2 { font-size: 21px; }
.rp-form-nota { margin: -8px 0 0; font-size: 14.5px; color: var(--muted); }
.rp-form .field input { font-size: 16px; } /* 16px: el celular no hace zoom al tocar */
.rp-privado { margin: 0; font-size: 13.5px; color: var(--muted); }
.rp-demo { margin: 0; }
.rp-demo[hidden] { display: none; } /* .aviso-demo es flex y le ganaría a [hidden] */

#rpResultado { scroll-margin-top: calc(var(--header-h) + 12px); }
#rpResultado:focus { outline: none; }
.rp-caja-aviso { border-color: var(--alerta); background: var(--alerta-50); }
.rp-caja-aviso p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.5; }
.rp-acciones, .rp-primera-acciones { margin-top: 16px; display: grid; gap: 10px; }

.rp-hola { margin: 0 0 12px; font-weight: 700; color: var(--marca-700); }
.rp-lente { display: grid; gap: 16px; }
.rp-lente img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.rp-lente-caja { margin: 6px 0 0; font-weight: 700; color: var(--ink-2); }
.rp-misma { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ok-50); color: var(--ok); font-weight: 700; font-size: 14.5px; }
.rp-datos { margin: 12px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.rp-datos div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.rp-datos dt { color: var(--muted); }
.rp-datos dd { margin: 0; font-weight: 600; color: var(--ink); }

.rp-pedido { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.rp-cant { display: flex; align-items: center; gap: 14px; }
.rp-cant label { font-weight: 700; font-size: 15px; }
.rp .cant-control { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); }
.rp .cant-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; border-radius: var(--pill); }
.rp .cant-btn:hover:not(:disabled) { background: var(--surface-2); }
.rp .cant-btn:disabled { color: var(--line-strong); cursor: default; }
.rp .cant-control input { width: 40px; height: 44px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.rp .cant-control input::-webkit-outer-spin-button, .rp .cant-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rp-total { margin: 16px 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); }
.rp-total small { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--muted); }
.rp-estado { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.rp-estado:empty { display: none; }
.rp-estado.es-ok { color: var(--ok); }
.rp-estado.es-aviso { color: var(--rojo); }

.rp-notas { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.rp-notas li { padding-left: 14px; border-left: 3px solid var(--marca-100); }
.rp-salir { padding: 0; border: 0; background: none; color: var(--marca-700); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.rp-primera { background: var(--marca-50); border-color: var(--marca-100); }
.rp-primera p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.55; }

@media (min-width: 700px) {
  .rp { padding-block: 44px 88px; }
  .rp-form, .rp-caja, .rp-primera { padding: 28px; }
  .rp-lente { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .rp-acciones, .rp-primera-acciones { grid-template-columns: repeat(2, max-content); }
}
