/* Página pública del pedido web (H-005, D-29). Solo estilos propios: la política de contenido no admite estilos en línea. */
:root { --color-principal: #0B5CAD; --color-error: #B3261E; --color-ambar: #8A5A00; --color-ambar-fondo: #FFF4D6; --color-apoyo: #F3F5F7; --color-borde: #6b6b6b; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; }
body { margin: 0; font-family: system-ui, sans-serif; line-height: 1.4; color: #1a1a1a; background: var(--color-apoyo); overflow-wrap: break-word; }
:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.salto { position: absolute; left: 0.5rem; top: -6rem; z-index: 2; padding: 0.75rem 1rem; color: #fff; background: var(--color-principal); border-radius: 8px; font-weight: 700; }
.salto:focus { top: 0.5rem; }
.columna { max-width: 32rem; margin: 0 auto; padding: 1rem; min-height: 100vh; background: #fff; }
h1 { font-size: 1.35rem; margin: 0.25rem 0; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 0.25rem; }
.marca { font-weight: 700; margin: 0; color: var(--color-principal); }
.franja { background: #e8f1fb; border-left: 4px solid var(--color-principal); padding: 0.6rem 0.75rem; margin: 1rem 0; }
.franja-ambar { background: var(--color-ambar-fondo); border-left-color: var(--color-ambar); color: var(--color-ambar); font-weight: 600; }
.errores { background: #fdecec; border: 2px solid var(--color-error); border-radius: 8px; padding: 0.6rem 0.75rem; margin: 1rem 0; }
.errores a { color: var(--color-error); font-weight: 600; }
.error { color: var(--color-error); font-weight: 600; margin: 0.25rem 0 0; }
[aria-invalid="true"] { border: 2px solid var(--color-error); }
fieldset { border: 0; padding: 0; margin: 1.25rem 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 0.5rem; }
label { display: block; margin-top: 1rem; font-weight: 600; }
input, select { display: block; width: 100%; min-height: 52px; font: inherit; padding: 0.6rem; margin-top: 0.25rem; border: 1px solid var(--color-borde); border-radius: 8px; background: #fff; }
.ayuda { margin: 0.1rem 0 0; color: #444; font-size: 0.9rem; }
.producto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; border: 1px solid var(--color-borde); border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem; }
.producto > div:first-child { flex: 1 1 8rem; min-width: 0; }
.producto p { margin: 0; }
.producto-nombre { font-weight: 700; }
.producto-precio { font-weight: 700; }
.producto select { width: 5.5rem; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button { display: block; width: 100%; min-height: 56px; font: inherit; font-weight: 700; color: #fff; background: var(--color-principal); border: 0; border-radius: 8px; margin-top: 1rem; }
.secundario { color: var(--color-principal); background: #fff; border: 2px solid var(--color-principal); }
.boton { display: flex; align-items: center; justify-content: center; padding: 0.5rem; width: 100%; text-align: center; text-decoration: none; min-height: 56px; font-weight: 700; color: #fff; background: var(--color-principal); border-radius: 8px; margin-top: 1rem; }
.pie { text-align: center; margin: 1.5rem 0 0; }
.privacidad { display: none; border-top: 1px solid var(--color-borde); margin-top: 1rem; }
.privacidad:target { display: block; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; margin-bottom: 0.75rem; }
.linea p { margin: 0; }
.linea-nombre { font-weight: 700; min-width: 0; }
.linea-subtotal { font-weight: 700; text-align: right; }
.linea-unitario { grid-column: 1 / -1; color: #444; font-size: 0.9rem; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 1.25rem; font-weight: 700; border: 2px solid var(--color-principal); border-radius: 8px; padding: 0.6rem 0.75rem; margin: 1rem 0 0.5rem; }
section p { margin: 0.25rem 0; }
.codigo { display: block; font-size: 1.55rem; letter-spacing: 0.15em; margin-top: 0.25rem; }
.oferta { margin-top: 0.25rem; min-width: 0; }
.oferta p { overflow-wrap: break-word; }
.oferta .producto-precio { font-size: 1.1111rem; font-weight: 700; }
.oferta-normal del { text-decoration-thickness: 2px; }
.oferta-vigencia { font-size: 1rem; border-left: 4px solid #1B5E20; padding-left: 0.5rem; margin-top: 0.25rem; }
.oferta-vigencia::before { content: "%"; content: "%" / ""; display: inline-block; font-weight: 700; margin-right: 0.35rem; color: #1B5E20; }
.descuentos { border: 2px solid var(--color-principal); border-radius: 8px; padding: 0.5rem 0.75rem; margin-top: 1rem; }
.descuentos h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.descuentos ul { margin: 0; padding-left: 1.25rem; overflow-wrap: anywhere; }
.monto-menos { display: inline-block; }
.ahorro { font-size: 1rem; font-weight: 700; color: #1B5E20; }
.guardar-app { margin-top: 1.5rem; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 0.5rem 0; }
summary:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
@media (display-mode: standalone) { .guardar-app { display: none; } }

.aviso-ambiente {
  margin: 0;
  padding: 0.5rem 1rem;
  background: #fff3cd;
  color: #4d3b00;
  border-bottom: 2px solid #b58900;
  text-align: center;
  font-weight: 600;
}

[hidden] { display: none !important; /* H-013: la hoja la pinta el servidor oculta y el script solo la muestra; sticky, no fixed, para no tapar el formulario */ }
.hoja-instalar { position: sticky; bottom: 0; max-width: 32rem; max-height: 45vh; overflow: auto; margin: 0 auto; padding: 0.75rem 1rem 1rem; background: #fff; border-top: 3px solid var(--color-principal); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); }
.hoja-instalar h2 { margin: 0 0 0.25rem; }
.hoja-instalar p { margin: 0.25rem 0; }
.hoja-icono { width: 3rem; height: 3rem; float: left; margin: 0 0.75rem 0.25rem 0; border-radius: 8px; }
.hoja-pasos { margin: 0.5rem 0 0; padding-left: 1.5rem; }
.hoja-pasos li { margin: 0.5rem 0; }
.hoja-dibujo { width: 2.75rem; height: 2.75rem; vertical-align: middle; margin-left: 0.5rem; }
@keyframes hoja-sube { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hoja-instalar { animation: hoja-sube 0.25s ease-out; }
}
.casilla { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; margin-top: 1rem; }
.casilla input { flex: none; width: 28px; min-height: 28px; height: 28px; margin: 0; }
.casilla label { flex: 1; margin: 0; padding: 0.75rem 0; }
.franja-ok { background: #e6f4ea; border-left-color: #1B5E20; color: #1B5E20; font-weight: 600; }
.enlace { display: inline-block; width: auto; min-height: 52px; padding: 0 0.5rem; margin-top: 1.5rem; color: var(--color-principal); background: none; border: 0; text-decoration: underline; font-weight: 600; }
