:root { --fondo: #f6f5f0; --tinta: #101114; --suave: #55565c; --linea: #dedcd3; --marca: #101114; --acento: #ffd21f; --acento-claro: #fff4c2; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 15px/1.4 Inter, "Segoe UI", system-ui, sans-serif; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
header { background: var(--marca); color: #fff; padding: 14px 18px; display: flex; gap: 12px; align-items: center; border-bottom: 4px solid var(--acento); }
header img { width: 54px; height: 54px; border-radius: 50%; flex: none; border: 2px solid var(--acento); }
header h1 { margin: 0; font-size: 22px; color: var(--acento); }
header p { margin: 2px 0 0; font-size: 12px; }
.prueba { background: #fbebd0; color: #5c2f04; font-size: 12px; padding: 6px 18px; }
main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
footer { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--linea); padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
footer:empty { display: none; }
h2 { margin: 6px 0 0; font-size: 17px; }
h3 { margin: 0; font-size: 15px; }
p, ul { margin: 4px 0; }
ul { padding-left: 20px; }
a { color: var(--marca); }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.centrada { text-align: center; }
.foto { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; background: var(--acento-claro); color: var(--marca); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.miniatura { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; background: var(--acento-claro); color: var(--marca); display: flex; align-items: center; justify-content: center; font-size: 10px; text-align: center; }
.producto h3 { flex: 1; }
.precio { font-size: 20px; font-weight: 700; }
.monto { font-size: 28px; font-weight: 700; }
.cantidad { font-size: 26px; font-weight: 700; }
.suave { color: var(--suave); font-size: 13px; }
.nivel { font-size: 12px; font-weight: 700; }
.nivel.bien { color: #1e6b3a; }
.nivel.poco { color: #8a4b08; }
.nivel.agotado { color: #a12b22; }
button, .boton { min-height: 46px; border-radius: 12px; padding: 8px 14px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
button:disabled { opacity: 0.55; cursor: default; }
.principal { background: var(--acento); color: var(--tinta); border: 0; font-weight: 700; }
.secundario, .boton { background: #fff; color: var(--marca); border: 2px solid var(--marca); }
.cuadro { width: 46px; background: #fff; border: 1px solid #c9c6bb; color: var(--tinta); font-size: 20px; }
.opcion { flex: 1; background: #fff; border: 2px solid var(--linea); color: var(--tinta); }
.opcion.elegida { border-color: var(--marca); background: var(--acento-claro); }
.opcion.zona { justify-content: space-between; text-align: left; }
.pestana { background: #efede6; border: 0; color: var(--tinta); padding: 8px 4px; font-size: 13px; }
.pestana.elegida { background: var(--tinta); color: var(--acento); }
.fila { display: flex; gap: 8px; align-items: center; }
.columna { display: flex; flex-direction: column; gap: 8px; }
.linea { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.entre { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.crece { flex: 1; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.campo { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.marca { display: flex; gap: 8px; align-items: center; min-height: 46px; font-weight: 600; }
input { min-height: 46px; border: 1px solid #c9c6bb; border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; width: 100%; }
input[type="file"] { padding: 10px; }
input[type="checkbox"] { width: 22px; min-height: 22px; }
input.corto { width: 70px; }
.chip { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #dcebf7; color: #10456e; }
.chip.por_confirmar { background: #fbebd0; color: #5c2f04; }
.chip.entregado { background: #ddefe2; color: #14522b; }
.chip.anulado { background: #e6e4dc; color: #4e5a53; }
.alerta { background: #fbebd0; color: #5c2f04; border: 2px solid #b45309; border-radius: 12px; padding: 12px; }
#aviso { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; width: min(440px, calc(100% - 24px)); background: #fff; color: var(--tinta); border: 2px solid var(--acento); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 12px 14px; z-index: 10; font-weight: 600; }
#aviso[hidden] { display: none; }
.precios { width: 100%; border-collapse: collapse; font-size: 14px; }
.precios th, .precios td { padding: 6px 4px; border-bottom: 1px solid var(--linea); text-align: right; }
.precios th:first-child, .precios td:first-child { text-align: left; }
.precios thead th { font-size: 12px; }
