/* The online order «Su pedido» (Pedido*.dc.html, assets/js/pedido.js). Separate from websuya.css so that
   the order's rules travel with it. Tokens from websuya.css; DESIGN.md §4 «The order page» says what each
   part is for. Limón appears only on the WhatsApp buttons (.ws-btn--wa); the step buttons are ink, because
   they do not open WhatsApp (DESIGN.md §2). A chosen option sits on the neutral grey with an ink edge,
   never on the Limón tint. Pending facts in the contract are coral, as everywhere. */

.wsp-page { padding: 36px 0 clamp(56px, 4rem + 4vw, 112px); }
.wsp-page h1 { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 14px; }
.wsp-intro { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0 0 18px; }
.wsp-muted { color: var(--muted); }
.wsp-mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92rem; }
.wsp-cerrado .ws-btn { margin-top: 8px; }
[hidden] { display: none !important; }

/* Buttons: the step's own action is ink with white text (it is not WhatsApp); a link-like button for small things. */
.wsp-btn { background: var(--fg); color: #fff; border-color: var(--fg); }
.wsp-btn:hover { background: #000; color: #fff; border-color: #000; }
.ws-btn:disabled, .ws-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.ws-btn:disabled:hover { background: inherit; color: inherit; }
.wsp-btn:disabled:hover { background: var(--fg); color: #fff; }
.ws-btn--ghost:disabled:hover { background: transparent; color: var(--fg); }
.wsp-link { background: none; border: 0; padding: 6px 0; margin: 0; font: inherit; font-weight: 700; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.wsp-link:disabled { color: var(--muted); cursor: not-allowed; }
.wsp-link .ws-ico { width: 1.1em; height: 1.1em; }
.wsp-dos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* The order's frame: the step beside the live summary on a wide screen, the total in a bar on a phone. */
.wsp-app { margin-top: 8px; }
.wsp-top { display: grid; gap: 10px; margin-bottom: 18px; }
.wsp-ctx { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.wsp-ctx p { margin: 0; color: var(--muted); font-size: .97rem; }
.wsp-ctx strong { color: var(--fg); }
.wsp-cuerpo { display: grid; gap: 40px; }
.wsp-main { min-width: 0; max-width: 760px; }
.wsp-aside { display: none; }
@media (min-width: 1024px) {
  .wsp-cuerpo { grid-template-columns: minmax(0, 1fr) 340px; }
  /* The summary, and under it the step's button, always in view (Philipp, 7 Nov 2026): on a short screen the
     summary's lines scroll inside the card, never the button off the screen. */
  .wsp-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); align-self: start;
    max-height: calc(100vh - var(--header-h) - 32px); }
  .wsp-aside .wsp-res { min-height: 0; overflow: auto; }
  .wsp-aside__sig { flex: none; width: 100%; }
  .wsp-barra { display: none !important; }
}

/* The progress line: ink for what is done, an ink outline for the step being read, hairlines ahead. */
.wsp-prog ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.wsp-prog li { min-width: 0; }
.wsp-prog button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 2px 0 4px; cursor: pointer; border-radius: 4px; }
.wsp-prog button:disabled { cursor: default; }
.wsp-prog button:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.wsp-prog__bar { display: block; height: 6px; border-radius: 6px; background: var(--line); }
.wsp-prog .is-hecho .wsp-prog__bar { background: var(--fg); }
.wsp-prog .is-actual .wsp-prog__bar { background: #fff; box-shadow: inset 0 0 0 2px var(--fg); }
.wsp-prog__lbl { font-size: .8rem; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsp-prog .is-actual .wsp-prog__lbl { color: var(--fg); font-weight: 700; }
.wsp-prog__m { display: none; margin: 10px 0 0; font-size: .97rem; }
@media (max-width: 1199px) { .wsp-prog__lbl { display: none; } .wsp-prog__m { display: block; } }

/* A step */
.wsp-paso { display: grid; gap: 28px; }
.wsp-paso__h { display: grid; gap: 8px; }
.wsp-paso__n { margin: 0; font-weight: 700; color: var(--muted); }
@media (max-width: 1199px) { .wsp-paso__n--num { display: none; } } /* the progress line says it there */
.wsp-paso__h h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); line-height: 1.1; }
.wsp-paso__h h2:focus, .wsp-grupo h3:focus, [tabindex="-1"]:focus { outline: none; }
.wsp-lead { color: var(--muted); max-width: 62ch; margin: 0; }
.wsp-grupo { display: grid; gap: 14px; align-content: start; }
.wsp-grupo > h3, .wsp-firmar > h3 { font-size: 1.3rem; }
.wsp-grupo h4 { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.wsp-ayuda { color: var(--muted); font-size: .97rem; max-width: 62ch; margin: 0; }
.wsp-ayuda strong { color: var(--fg); }
.wsp-sub { margin: 4px 0 0; font-weight: 700; color: var(--muted); }
.wsp-contador { margin: 0; color: var(--muted); font-size: .97rem; }
.wsp-contador strong { color: var(--fg); }
.wsp-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .wsp-paso { animation: wsp-entra .22s ease-out; } @keyframes wsp-entra { from { transform: translateY(8px); } to { transform: none; } } }

/* Options: a white row with a hairline; chosen, an ink edge on the neutral grey. */
.wsp-opts { display: grid; gap: 10px; }
.wsp-opts--dos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wsp-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 14px 16px; min-height: 56px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.wsp-opt.is-on { border: 2px solid var(--fg); padding: 13px 15px; background: var(--surface-2); }
.wsp-opt.is-off { opacity: .5; cursor: not-allowed; }
.wsp-opt:has(input:focus-visible) { outline: 3px solid var(--fg); outline-offset: 2px; } /* the whole row shows the keyboard's place */
.wsp-opt.is-fijo { cursor: default; }
.wsp-opt input[type="checkbox"], .wsp-opt input[type="radio"] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--fg); cursor: inherit; }
.wsp-opt__t { font-weight: 700; line-height: 1.35; }
.wsp-opt__d { grid-column: 2 / 4; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.wsp-opt__r { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.wsp-opt__p { font-weight: 700; white-space: nowrap; }
.wsp-opt .wsp-link { justify-self: end; }
@media (max-width: 559px) { .wsp-opt { grid-template-columns: auto minmax(0, 1fr); } .wsp-opt__r { grid-column: 2; justify-content: flex-start; } .wsp-opt__d { grid-column: 2; } }

/* Labels: plain words; ink ones for Pro and Recomendado, as Precios marks its recommended package. */
.wsp-tag { display: inline-flex; align-items: center; font-size: .85rem; font-weight: 700; line-height: 1.2; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.wsp-tag--ink { background: var(--fg); border-color: var(--fg); color: #fff; }
.wsp-ficha { margin: 0; font-weight: 700; }

/* Fields */
.wsp-campos { display: grid; gap: 16px; }
.wsp-campos--dos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.wsp-campo { display: grid; gap: 6px; min-width: 0; }
.wsp-campo > label, .wsp-etq { font-weight: 700; }
.wsp-app input[type="text"], .wsp-app input[type="url"], .wsp-app input[type="email"], .wsp-app input[type="tel"], .wsp-app select {
  font: inherit; color: inherit; width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #BDB8AD; border-radius: var(--radius-btn); background: var(--surface); }
.wsp-app input:focus, .wsp-app select:focus { outline: 3px solid var(--fg); outline-offset: 1px; border-color: var(--fg); }
.wsp-campo.is-error input, .wsp-app input[aria-invalid="true"] { border-color: #B42318; }
.wsp-error { margin: 0; color: #9A1B10; font-weight: 700; font-size: .95rem; }
.wsp-agregar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wsp-agregar input { flex: 1 1 200px; }
.wsp-ref { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.wsp-aut { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 719px) { .wsp-aut { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); } .wsp-aut__n { grid-column: 1 / -1; } }
.wsp-idi { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; } /* an additional language: its name, its price, «Quitar» */
.wsp-app .wsp-idi select, .wsp-app .wsp-idi input { flex: 1 1 180px; width: auto; min-width: 0; }
.wsp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Notes, warnings and the rule about paying */
.wsp-aviso, .wsp-prueba, .wsp-nota { background: var(--surface-2); border-left: 4px solid var(--fg); border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 0; }
.wsp-aviso p, .wsp-prueba { margin: 0; }
.wsp-aviso p + p { margin-top: 8px; }
.wsp-nota { font-size: .95rem; color: var(--muted); }
.wsp-panel { background: var(--surface-2); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.wsp-panel p { margin: 0; }
.wsp-lista { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.wsp-regla, .wsp-sello { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 700; }
.wsp-sello { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); }
.wsp-regla .ws-ico, .wsp-sello .ws-ico { margin-top: 3px; }

/* Step 1: the example cards. The picture is a client look, labelled fictional (site plan §6.2). */
.wsp-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.wsp-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.wsp-card.is-on { border: 2px solid var(--fg); }
.wsp-card__foto { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.wsp-card__foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.wsp-card__ficticio { position: absolute; left: 10px; bottom: 10px; background: var(--surface-2); color: var(--fg); font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.wsp-card__elegido { position: absolute; left: 10px; top: 10px; display: inline-flex; gap: 6px; align-items: center; background: var(--fg); color: #fff; font-size: .85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.wsp-card__elegido .ws-ico { width: 1em; height: 1em; }
.wsp-card__b { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.wsp-card__b p { margin: 0; }
.wsp-card__para, .wsp-card__meta { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.wsp-card__precio strong { font: 700 1.25rem/1.2 var(--f-display); }
.wsp-card__precio span { color: var(--muted); font-size: .95rem; }
.wsp-card__por { font-size: .95rem; border-left: 3px solid var(--fg); padding-left: 10px; margin-top: 4px !important; }
.wsp-card__acc { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.wsp-card__acc a { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; padding: 10px 2px; }
.wsp-card__acc a .ws-ico { width: 1em; height: 1em; }
@media (min-width: 720px) {
  .wsp-cards--uno { grid-template-columns: 1fr; }
  .wsp-card--grande { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wsp-card--grande .wsp-card__foto { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
}
.wsp-mas { border-top: 1px solid var(--line); }
.wsp-mas:last-of-type { border-bottom: 1px solid var(--line); }
.wsp-mas > summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 16px 2px; min-height: 56px; font-weight: 700; }
.wsp-mas > summary::-webkit-details-marker { display: none; }
.wsp-mas > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(45deg); transition: transform .15s; flex: none; }
.wsp-mas[open] > summary::after { transform: rotate(-135deg); }
.wsp-mas > .wsp-cards, .wsp-mas__in, .wsp-mas > .wsp-doc-caja { margin-bottom: 20px; }
.wsp-ninguno { border: 2px dashed var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; margin-top: 8px; }

/* Step 2: the package, its reason and the two cards */
.wsp-razon { border: 2px solid var(--fg); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.wsp-razon__top { display: flex; gap: 8px 12px; align-items: baseline; flex-wrap: wrap; }
.wsp-razon__top span:first-child { color: var(--muted); font-weight: 700; margin-right: auto; }
.wsp-razon__top strong { font: 700 1.25rem/1.2 var(--f-display); }
.wsp-razon p { margin: 0; font-size: .97rem; }
.wsp-paqs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.wsp-paq { display: grid; gap: 8px; align-content: start; text-align: left; font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); cursor: pointer; }
.wsp-paq.is-on { border: 2px solid var(--fg); padding: 15px; background: var(--surface-2); }
.wsp-paq:disabled { cursor: not-allowed; opacity: .6; }
.wsp-paq__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.wsp-paq__pr { font: 700 1.5rem/1.1 var(--f-display); }
.wsp-paq__pr small { font: 400 .95rem var(--f-body); color: var(--muted); }
.wsp-paq__d { font-size: .95rem; color: var(--muted); }
.wsp-porques { margin: 0; padding-left: 20px; list-style: disc; font-size: .95rem; color: var(--muted); }

/* Step 5: the price. The total leads, in the display face; then the deposit and the balance. */
.wsp-total { border: 2px solid var(--fg); border-radius: 18px; overflow: hidden; }
.wsp-total__top { padding: 20px; display: grid; gap: 4px; }
.wsp-total__k { font-weight: 700; color: var(--muted); }
.wsp-total__v { font: 700 clamp(2.4rem, 1.8rem + 2.6vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.03em; }
.wsp-total__s { color: var(--muted); font-size: .95rem; }
.wsp-total__pagos { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.wsp-total__pagos > div { padding: 16px 20px; display: grid; gap: 2px; }
.wsp-total__pagos > div + div { border-left: 1px solid var(--line); }
.wsp-total__pagos span { color: var(--muted); font-size: .95rem; }
.wsp-total__pagos strong { font: 700 1.3rem/1.2 var(--f-display); }
@media (max-width: 480px) { .wsp-total__pagos { grid-template-columns: 1fr; } .wsp-total__pagos > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.wsp-total--chico .wsp-total__v { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); }
.wsp-lineas { width: 100%; border-collapse: collapse; }
.wsp-lineas td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wsp-lineas td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.wsp-lineas .is-sub td { color: var(--muted); }
.wsp-lineas .is-tot td { border-bottom: 0; border-top: 2px solid var(--fg); font: 700 1.2rem/1.3 var(--f-display); }
.wsp-notas { display: grid; gap: 6px; font-size: .95rem; color: var(--muted); }
.wsp-notas p { margin: 0; }

/* Step 6: the domain check */
.wsp-dom { display: grid; gap: 10px; }
.wsp-dom ul { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wsp-dom li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 700; }
.wsp-dom li + li { border-top: 1px solid var(--line); }
.wsp-dom__ok::before { content: "✓ "; }
.wsp-dom__no { color: var(--muted); }
.wsp-dom__nose { color: var(--muted); font-weight: 400; }
.wsp-dom .wsp-link { min-height: 32px; }

/* Step 7: the contract and the signature */
.wsp-doc-caja { border: 1px solid var(--fg); border-radius: var(--radius); background: var(--surface); max-height: 68vh; overflow: auto; overscroll-behavior: contain; }
.wsp-doc-caja.is-todo { max-height: none; }
.wsp-doc { padding: 22px clamp(16px, 4vw, 32px) 28px; font-size: 15.5px; line-height: 1.55; overflow-wrap: break-word; }
.wsp-doc > :first-child { margin-top: 0; }
.wsp-doc h1 { font-size: 30px; line-height: 1.05; }
.wsp-doc h2 { font-size: 22px; line-height: 1.2; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--fg); letter-spacing: -0.01em; }
.wsp-doc h3 { font-size: 17px; margin: 20px 0 6px; }
.wsp-doc p { margin: 0 0 9px; }
.wsp-doc ul { list-style: disc; margin: 0 0 12px; padding-left: 20px; }
.wsp-doc li { margin: 3px 0; }
.wsp-doc code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
.wsp-t { overflow-x: auto; margin: 6px 0 12px; }
.wsp-doc .tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wsp-doc .tabla th { text-align: left; border-bottom: 2px solid var(--fg); padding: 6px 8px; }
.wsp-doc .tabla td { border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.wsp-doc .tabla.clave td:first-child { width: 34%; color: var(--muted); }
.wsp-doc .tabla.precio td:last-child, .wsp-doc .tabla.extras td:last-child { text-align: right; white-space: nowrap; }
.wsp-doc .chico { font-size: 13px; color: var(--muted); }
.wsp-doc .hueco { background: #FFD7CC; color: #5C1A0B; outline: 1px dashed #C2410C; border-radius: 3px; padding: 0 4px; font-family: ui-monospace, Menlo, monospace; font-size: .84em; overflow-wrap: anywhere; }
.wsp-doc hr.salto { border: 0; border-top: 1px dashed var(--line); margin: 30px 0; }
.wsp-doc .consent { list-style: none; padding: 0; }
.wsp-doc .consent li { display: flex; gap: 8px; }
.wsp-doc .caja { font-size: 17px; line-height: 1.2; }
.wsp-doc .firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 559px) { .wsp-doc .firmas { grid-template-columns: 1fr; } }
.wsp-doc .firma { border-top: 2px solid var(--fg); padding-top: 8px; }
.wsp-doc .firma .quien { font-size: 13px; color: var(--muted); }
.wsp-doc .firma .nombre { font: 700 19px/1.25 var(--f-display); margin: 3px 0; }
.wsp-doc .portada { display: grid; gap: 18px; padding: 6px 0 22px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.wsp-doc .logo-portada { width: 180px; height: auto; }
.wsp-doc .titulo .sub { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.wsp-doc .portada-datos td:first-child { width: 30%; color: var(--muted); }
.wsp-doc .que-trae { color: var(--muted); max-width: 60ch; }
.wsp-doc .huella { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; background: none; padding: 0; }
.wsp-firmar { border: 2px solid var(--fg); border-radius: 18px; padding: 20px; display: grid; gap: 16px; }
.wsp-firmar > p { margin: 0; }
.wsp-con .wsp-opt__t { font-weight: 400; }
.wsp-falta { color: var(--muted); }
.wsp-falta strong { color: var(--fg); }
.wsp-prueba { font-size: 1rem; }

/* After the signature: the facts, the copy, steps 8 and 9 */
.wsp-hechos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wsp-hechos > div { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; }
.wsp-hechos span { font-size: .9rem; color: var(--muted); }
.wsp-hechos strong { overflow-wrap: anywhere; }
.wsp-siguen { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: wsp; }
.wsp-siguen > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.wsp-siguen > li::before { counter-increment: wsp; content: counter(wsp); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: #fff; font: 700 1.15rem/1 var(--f-display); }
.wsp-siguen h3 { font-size: 1.25rem; margin-bottom: 8px; }
.wsp-siguen p { margin: 0 0 10px; }
.wsp-ticks { display: grid; gap: 8px; margin: 4px 0 0; }
.wsp-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.wsp-ticks .ws-ico { width: 18px; height: 18px; margin-top: 3px; }

/* The live summary (wide screens) */
.wsp-res { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); display: grid; gap: 14px; }
.wsp-res__h { margin: 0; font-weight: 700; color: var(--muted); }
.wsp-res > p { margin: 0; }
.wsp-res__ej { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.wsp-res__ej img { width: 72px; height: 48px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); display: block; }
.wsp-res__ej strong { display: block; line-height: 1.25; }
.wsp-res__ej span { font-size: .85rem; color: var(--muted); }
.wsp-res ul { display: grid; gap: 6px; font-size: .95rem; }
.wsp-res li { display: flex; justify-content: space-between; gap: 12px; }
.wsp-res__tot { border-top: 2px solid var(--fg); padding-top: 12px; display: grid; gap: 2px; }
.wsp-res__tot span { font-weight: 700; font-size: .95rem; }
.wsp-res__tot strong { font: 700 2rem/1.05 var(--f-display); letter-spacing: -0.02em; }
.wsp-res__pp { display: grid; gap: 4px; font-size: .92rem; color: var(--muted); }
.wsp-res__pp strong { color: var(--fg); }

/* The bar on phones and tablets: the total, and the step's own button */
.wsp-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--fg); padding-bottom: env(safe-area-inset-bottom, 0px); }
.wsp-barra__in { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px var(--gutter); }
.wsp-barra__tot { flex: 1; min-width: 0; background: none; border: 0; padding: 4px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 2px; min-height: 44px; }
.wsp-barra__tot:disabled { cursor: default; }
.wsp-barra__k { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsp-barra__v { font: 700 1.2rem/1.1 var(--f-display); }
.wsp-barra__v small { font: 400 .8rem var(--f-body); color: var(--muted); }
.wsp-barra__in .ws-btn { flex: none; }
.wsp-barra__det { max-height: 62vh; overflow: auto; border-bottom: 1px solid var(--line); padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px var(--gutter); }
.wsp-barra__det .wsp-res { border: 0; padding: 0; max-width: var(--wrap); margin: 0 auto; }
@media (max-width: 1023px) {
  .wsp-page { padding-bottom: 120px; }
  /* The order has its own WhatsApp button on every screen and its bar at the bottom: the round button would cover it. */
  .ws-fab { display: none !important; }
}
@media (max-width: 389px) { .wsp-barra__in .ws-btn { padding: 12px 14px; } }

/* Printing the signed contract: only the contract (assets/js/pedido.js fills #wsp-impresion). */
#wsp-impresion { display: none; }
@media print {
  body > *:not(#wsp-impresion) { display: none !important; }
  #wsp-impresion { display: block !important; }
  #wsp-impresion .wsp-doc { padding: 0; font-size: 10.5pt; }
  #wsp-impresion hr.salto { border: 0; margin: 0; break-after: page; }
  #wsp-impresion .tabla tr { break-inside: avoid; }
}
