/* Catalogo dinamico y panel de pedido. Se suma al diseno original (tienda.css) sin tocarlo.
   Paleta y tipografias son las de DESIGN.md. Sin estilos en linea: la CSP no los deja. */

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

button.nav-cta { font: inherit; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.contador { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--green); color: var(--ink); font-size: 12px; font-weight: 800; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a.button:focus-visible { outline: 3px solid #658d20; outline-offset: 3px; }

/* botones */
.button { cursor: pointer; border: 0; font-family: inherit; }
.button.chico { padding: 12px 16px; font-size: 13px; }
.button.ancho { width: 100%; margin-top: 12px; }
.button.apagado { background: #e4e8df; color: #4c5550; cursor: not-allowed; }
.button.outline-oscuro { border: 1px solid #111514; color: var(--ink); background: transparent; }
.button:disabled { cursor: not-allowed; opacity: .6; }

/* buscador y filtros */
.buscador input { width: min(340px, 100%); padding: 14px 16px; font: inherit; font-size: 14px; border: 1px solid #7a8278; border-radius: 4px; background: #fff; color: var(--ink); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filtro { font: inherit; font-size: 13px; font-weight: 700; padding: 10px 16px; border: 1px solid #aeb7a7; border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.filtro[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filtro:hover { border-color: var(--ink); }

/* tarjetas de producto */
.producto { display: flex; flex-direction: column; }
.producto .photo { display: block; }
.producto h3 { font-size: 18px; margin-bottom: 8px; }
.sin-foto::before { content: 'ZE'; }
.sin-foto { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 64px; font-weight: 800; color: #cfd6c8; letter-spacing: -3px; }
.precio { font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 14px; }
.producto .button { margin-top: auto; align-self: flex-start; }
.estado-catalogo { margin: 8px 0 0; padding: 28px 0; font-size: 15px; color: #4c5550; }
.ver-mas { display: flex; justify-content: center; margin-top: 36px; }

/* panel de pedido */
dialog.pedido { margin: 0 0 0 auto; padding: 0; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0; background: #fff; color: var(--ink); }
dialog.pedido::backdrop { background: rgba(17, 21, 20, .62); }
.pedido-caja { padding: 0 24px 40px; }
.pedido-cabecera { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 22px 0 16px; margin-bottom: 8px; background: #fff; border-bottom: 1px solid #e4e8e1; }
.pedido-cabecera h2 { font-size: 34px; margin: 0; letter-spacing: -1px; }
.cerrar { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 14px; background: transparent; border: 1px solid #aeb7a7; border-radius: 4px; cursor: pointer; color: var(--ink); }
.pedido-vacio { padding: 40px 0; text-align: left; }
.lineas { list-style: none; margin: 0; padding: 0; }
.linea { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 0; border-bottom: 1px solid #e4e8e1; align-items: center; }
.linea-nombre { display: flex; flex-direction: column; gap: 4px; }
.linea-nombre small { color: #4c5550; font-size: 13px; }
.sin-stock .linea-nombre small { color: #a3261a; font-weight: 700; }
.linea-cantidad { display: inline-flex; align-items: center; gap: 4px; }
.linea-cantidad output { min-width: 34px; text-align: center; font-weight: 800; font-size: 16px; }
.paso { width: 44px; height: 44px; font: inherit; font-size: 20px; font-weight: 800; border: 1px solid #aeb7a7; border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.paso:disabled { opacity: .35; cursor: not-allowed; }
.linea-subtotal { font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 20px; font-weight: 700; text-align: right; }
.quitar { grid-column: 1 / -1; justify-self: start; padding: 8px 0; font: inherit; font-size: 13px; font-weight: 700; color: #4c5550; background: none; border: 0; border-bottom: 1px solid #aeb7a7; cursor: pointer; }
.total-linea { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; margin: 0; font-size: 15px; }
.total-linea strong { font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.aviso { margin: 12px 0; padding: 12px 14px; font-size: 14px; line-height: 1.5; background: #f8ebc9; color: #7a5208; border-radius: 4px; }

/* formulario */
#form-pedido h3 { font-size: 20px; margin: 8px 0 12px; }
.campo { margin-bottom: 16px; }
.campo label, .opciones legend { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.campo input, .campo textarea { width: 100%; padding: 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #7a8278; border-radius: 4px; }
.campo [aria-invalid="true"] { border-color: #a3261a; }
.opciones { border: 0; padding: 0; margin: 0 0 16px; }
.opciones label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; }
.opciones input { width: 20px; height: 20px; accent-color: #111514; }
.error { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #a3261a; }
.error.grande { padding: 12px 14px; font-size: 14px; background: #fbe4e0; border-radius: 4px; }
.legal-nota { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: #4c5550; }
.legal-nota a { text-decoration: underline; }
#turnstile { margin: 8px 0 16px; }

/* resultado */
#pedido-listo h3 { font-size: 22px; margin: 28px 0 8px; outline: none; }
.numero-pedido { font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1; margin: 0 0 16px; }
.mensaje-copia { width: 100%; margin-top: 12px; padding: 12px; font: inherit; font-size: 14px; border: 1px solid #7a8278; border-radius: 4px; }

@media (max-width: 700px) {
  .pedido-caja { padding: 0 16px 32px; }
  .filtros { gap: 6px; }
  .producto .button { align-self: stretch; text-align: center; }
  .precio { font-size: 22px; }
}

/* pie legal */
.legales{display:flex;flex-wrap:wrap;gap:8px 20px;width:100%;padding-top:20px;margin-top:20px;border-top:1px solid #e0e6d9;font-size:13px}
.legales a{color:#3f4a38;font-weight:600;text-decoration:underline}

.catalog-note { color: #56604f; }

/* variantes (colores, numeros) y precio anterior */
.variantes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.variante { font: inherit; font-size: 13px; font-weight: 700; min-height: 44px; padding: 8px 14px; border: 1px solid #aeb7a7; border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.variante[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.variante.agotada { color: #5c6660; text-decoration: line-through; }
.variante.agotada[aria-pressed="true"] { color: #fff; }
.precio s { font-size: 15px; font-weight: 600; color: #5c6660; margin-right: 8px; }
