/* Estilos de la tienda, el directorio y los paneles.
   El color principal (--acento) lo puede cambiar cada tienda o el revendedor. */

@font-face {
  font-family: "Figtree";
  src: url("/fuentes/figtree.woff2") format("woff2-variations"), url("/fuentes/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fuentes/bricolage.woff2") format("woff2-variations"), url("/fuentes/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --acento: #0e6b4f;
  --papel: #ffffff;
  --fondo: #f3f5f2;
  --tinta: #13302a;
  --tinta-suave: #4e625c;
  --linea: #d9e0db;
  --pizarra: #13302a;
  --tiza: #f4c84a;
  --rojo: #b23a2e;
  --rojo-suave: #fbe9e6;
  --amarillo-suave: #fff4d1;
  --verde-suave: #e3f1ea;
  --radio: 6px;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cifras: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 16px/1.5 var(--texto);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--acento);
  text-underline-offset: 2px;
}

h1,
h2 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-family: var(--cifras);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--tiza);
  outline-offset: 2px;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Botones ------------------------------------------------------------------ */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.55em 1.1em;
  border: 2px solid var(--acento);
  border-radius: var(--radio);
  background: var(--acento);
  color: #fff;
  font: 600 1rem/1.2 var(--texto);
  text-decoration: none;
  cursor: pointer;
}
.boton:hover {
  filter: brightness(1.08);
}
.boton:disabled {
  background: var(--linea);
  border-color: var(--linea);
  color: var(--tinta-suave);
  cursor: not-allowed;
  filter: none;
}
.boton-grande {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}
.boton-texto {
  background: none;
  border: 0;
  padding: 0.4em 0.2em;
  color: var(--acento);
  font: 600 0.95rem/1.2 var(--texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.boton-peligro {
  background: var(--papel);
  color: var(--rojo);
  border: 2px solid var(--rojo);
  border-radius: var(--radio);
  min-height: 44px;
  padding: 0.55em 1.1em;
  font: 600 1rem/1.2 var(--texto);
  cursor: pointer;
}
.boton-whatsapp {
  background: #1f8f4e;
  border-color: #1f8f4e;
}
.boton-redondo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--linea);
  background: var(--papel);
  color: var(--tinta);
  font: 600 1.1rem/1 var(--texto);
  cursor: pointer;
}
.boton-redondo:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.form-accion {
  display: inline;
  margin: 0;
}

/* --- Avisos ------------------------------------------------------------------- */

.aviso {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radio);
  border-left: 4px solid var(--acento);
  background: var(--verde-suave);
}
.aviso-error {
  border-left-color: var(--rojo);
  background: var(--rojo-suave);
}
.aviso-info {
  border-left-color: var(--tinta-suave);
  background: var(--fondo);
}
.aviso-demo {
  border-left-color: #b38600;
  background: var(--amarillo-suave);
}
.aviso-demo p {
  margin: 0 0 0.3em;
}
.aviso-demo ul {
  margin: 0;
  padding-left: 1.2em;
}
.banda-demo {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--amarillo-suave);
  font-size: 0.9rem;
  text-align: center;
}

/* --- Formularios -------------------------------------------------------------- */

.campo {
  margin: 0 0 1rem;
}
.campo label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.campo input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
.campo select,
.campo textarea,
.buscador input,
.tienda-herramientas input {
  width: 100%;
  min-height: 44px;
  padding: 0.55em 0.75em;
  border: 1.5px solid var(--linea);
  border-radius: var(--radio);
  background: var(--papel);
  color: var(--tinta);
  font: 400 1rem/1.3 var(--texto);
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--acento);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent);
}
.campo input[type="color"] {
  width: 64px;
  height: 44px;
  padding: 2px;
  border: 1.5px solid var(--linea);
  border-radius: var(--radio);
  background: var(--papel);
}
.campo-casilla {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.6rem;
  align-items: center;
}
.campo-casilla input {
  width: 22px;
  height: 22px;
  accent-color: var(--acento);
}
.campo-casilla label {
  margin: 0;
}
.campo-casilla .ayuda {
  grid-column: 2;
}
.etiqueta-secundaria {
  font-weight: 400 !important;
  color: var(--tinta-suave);
  margin-top: 0.5rem !important;
}
.ayuda {
  margin: 0.3rem 0 0;
  color: var(--tinta-suave);
  font-size: 0.9rem;
}
.formulario fieldset {
  border: 0;
  border-top: 1px solid var(--linea);
  margin: 0 0 1rem;
  padding: 1rem 0 0;
}
.formulario legend {
  font: 700 1.05rem var(--texto);
  padding: 0 0.5rem 0 0;
}
.foto-actual {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
}
.foto-actual img {
  border-radius: var(--radio);
  border: 1px solid var(--linea);
  object-fit: cover;
}

/* --- Páginas centradas (entrar, errores) ----------------------------------------- */

.caja-centro {
  max-width: 440px;
  margin: 8vh auto;
  padding: 0 16px;
}
.form-entrar {
  margin-top: 1.5rem;
}

/* --- Marca (directorio) -------------------------------------------------------------- */

.marca-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 16px;
  border-bottom: 1px solid var(--linea);
}
.marca-nombre {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--tinta);
  text-decoration: none;
  font: 700 1.1rem var(--cifras);
}
.marca-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radio);
  object-fit: cover;
}
.marca-inicial,
.tienda-inicial {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radio);
  background: var(--acento);
  color: #fff;
  font: 700 1.2rem var(--cifras);
  flex: none;
}

/* --- Directorio --------------------------------------------------------------------- */

.directorio {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 16px 4rem;
}
.bajada {
  color: var(--tinta-suave);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}
.buscador {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.tiendas-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linea);
}
.tiendas-lista li {
  border-bottom: 1px solid var(--linea);
}
.tienda-fila {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.25rem;
  color: var(--tinta);
  text-decoration: none;
}
.tienda-fila:hover strong {
  text-decoration: underline;
}
.tienda-fila img,
.tienda-fila .tienda-inicial {
  width: 56px;
  height: 56px;
  border-radius: var(--radio);
  object-fit: cover;
}
.tienda-fila strong {
  display: block;
  font-size: 1.05rem;
}
.tienda-fila small {
  color: var(--tinta-suave);
  font-size: 0.9rem;
}
.vacio {
  padding: 1.5rem 0;
  color: var(--tinta-suave);
  list-style: none;
}

/* --- Tienda ---------------------------------------------------------------------- */

.tienda-cabecera {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 16px;
}
.tienda-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radio);
  object-fit: cover;
}
.tienda-inicial.grande {
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
}
.tienda-titulo {
  flex: 1;
  min-width: 0;
}
.tienda-titulo h1 {
  margin: 0;
}
.tienda-titulo p {
  margin: 0.1rem 0 0;
  color: var(--tinta-suave);
}

/* La pizarra del dólar: como la de una casa de cambio. */
.pizarra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.85rem max(16px, calc((100% - 1080px) / 2 + 16px));
  background: var(--pizarra);
  color: #e9efe9;
}
.pizarra-texto {
  font-size: 0.95rem;
}
.pizarra-cifra {
  font: 700 2.1rem/1 var(--cifras);
  font-variant-numeric: tabular-nums;
  color: var(--tiza);
  letter-spacing: 0.01em;
}
.pizarra-cifra small {
  font-size: 0.5em;
  font-weight: 600;
  margin-right: 0.3em;
  color: #e9efe9;
}
.pizarra-fuente {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: #a9b9b2;
}

.tienda {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 16px 7rem;
}
.tienda-desc {
  max-width: 65ch;
  color: var(--tinta-suave);
  margin: 0 0 1rem;
}
.tienda-herramientas {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.filtros {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}
.filtro {
  flex: none;
  min-height: 38px;
  padding: 0.35em 0.9em;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
  background: var(--papel);
  color: var(--tinta);
  font: 500 0.95rem var(--texto);
  cursor: pointer;
}
.filtro[aria-pressed="true"] {
  background: var(--tinta);
  border-color: var(--tinta);
  color: #fff;
}

.productos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}
@media (min-width: 640px) {
  .productos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .productos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.producto {
  display: flex;
  flex-direction: column;
}
.producto[hidden] {
  display: none;
}
.producto-foto {
  aspect-ratio: 1;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--fondo);
  margin: 0 0 0.6rem;
}
.producto-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sin-foto {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: color-mix(in srgb, var(--acento) 60%, white);
  background: color-mix(in srgb, var(--acento) 7%, white);
}
.sin-foto svg {
  width: 38%;
  height: auto;
  max-width: 88px;
}
.producto h2 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}
.producto-desc {
  font-size: 0.85rem;
  color: var(--tinta-suave);
  margin: 0 0 0.3rem;
}
.precio {
  font: 700 1.45rem/1.1 var(--cifras);
  font-variant-numeric: tabular-nums;
  margin: 0.15rem 0 0;
}
.precio-usd {
  font-size: 0.82rem;
  color: var(--tinta-suave);
  margin: 0.1rem 0 0;
}
.stock {
  font-size: 0.85rem;
  color: #8a5a00;
  margin: 0.2rem 0 0;
}
.stock.agotado {
  color: var(--rojo);
}
.agregar {
  margin-top: auto;
  width: 100%;
  background: var(--papel);
  color: var(--acento);
}
.producto .agregar {
  margin-top: auto;
}
.producto > :nth-last-child(2) {
  margin-bottom: 0.75rem;
}

.carrito-barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem max(16px, env(safe-area-inset-left)) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--papel);
  border-top: 1px solid var(--linea);
  box-shadow: 0 -6px 18px rgba(19, 48, 42, 0.08);
}
.carrito-barra[hidden] {
  display: none;
}
.carrito-cuenta {
  color: var(--tinta-suave);
}
.carrito-barra .carrito-total {
  font: 700 1.25rem var(--cifras);
  margin-right: auto;
}

dialog.carrito {
  width: min(560px, 100vw);
  max-height: 92vh;
  margin: auto auto 0;
  padding: 1rem 16px 1.5rem;
  border: 0;
  border-radius: 14px 14px 0 0;
  color: var(--tinta);
}
@media (min-width: 640px) {
  dialog.carrito {
    margin: auto;
    border-radius: 12px;
  }
}
dialog.carrito::backdrop {
  background: rgba(19, 48, 42, 0.45);
}
.carrito-cerrar {
  text-align: right;
  margin: 0;
}
.carrito-lineas {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.carrito-lineas li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "nombre subtotal" "controles controles";
  gap: 0.4rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--linea);
}
.linea-nombre {
  grid-area: nombre;
  font-weight: 600;
}
.linea-subtotal {
  grid-area: subtotal;
  font-variant-numeric: tabular-nums;
}
.linea-controles {
  grid-area: controles;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.linea-controles output {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.carrito-suma {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.carrito-suma strong {
  font: 700 1.4rem var(--cifras);
}
.carrito-error {
  color: var(--rojo);
  font-weight: 600;
}
.tienda-pie {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 6rem;
}

/* --- Pedido --------------------------------------------------------------------- */

.pedido {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 16px 4rem;
}
.estado {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--fondo);
}
.estado-pendiente {
  background: var(--amarillo-suave);
}
.estado-pagado,
.estado-entregado {
  background: var(--verde-suave);
}
.tabla-pedido {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}
.tabla-pedido th,
.tabla-pedido td {
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--linea);
  text-align: left;
}
.tabla-pedido .num {
  text-align: right;
}
.tabla-pedido tfoot th,
.tabla-pedido tfoot td {
  border-bottom: 0;
  font-size: 1.1rem;
}
.pago h2 {
  font: 700 1.6rem var(--cifras);
}
.qr {
  margin: 0 0 1rem;
  text-align: center;
}
.qr img {
  width: min(320px, 100%);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
}
.qr figcaption {
  color: var(--tinta-suave);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}
.pasos {
  padding-left: 1.3em;
  margin: 0 0 1rem;
}
.pasos li {
  margin: 0 0 0.3rem;
}
.vista-whatsapp {
  border: 1.5px dashed var(--linea);
  border-radius: var(--radio);
  padding: 0.75rem 1rem;
}
.vista-whatsapp p {
  margin: 0 0 0.5rem;
  color: var(--tinta-suave);
}
.vista-whatsapp pre {
  white-space: pre-wrap;
  font: 400 0.92rem/1.45 var(--texto);
  margin: 0;
  background: #e7f6dd;
  padding: 0.75rem;
  border-radius: var(--radio);
}

/* --- Paneles ------------------------------------------------------------------- */

.pagina-panel {
  background: var(--fondo);
}
.panel-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 16px;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.panel-marca {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 1.05rem var(--cifras);
}
.panel-marca img {
  border-radius: 4px;
}
.panel-marca .rol {
  font: 500 0.8rem var(--texto);
  color: var(--tinta-suave);
}
.panel-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  order: 3;
  width: 100%;
}
@media (min-width: 900px) {
  .panel-nav {
    order: 0;
    width: auto;
    flex: 1;
  }
}
.panel-nav a {
  flex: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radio);
  color: var(--tinta);
  text-decoration: none;
  font-weight: 500;
}
.panel-nav a:hover {
  background: var(--fondo);
}
.panel-nav a[aria-current="page"] {
  background: var(--tinta);
  color: #fff;
}
.panel-cuenta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.panel-contenido {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 16px 4rem;
}
.bloque {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem;
}
.bloque > :last-child {
  margin-bottom: 0;
}
.bloque-destacado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-color: #e2c46b;
  background: var(--amarillo-suave);
}
.bloque-destacado p {
  margin: 0;
  font-weight: 600;
}
.pagina-panel .formulario {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem;
  max-width: 680px;
}
.bloque .formulario {
  border: 0;
  padding: 0;
  margin: 0;
}
.acciones-arriba {
  margin: 0 0 1.25rem;
}
.dato-grande {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}
.dato-cifra {
  font: 700 2.4rem/1 var(--cifras);
  font-variant-numeric: tabular-nums;
}
.lista-pasos,
.lista-alertas {
  margin: 0;
  padding-left: 1.2em;
}
.lista-pasos li,
.lista-alertas li {
  margin: 0 0 0.4rem;
}
.alerta-roja a {
  color: var(--rojo);
  font-weight: 700;
}
.explicacion {
  margin: 0 0 1rem;
  padding-left: 1.2em;
  color: var(--tinta-suave);
}

.tabla-envoltura {
  overflow-x: auto;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  margin: 0 0 1.25rem;
}
.bloque .tabla-envoltura {
  border: 0;
  margin: 0 0 0.75rem;
}
.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tabla th,
.tabla td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--linea);
  text-align: left;
  vertical-align: top;
}
.tabla th {
  font-weight: 600;
  color: var(--tinta-suave);
  font-size: 0.85rem;
  white-space: nowrap;
}
.tabla tbody tr:last-child td {
  border-bottom: 0;
}
.tabla td small {
  display: block;
  color: var(--tinta-suave);
}
.tabla .num {
  text-align: right;
  white-space: nowrap;
}
/* En el celular, cada fila de una tabla se vuelve una tarjeta con sus etiquetas. */
@media (max-width: 640px) {
  .tabla thead {
    display: none;
  }
  .tabla,
  .tabla tbody,
  .tabla tr,
  .tabla td {
    display: block;
    width: 100%;
  }
  .tabla tr {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--linea);
  }
  .bloque .tabla tr {
    padding: 0.8rem 0;
  }
  .tabla tbody tr:last-child {
    border-bottom: 0;
  }
  .tabla td,
  .tabla .num {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.2rem 0;
    border: 0;
    text-align: right;
    white-space: normal;
  }
  .tabla td::before {
    content: attr(data-etiqueta);
    flex: none;
    max-width: 50%;
    text-align: left;
    color: var(--tinta-suave);
    font-size: 0.88rem;
  }
  .tabla td:first-child {
    display: block;
    text-align: left;
    padding-bottom: 0.35rem;
  }
  .tabla td:first-child::before,
  .tabla td[data-etiqueta=""]::before {
    content: none;
  }
  .tabla td.largo {
    display: block;
    text-align: left;
  }
  .tabla td.largo::before {
    display: block;
    max-width: none;
  }
}
.etiqueta {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
.etiqueta-verde {
  background: var(--verde-suave);
  color: #0b5a42;
}
.etiqueta-rojo {
  background: var(--rojo-suave);
  color: var(--rojo);
}
.etiqueta-amarillo {
  background: var(--amarillo-suave);
  color: #7a5600;
}
.etiqueta-gris {
  background: var(--fondo);
  color: var(--tinta-suave);
}
.lista-datos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1rem;
  margin: 0;
}
.lista-datos dt {
  color: var(--tinta-suave);
}
.lista-datos dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .lista-datos {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lista-datos dt {
    font-size: 0.88rem;
    padding-top: 0.6rem;
  }
  .lista-datos dt:first-child {
    padding-top: 0;
  }
  .lista-datos dd {
    text-align: left;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--linea);
  }
  .lista-datos dd:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}
.fuentes {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .fuentes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fuente {
  border: 1.5px solid var(--linea);
  border-radius: var(--radio);
  padding: 0.85rem 1rem;
  background: var(--papel);
}
.fuente p {
  margin: 0;
}
.fuente-nombre {
  font-weight: 600;
}
.fuente-valor {
  font: 700 1.5rem var(--cifras);
  font-variant-numeric: tabular-nums;
  margin: 0.2rem 0 !important;
}
.fuente-detalle {
  font-size: 0.85rem;
  color: var(--tinta-suave);
  margin-bottom: 0.5rem !important;
}
.pestanas {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1rem;
}
.pestanas a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--tinta);
  text-decoration: none;
  border: 1.5px solid var(--linea);
  background: var(--papel);
}
.pestanas a[aria-current="page"] {
  background: var(--tinta);
  border-color: var(--tinta);
  color: #fff;
}
.pedidos {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .pedidos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pedido-tarjeta {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1rem 1.1rem;
}
.pedido-tarjeta header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-family: var(--cifras);
  font-size: 1.1rem;
}
.pedido-tarjeta p,
.pedido-tarjeta ul {
  margin: 0 0 0.6rem;
}
.pedido-tarjeta ul {
  padding-left: 1.1em;
}
.nota {
  background: var(--fondo);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radio);
}
.pedido-total {
  font: 700 1.25rem var(--cifras);
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.barra {
  height: 10px;
  border-radius: 999px;
  background: var(--fondo);
  overflow: hidden;
}
.barra span {
  display: block;
  height: 100%;
  background: var(--acento);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Campos que no se pueden cambiar (por ejemplo, en la demo). */
.campo input[readonly],
.campo textarea[readonly] {
  background: var(--fondo);
  color: var(--tinta-suave);
  cursor: not-allowed;
}
.campo input:disabled + label {
  color: var(--tinta-suave);
}
