/* Tienda ENIGMARIO (lo genera enigmario/tienda.py; usa también estilo.css). Móvil primero. */
.franja-prueba { margin: 0; padding: 7px 12px 6px; text-align: center; font-weight: 600; font-size: 14.5px;
  color: var(--tinta); background: repeating-linear-gradient(-45deg, #FFD60A 0 16px, #F4C800 16px 32px); border-bottom: 2px solid var(--tinta); }
.franja-prueba b { letter-spacing: .12em; }
.cuenta[hidden] { display: none; }
.cuenta { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 10px; background: var(--acento); color: #fff;
  font-size: 13px; line-height: 18px; text-align: center; }
html.sin-scroll { overflow: hidden; }
.enlace { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.enlace[hidden], .btn[hidden] { display: none; }

/* Botón «Pedido» de la barra */
.carrito-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 12px; border: 1.5px solid var(--crema);
  border-radius: 3px; background: transparent; color: var(--crema); font-weight: 700; font-size: 15.5px; }
.carrito-btn[hidden] { display: none; }
.carrito-btn:hover { background: rgba(242,237,224,.1); }
.carrito-btn:focus-visible { outline: 3px solid #FFD60A; outline-offset: 2px; }
.carrito-btn .cuenta { margin-left: 0; background: #FFD60A; color: var(--tinta); font-weight: 700; }
@media (max-width: 420px) { .carrito-btn .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .carrito-btn { padding: 6px 8px; gap: 5px; } .barra:has(.carrito-btn:not([hidden])) { column-gap: 10px; } .barra:has(.carrito-btn:not([hidden])) .marca { gap: 8px; } }
@media (max-width: 560px) {      /* portada: logo y «Pedido» arriba; los enlaces, debajo */
  body[data-pagina="inicio"] .barra .carrito-btn { order: 1; margin-left: auto; }
  body[data-pagina="inicio"] .barra nav { order: 2; flex-basis: 100%; justify-content: flex-end; } }

/* Cabecera de la tienda */
.t-cab { display: grid; gap: 28px; align-items: center; padding: 18px 0 0; }
@media (min-width: 900px) { .t-cab { grid-template-columns: 1.15fr .85fr; padding-top: 30px; } }
.t-cab h1 { font-family: var(--f-cartel); font-weight: 400; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.06; margin: 0 0 16px; color: var(--crema); }
.t-cab h1 span { color: #fff; background: var(--acento); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.t-cab .lead { font-size: 19px; line-height: 1.5; margin: 0; max-width: 34em; color: var(--crema-2); }
.abanico { position: relative; height: 300px; }
.abanico img { position: absolute; top: 14px; width: 172px; aspect-ratio: 148 / 210; border-radius: 2px; box-shadow: 0 2px 3px rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.45); }
.abanico img:nth-child(1) { left: 0; transform: rotate(-9deg); }
.abanico img:nth-child(2) { left: 22%; top: 4px; transform: rotate(-1deg); z-index: 1; }
.abanico img:nth-child(3) { left: 44%; top: 30px; transform: rotate(8deg); z-index: 2; }
@media (max-width: 899px) { .abanico { display: none; } }

/* Avisos (tienda cerrada, aviso del dueño, errores de carga) */
.avisos { display: grid; gap: 14px; margin: 22px 0 0; }
.avisos:empty { display: none; }
.avisos-inicio { max-width: 1120px; margin: 4px auto 0; padding: 0 16px; }
.aviso { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 14px 18px; background: var(--memo); color: var(--carbon);
  border-top: 3px solid var(--carbon); box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.3); }
.aviso[hidden] { display: none; }
.aviso > div { flex: 1 1 240px; }
.aviso .t { display: block; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.aviso p { margin: 3px 0 0; font-family: var(--f-texto); font-size: 16.5px; line-height: 1.45; }
.aviso .sello { font-size: 20px; margin: 4px 4px; }
.aviso.error-carga, .aviso.nota-tienda { color: var(--tinta); border-top-color: var(--acento); }
.aviso.error-carga .t, .aviso.nota-tienda .t { color: #B3122A; }     /* 13 px: el rojo oscuro llega a 6:1 sobre el memo */
.aviso .btn { background: #fff; }
.marca-aviso { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acento); color: #fff;
  font-family: var(--f-logo); font-weight: 900; font-size: 22px; flex: none; }
.aviso:focus { outline: 3px solid var(--crema); outline-offset: 3px; }

/* Filtros */
.catalogo-t { margin: 30px 0 10px; }
.filtros { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 8px; }
.filtros[hidden] { display: none; }
.grupo-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.grupo-f .et-f { color: var(--crema-2); }
.chips-f { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-f { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1.5px dashed rgba(242,237,224,.55); border-radius: 2px;
  background: transparent; color: var(--crema); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.chip-f i { width: 11px; height: 11px; background: var(--c, var(--acento)); display: inline-block; }
.chip-f[aria-pressed="true"] { border-style: solid; border-color: var(--crema); background: var(--crema); color: var(--tinta); }
.chip-f:focus-visible { outline: 3px solid #FFD60A; outline-offset: 2px; }
.t-cuenta { margin: 6px 0 14px; font-size: 14.5px; color: var(--crema-2); }
.t-cuenta:empty { display: none; }
.t-vacio { padding: 20px; border: 1.5px dashed rgba(242,237,224,.45); color: var(--crema); text-align: center; }
.t-vacio[hidden] { display: none; }
.t-vacio .btn { background: var(--papel); }

/* Líneas y tarjetas */
.linea-t { margin: 10px 0 40px; scroll-margin-top: 12px; }
.linea-t[hidden] { display: none; }
.linea-cab { margin: 0 0 16px; }
.linea-cab h2 { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.linea-cab h2::before { content: ""; width: 16px; height: 16px; background: var(--acento); flex: none; }
.linea-cab .sub { margin: 0; }
.grilla { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grilla[hidden] { display: none; }
.tarjeta { display: flex; flex-direction: column; min-width: 0; }
.tarjeta[hidden] { display: none; }
.tarjeta .t-img { position: relative; display: block; aspect-ratio: 148 / 210; margin: 14px 14px 0; }
.tarjeta .t-img img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: var(--acento);
  transform: rotate(-1.4deg); box-shadow: 0 2px 3px rgba(0,0,0,.28), 0 8px 16px rgba(0,0,0,.22); }
.tarjeta .t-img.pack img { width: 76%; height: 76%; }
.tarjeta .t-img.pack img:nth-child(1) { left: 2%; top: 0; transform: rotate(-6deg); }
.tarjeta .t-img.pack img:nth-child(2) { left: 12%; top: 10%; transform: rotate(1deg); }
.tarjeta .t-img.pack img:nth-child(3) { left: 22%; top: 20%; transform: rotate(6deg); }
.tarjeta .t-img.sin-img { background: var(--papel-2); border: 1px dashed var(--linea); }
.tarjeta.agotada .t-img img { filter: grayscale(1); opacity: .7; }
.t-cuerpo { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; min-width: 0; }
.t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.insignia { display: inline-block; padding: 3px 7px 2px; background: var(--acento); color: #fff; border-radius: 2px; line-height: 1.1; }
.t-tipo { color: var(--suave); }
.tarjeta h3 { margin: 0; font-family: var(--f-maquina); font-weight: 400; font-size: 20px; line-height: 1.15; }
.tarjeta h3 a { color: inherit; text-decoration: none; }
.tarjeta h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-puntos { list-style: none; margin: 2px 0 0; padding: 0; font-family: var(--f-texto); font-size: 14.5px; line-height: 1.35; color: var(--texto); }
.t-puntos li { position: relative; padding-left: 15px; margin: 0 0 3px; }
.t-puntos li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 6px; height: 6px; background: var(--acento); }
.t-marcas { display: flex; flex-direction: column; gap: 4px; }
.t-preventa { margin: 0; font-size: 14.5px; line-height: 1.35; color: var(--texto); }
.sello-mini { display: inline-block; margin-right: 4px; padding: 2px 6px 1px; border: 2px solid currentColor; border-radius: 3px; color: var(--acento);
  font-family: var(--f-logo); font-weight: 900; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-3deg); }
.t-stock { margin: 0; font-weight: 700; font-size: 14.5px; }
.t-stock.quedan { color: #8A5700; }
.t-stock.agotado { color: #B3122A; }
.precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: auto 0 4px; padding-top: 6px; }
.precio b { font-family: var(--f-logo); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: .02em; color: var(--tinta); }
.precio s { color: var(--suave); font-size: 16px; }
.precio .ahorro { font-family: var(--f-logo); font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--acento);
  border: 2px solid currentColor; border-radius: 3px; padding: 3px 7px 2px; transform: rotate(-3deg); white-space: nowrap; }
.precio.grande b { font-size: 44px; }
.t-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.t-acciones .btn { flex: 1 1 auto; }
.t-acciones .btn:not(.prim), .botones .btn:not(.prim) { background: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.en-pedido { margin: 0; min-height: 1.3em; font-weight: 600; font-size: 14.5px; color: var(--texto); }
.fantasma { min-height: 420px; overflow: hidden; }
.fantasma .t-img { background: var(--papel-2); }
.fantasma i { display: block; height: 14px; margin: 0 0 10px; background: var(--papel-2); border-radius: 2px; }
.fantasma i:nth-child(2) { width: 70%; } .fantasma i:nth-child(3) { width: 40%; height: 28px; margin-top: 26px; }
.grilla.cargando .fantasma { animation: latido 1.4s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .55; } }
@media (max-width: 559px) {
  .grilla { gap: 16px; }
  .tarjeta { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
  .tarjeta .t-img { margin: 16px 0 0 14px; }
  .t-cuerpo { padding: 12px 14px 14px; }
  .tarjeta h3 { font-size: 18px; }
  .t-puntos { display: none; }
  .precio b { font-size: 28px; }
  .fantasma { min-height: 200px; }
}

/* Cómo comprar */
.como-c { margin: 30px 0 10px !important; }
.pasos-c { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pasos-c li { padding: 16px 18px 18px; border-bottom: 1px dashed var(--linea); }
@media (min-width: 560px) { .pasos-c li { border-right: 1px dashed var(--linea); } }
.pasos-c .art { display: block; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.pasos-c b { display: block; font-family: var(--f-maquina); font-weight: 400; font-size: 21px; line-height: 1.15; margin: 4px 0 6px; }
.pasos-c p { margin: 0; font-family: var(--f-texto); font-size: 16px; line-height: 1.45; color: var(--texto); }
.ya-compre { margin: 16px 0 0; color: var(--crema-2); }
.ya-compre a { color: var(--crema); font-weight: 700; }
.ya-compre.vende { font-size: 13.5px; }

/* Carrito (cajón lateral) */
.cajon-pedido { position: fixed; inset: 0; z-index: 60; }
.cajon-pedido[hidden] { display: none; }
.cajon-fondo { position: absolute; inset: 0; background: rgba(12,14,12,.6); opacity: 0; transition: opacity .2s ease; }
.cajon-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px); display: flex; flex-direction: column; background: var(--papel);
  color: var(--tinta); box-shadow: -10px 0 34px rgba(0,0,0,.5); transform: translateX(104%); transition: transform .22s ease; outline: none; }
.cajon-pedido.abierto .cajon-fondo { opacity: 1; }
.cajon-pedido.abierto .cajon-panel { transform: none; }
.cajon-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 10px 10px 18px; border-bottom: 1.5px solid var(--tinta);
  box-shadow: inset 6px 0 0 var(--acento); }
.cajon-cab h2 { margin: 0; font-family: var(--f-maquina); font-weight: 400; font-size: 25px; outline: none; }
.cajon-cab .cerrar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--tinta); }
.cajon-cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 18px; }
.cajon-pie { display: grid; gap: 8px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px dashed var(--linea); background: var(--papel-2); }
.cajon-pie .btn { width: 100%; }
.cajon-pie .totales { margin: 0; }
.cajon-pie .totales .total { margin: 0; padding-top: 0; border-top: 0; }
.cajon-pie .totales .total dd { font-size: 28px; }
.cajon-panel.papel { position: absolute; border-radius: 0; }
.cajon-pie .btn:not(.prim) { background: #fff; }
.cajon-pedido .vacio { padding: 18px 0; }
.cajon-pedido .vacio p { margin: 0 0 12px; }
.nota-cambio { margin: 10px 0 0; padding: 8px 10px; background: #FFF6D6; border-left: 4px solid #E0A800; font-size: 14.5px; line-height: 1.4; }
.nota-cambio:empty { display: none; }
.cerrada-nota { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--carbon); }
.cerrada-nota:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .cajon-fondo, .cajon-panel { transition: none; } .grilla.cargando .fantasma { animation: none; } }

/* Líneas del pedido (cajón y pago) */
.lineas { list-style: none; margin: 0; padding: 0; }
.item-p { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "img nom monto" "img ctl ctl"; gap: 6px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--linea); }
.item-p .mini { grid-area: img; align-self: start; width: 52px; height: 52px; object-fit: cover; border-radius: 2px; background: var(--acento);
  box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.item-p .nom { grid-area: nom; font-family: var(--f-maquina); font-size: 16.5px; line-height: 1.2; min-width: 0; }
.item-p .nom a { color: inherit; text-decoration: none; }
.item-p .nom a:hover { text-decoration: underline; }
.item-p .nom small { display: block; margin-top: 2px; font-family: var(--f-form); font-size: 13.5px; color: var(--suave); }
.item-p .monto { grid-area: monto; font-weight: 700; text-align: right; white-space: nowrap; }
.item-p .ctl { grid-area: ctl; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.paso { display: inline-flex; align-items: center; border: 1.5px solid var(--tinta); border-radius: 3px; background: #fff; }
.paso button { width: 42px; height: 40px; border: 0; background: transparent; font-size: 21px; font-weight: 700; line-height: 1; color: var(--tinta); }
.paso button:disabled { color: #B9B2A4; cursor: not-allowed; }
.paso output, .paso input { width: 44px; min-width: 34px; text-align: center; font: inherit; font-weight: 700; font-size: 17px; border: 0;
  border-left: 1px solid var(--linea); border-right: 1px solid var(--linea); line-height: 40px; height: 40px; background: #fff; color: var(--tinta);
  -moz-appearance: textfield; appearance: textfield; }
.paso input::-webkit-outer-spin-button, .paso input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.paso-1 { font-size: 14.5px; color: var(--suave); }
.quitar { border: 0; background: none; padding: 6px 0; min-height: 36px; color: var(--tinta); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 2px; }
.cupon-c { margin: 14px 0 0; }
.fila-cupon { display: flex; gap: 8px; }
.fila-cupon input { flex: 1; min-width: 0; text-transform: uppercase; }
.fila-cupon .btn { flex: none; background: #fff; }
.cupon-msg { margin: 5px 0 0; font-size: 14.5px; font-weight: 600; color: var(--texto); }
.cupon-msg:empty { display: none; }
.cupon-msg.bien { color: #17704A; }
.cupon-msg.mal { color: #B3122A; }
.envio-est { margin: 14px 0 0; }
.envio-est[hidden] { display: none; }
.envio-est select { margin-top: 2px; }
.totales { margin: 14px 0 0; }
.totales[hidden] { display: none; }
.totales > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.totales > div[hidden] { display: none; }
.totales dt { color: var(--texto); }
.totales dd { margin: 0; font-weight: 700; text-align: right; }
.totales .desc dd { color: #17704A; }
.totales .total { border-top: 1.5px solid var(--tinta); margin-top: 6px; padding-top: 9px; }
.totales .total dt { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.totales .total dd { font-family: var(--f-logo); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: .02em; }
.nota-envio { margin: 8px 0 0; font-size: 15px; color: var(--texto); }
.nota-envio:empty { display: none; }
.letra-chica { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--suave); }
.vacio { margin: 8px 0; font-family: var(--f-texto); font-size: 16px; color: var(--texto); }
.vacio[hidden] { display: none; }
.vacio a, .letra-chica a, .campo label a { color: var(--tinta); font-weight: 700; }
.vacio .btn { color: #fff; }

/* Pedido flotante (al bajar en la tienda) y WhatsApp */
.flota-pedido { position: fixed; z-index: 30; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 520px);
  display: flex; align-items: center; gap: 6px 12px; padding: 10px 12px 10px 14px; border: 0; background: var(--papel); color: var(--tinta); text-align: left;
  border-left: 6px solid var(--acento); border-radius: 2px; box-shadow: 0 6px 22px rgba(0,0,0,.55); font-weight: 600; font-size: 15.5px; }
.flota-pedido[hidden] { display: none; }
.flota-pedido b { margin-left: auto; font-family: var(--f-logo); font-weight: 900; font-size: 23px; line-height: 1; }
.flota-pedido .ver { display: inline-flex; align-items: center; gap: 4px; padding: 7px 11px; background: var(--acento); color: #fff; border-radius: 3px; font-size: 15px; white-space: nowrap; }
.flota-pedido:focus-visible { outline: 3px solid #FFD60A; outline-offset: 2px; }
.wa-flota { position: fixed; z-index: 31; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: #1E8A5A; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.45); border: 2px solid #fff; }
.wa-flota .ico { width: 28px; height: 28px; }
.wa-flota:focus-visible { outline: 3px solid #FFD60A; outline-offset: 2px; }
body.con-flota .wa-flota { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (max-width: 599px) { body.con-flota .flota-pedido { width: calc(100% - 92px); left: 12px; transform: none; } body.con-flota .wa-flota { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .flota-pedido .fp-n { display: none; } }
/* Mientras se ve el aviso de cookies, el pedido flotante y el WhatsApp suben por encima (tienda.js mide el aviso) */
body.con-consent .flota-pedido { bottom: calc(var(--alto-consent, 150px) + 22px + env(safe-area-inset-bottom)); }
body.con-consent .wa-flota { bottom: calc(var(--alto-consent, 150px) + 24px + env(safe-area-inset-bottom)); }
body.con-consent.con-flota .wa-flota { bottom: calc(var(--alto-consent, 150px) + 90px + env(safe-area-inset-bottom)); }
@media (max-width: 599px) { body.con-consent.con-flota .wa-flota { bottom: calc(var(--alto-consent, 150px) + 24px + env(safe-area-inset-bottom)); } }

/* Aviso de cookies (solo si la tienda usa analítica) */
.consent { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 680px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; background: var(--memo); color: var(--carbon);
  border-top: 3px solid var(--carbon); box-shadow: 0 8px 26px rgba(0,0,0,.55); }
.consent p { flex: 1 1 300px; margin: 0; font-family: var(--f-texto); font-size: 15px; line-height: 1.45; }
.consent a { color: var(--carbon); font-weight: 700; }
.consent .botones { flex: none; gap: 8px; }
.consent .btn { min-width: 112px; background: #fff; }

/* Novedades por correo (en el pie) */
.boletin { max-width: 760px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding: 18px 20px; text-align: left;
  background: var(--memo); color: var(--carbon); border-top: 3px solid var(--carbon); box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.3); }
.boletin .bol-tx { flex: 1 1 220px; }
.boletin h2 { margin: 0 0 4px; font-family: var(--f-maquina); font-weight: 400; font-size: 22px; line-height: 1.15; color: var(--carbon); }
.boletin p { margin: 0; font-family: var(--f-texto); font-size: 15px; line-height: 1.4; color: var(--carbon); }
.boletin-f { flex: 1 1 300px; min-width: 0; }
.bol-fila { display: flex; gap: 8px; }
.bol-fila input { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-family: var(--f-texto); font-size: 16px; color: var(--tinta);
  background: #fff; border: 1.5px solid #A79F8E; border-bottom: 2px solid var(--tinta); border-radius: 2px; }
.bol-fila input[aria-invalid="true"] { border-color: #B3122A; background: #FFF5F4; }
.bol-fila input:focus-visible { outline: 3px solid var(--acento); outline-offset: 1px; }
.boletin .b-msg { margin: 6px 0 0; font-family: var(--f-form); font-weight: 600; font-size: 14.5px; }
.boletin .b-msg:empty { display: none; }
.boletin .b-msg.mal { color: #B3122A; }
.boletin .b-msg:focus { outline: none; }
.boletin .b-consentimiento { margin: 6px 0 0; font-family: var(--f-form); font-size: 12.5px; line-height: 1.4; color: #4A4F72; }
.boletin a { color: var(--carbon); }
.boletin-f.hecho .bol-fila, .boletin-f.hecho .b-consentimiento { display: none; }
.ts { margin: 8px 0 4px; min-height: 0; }
.ts[hidden] { display: none; }
.cierre .legales .enlace { color: var(--crema-2); font-size: inherit; }

/* Ficha de producto (SSR: api/_lib/vistas/producto.js) */
.ficha-m { max-width: 1120px; margin: 0 auto; padding: 4px 16px 40px; }
.migas { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 16px; padding: 0; list-style: none; font-size: 14.5px; color: var(--crema-2); }
.migas li + li::before { content: "›"; margin-right: 8px; color: var(--crema-2); }
.migas a { color: var(--crema); }
.ficha-prod { display: grid; gap: 20px 32px; padding: 16px 16px 20px 34px; }
.ficha-prod .lomo { position: absolute; left: 0; top: 0; bottom: 0; width: 20px; background: var(--acento); border-radius: 2px 0 0 2px; color: #fff;
  display: flex; align-items: center; justify-content: center; }
.ficha-prod .lomo span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-logo); font-weight: 900; font-size: 11px; letter-spacing: .24em; white-space: nowrap; }
@media (min-width: 860px) { .ficha-prod { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); padding: 26px 30px 30px 56px; } .ficha-prod .lomo { width: 28px; } }
.galeria { min-width: 0; }
.galeria .principal { position: relative; margin: 6px 0 0; }
.galeria .principal img { display: block; width: 100%; aspect-ratio: 148 / 210; object-fit: cover; border-radius: 2px; background: var(--acento); transform: rotate(-1.2deg);
  box-shadow: 0 2px 3px rgba(0,0,0,.3), 0 12px 24px rgba(0,0,0,.25); }
.galeria .principal .clip { left: 26px; top: -16px; width: 16px; height: 44px; }
.miniaturas { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.miniaturas button { padding: 3px; border: 1.5px solid var(--linea); background: #fff; border-radius: 2px; line-height: 0; }
.miniaturas button[aria-pressed="true"] { border-color: var(--tinta); box-shadow: 0 0 0 2px var(--acento); }
.miniaturas img { width: 64px; height: 64px; object-fit: cover; }
.info-p { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.info-p h1 { margin: 0; font-family: var(--f-maquina); font-weight: 400; font-size: clamp(25px, 4.2vw, 36px); line-height: 1.12; }
.info-p .corto-p { margin: 0; font-family: var(--f-texto); font-size: 16.5px; color: var(--texto); }
.preventa-c { margin: 0; padding: 10px 12px; background: var(--papel-2); border-left: 4px solid var(--acento); font-size: 15.5px; line-height: 1.45; }
.preventa-c[hidden] { display: none; }
.disp { margin: 0; font-weight: 700; font-size: 15.5px; color: #17704A; }
.disp.quedan { color: #8A5700; }
.disp.agotado, .disp.retirado { color: #B3122A; }
.compra-p { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 4px; }
.cantidad-c { display: flex; flex-direction: column; gap: 4px; }
.cantidad-c[hidden] { display: none; }
.cantidad-c label { font-weight: 600; font-size: 14.5px; }
.compra-p .agregar { flex: 1 1 220px; min-height: 52px; font-size: 18px; }
.info-p .letra-chica { margin: 0; }
.info-p .precio { margin: 4px 0 0; }
.seccion-p { margin: 26px 0 0; }
.et-form .et-h { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.seccion-p .cuerpo-doc p:last-child { margin-bottom: 0; }
.puntos-p { list-style: none; margin: 10px 0 0 !important; padding: 0 !important; }
.puntos-p li { position: relative; padding-left: 18px; }
.puntos-p li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; background: var(--acento); }
.incluye-l { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
.incluye-l li { display: flex; align-items: center; gap: 12px; }
.incluye-l img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; background: var(--acento); }
.incluye-l a { color: var(--tinta); font-weight: 700; }
.zonas-l { margin: 0 !important; }
.relacionados-p { margin: 40px 0 0; }
.relacionados-p h2 { font-family: var(--f-cartel); font-weight: 400; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.05; margin: 0 0 16px; color: var(--crema); }

/* Formularios (como un formulario impreso) */
.pago-m { max-width: 1120px; margin: 0 auto; padding: 8px 16px 40px; }
.orden-cuerpo { display: grid; }
@media (min-width: 900px) { .orden-cuerpo { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } .col-carrito { border-right: 1px dashed var(--linea); } }
.col-carrito, .col-datos { padding: 16px 20px 22px; min-width: 0; }
.col-carrito .et-f { margin: 0 0 4px; }
.col-carrito .et-f:focus { outline: none; }
.cargando-c p { margin: 8px 0; color: var(--suave); }
.cargando-c[hidden] { display: none; }
.orden fieldset, .reclamo fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.orden fieldset[hidden] { display: none; }
.orden fieldset > legend { width: 100%; margin: 0 0 12px; padding: 0 0 4px; border-bottom: 1.5px solid var(--tinta);
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.campo { margin: 0 0 13px; min-width: 0; }
.campo label, .et-campo { display: block; margin: 0 0 4px; padding: 0; font-weight: 600; font-size: 15px; color: var(--tinta); }
.campo label small { font-weight: 400; color: var(--suave); }
.ayuda { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--suave); }
.papel input[type=text], .papel input[type=email], .papel input[type=tel], .papel input[type=password], .papel input[type=number], .papel textarea, .papel select {
  display: block; width: 100%; min-height: 46px; padding: 9px 11px; border-radius: 2px; font: inherit; font-family: var(--f-texto); font-size: 16.5px; color: var(--tinta);
  background: #fff; border: 1.5px solid #A79F8E; border-bottom: 2px solid var(--tinta); }
.papel .paso input[type=number] { display: inline-block; width: 46px; min-height: 0; padding: 0; border: 0; border-left: 1px solid var(--linea); border-right: 1px solid var(--linea);
  font-family: var(--f-form); }
.papel textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.papel select { font-family: var(--f-form); }
.papel input:focus-visible, .papel textarea:focus-visible, .papel select:focus-visible, .opcion:focus-within, .check input:focus-visible {
  outline: 3px solid var(--acento); outline-offset: 1px; }
.papel [aria-invalid="true"], .papel input[aria-invalid="true"], .papel textarea[aria-invalid="true"], .papel select[aria-invalid="true"] {
  border-color: #B3122A; border-bottom-color: #B3122A; background: #FFF5F4; }
.papel input::placeholder { color: #A79F8E; }
.error { margin: 5px 0 0; font-weight: 600; font-size: 15px; line-height: 1.35; color: #B3122A; }
.error:empty { display: none; }
.error::before { content: "✕ "; }
.error.general { margin: 0 0 12px; padding: 10px 12px; background: #FFF5F4; border-left: 4px solid #B3122A; }
.dos { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.opciones { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.orden .opciones > legend { width: auto; margin: 0 0 6px; padding: 0; border: 0; font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; }
.opcion { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 8px; padding: 11px 12px; border: 1.5px solid var(--linea); background: #fff; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--tinta); box-shadow: inset 5px 0 0 var(--acento); }
.opcion input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--acento); }
.opcion b { display: block; font-weight: 700; }
.opcion small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--texto); }
.opciones.en-linea { display: flex; flex-wrap: wrap; gap: 0 10px; }
.opciones.en-linea legend { width: 100%; }
.opciones.en-linea .opcion, .opciones.en-linea .op-lista .opcion { flex: 1 1 140px; }
.opciones.en-linea .op-lista { display: flex; flex-wrap: wrap; gap: 0 10px; width: 100%; }
.opciones.en-linea .error { width: 100%; }
.check { display: flex; flex-wrap: wrap; gap: 4px 11px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--acento); }
.check label { flex: 1 1 0; font-weight: 500; margin: 0; }
.check .error { width: 100%; }
.nota-destino { margin: 4px 0 12px; padding: 9px 12px; font-size: 15px; line-height: 1.4; background: var(--papel-2); border-left: 3px solid var(--carbon); color: var(--carbon); }
.nota-destino:empty, .nota-destino[hidden] { display: none; }
.pagar { width: 100%; min-height: 56px; margin-top: 4px; font-size: 18.5px; }
.pagar .ico { width: 20px; height: 20px; }
.pagar-nota { margin: 8px 0 0; font-weight: 600; font-size: 15px; color: var(--carbon); }
.pagar-nota:empty { display: none; }
.vende { border-top: 1px dashed var(--linea); padding-top: 8px; }
mark.falta { background: #FFE45C; color: var(--tinta); padding: 0 3px; font-family: var(--f-form); font-weight: 700; font-size: .92em; outline: 1.5px dashed #B3122A; }

/* Recibo y seguimiento del pedido */
.recibo-m { max-width: 800px; margin: 0 auto; padding: 18px 16px 40px; }
.recibo-m .avisos { margin: 0 0 18px; }
.r-cab { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 14px 20px 10px; border-bottom: 1px solid var(--tinta); }
.r-num .et-f { display: block; }
.r-num b { display: block; font-family: var(--f-cartel); font-weight: 400; font-size: clamp(24px, 6vw, 34px); line-height: 1.05; color: var(--acento); letter-spacing: .01em; }
.r-num small { display: block; margin-top: 3px; font-size: 14px; color: var(--suave); }
.r-sello .sello { font-size: 24px; padding: 6px 11px 4px; }
.r-cuerpo { padding: 14px 20px 20px; }
.recibo h1 { margin: 0 0 6px; font-family: var(--f-maquina); font-weight: 400; font-size: clamp(25px, 5vw, 32px); line-height: 1.15; }
.recibo h1:focus { outline: none; }
.r-txt { margin: 0 0 14px; font-family: var(--f-texto); font-size: 17px; line-height: 1.5; }
.linea-tiempo { list-style: none; display: flex; margin: 8px 0 6px; padding: 0; }
.linea-tiempo li { position: relative; flex: 1 1 0; min-width: 0; padding: 30px 4px 0; text-align: center; font-size: 13.5px; line-height: 1.25; color: var(--suave); }
.linea-tiempo li::before { content: ""; position: absolute; left: 50%; top: 4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff;
  border: 2px solid var(--linea); box-sizing: border-box; z-index: 1; }
.linea-tiempo li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--linea); }
.linea-tiempo li:first-child::after { display: none; }
.linea-tiempo li b { display: block; font-weight: 700; }
.linea-tiempo li small { display: block; margin-top: 2px; font-size: 12.5px; }
.linea-tiempo li.hecho { color: var(--tinta); }
.linea-tiempo li.hecho::before { background: #1E8A5A; border-color: #1E8A5A; }
.linea-tiempo li.hecho::after { background: #1E8A5A; }
.linea-tiempo li[aria-current="step"]::before { box-shadow: 0 0 0 4px rgba(30,138,90,.22); }
.linea-tiempo li.final::before { background: #B3122A; border-color: #B3122A; }
.linea-tiempo li.final { color: #B3122A; }
@media (max-width: 520px) {
  .linea-tiempo { flex-direction: column; gap: 0; }
  .linea-tiempo li { padding: 2px 0 14px 32px; text-align: left; }
  .linea-tiempo li::before { left: 0; top: 2px; margin-left: 0; }
  .linea-tiempo li::after { left: 8px; top: -14px; width: 2px; height: 18px; }
}
.r-items { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 16px; }
.r-items th, .r-items td { padding: 9px 6px; text-align: left; border-bottom: 1px dashed var(--linea); vertical-align: top; }
.r-items thead th { font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); border-bottom: 1.5px solid var(--tinta); }
.r-items .num, .r-items td:last-child { text-align: right; white-space: nowrap; }
.r-items tbody td:first-child { width: 58px; font-weight: 700; }
.r-items tbody td:nth-child(2) { font-family: var(--f-maquina); }
.r-items tbody td small { display: block; font-family: var(--f-form); font-size: 13.5px; color: var(--suave); }
.r-items tfoot th { font-weight: 600; text-align: left; }
.r-items tfoot .sub th, .r-items tfoot .sub td { border-bottom: 0; padding: 4px 6px; }
.r-items tfoot .total th { vertical-align: middle; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 0; border-top: 1.5px solid var(--tinta); }
.r-items tfoot .total td { font-family: var(--f-logo); font-weight: 900; font-size: 30px; border-bottom: 0; border-top: 1.5px solid var(--tinta); }
.r-sec { margin: 22px 0 0; padding: 16px 0 0; border-top: 1.5px solid var(--tinta); }
.r-sec[hidden] { display: none; }
.r-sec h2 { margin: 0 0 10px; font-family: var(--f-maquina); font-weight: 400; font-size: 23px; }
.r-aviso { padding: 14px 16px; border: 0; background: var(--papel-2); border-left: 5px solid var(--carbon); }
#r-rechazado.r-aviso, #r-reintento.r-aviso, #r-pausa.r-aviso { border-left-color: #B3122A; }
.r-nota { margin: 10px 0; font-family: var(--f-texto); font-size: 16px; line-height: 1.5; color: var(--texto); }
.r-nota a { color: var(--tinta); font-weight: 700; }
.r-nota:empty, .r-nota[hidden] { display: none; }
.r-entrega { padding: 8px 12px; background: var(--papel-2); border-left: 4px solid var(--acento); color: var(--tinta); }
.bloque-d { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px dashed var(--linea); }
.bloque-d > b { flex: 0 0 100%; font-family: var(--f-maquina); font-weight: 400; font-size: 19px; }
.bloque-d .desc-a { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bloque-d .btn { background: #fff; }
.bloque-d small { font-size: 13px; color: var(--suave); padding-left: 2px; }
.r-dir { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 16px; }
.r-dir dt { font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); padding-top: 3px; }
.r-dir dd { margin: 0; overflow-wrap: anywhere; }
.r-guia { margin: 14px 0 0; padding: 12px 14px; border: 1.5px solid var(--tinta); background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.r-guia[hidden] { display: none; }
.r-guia span b { display: block; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.r-guia .btn { margin-left: auto; }
.r-pie { margin: 20px 0 0; padding-top: 10px; border-top: 1px dashed var(--linea); font-size: 14.5px; color: var(--suave); }
.r-pie a { color: var(--tinta); font-weight: 600; }

/* Documentos legales, Libro de Reclamaciones, Mis descargas y suscripción */
.doc { max-width: 880px; margin: 0 auto; padding: 8px 16px 40px; }
.doc .cab-archivo h1 { display: inline-flex; align-items: center; gap: 10px; }
.doc .cab-archivo h1 .ico { width: 30px; height: 30px; }
.borrador { margin: 18px 0 0; padding: 10px 14px; background: #FFE45C; color: var(--tinta); border: 2px dashed #B3122A; font-size: 15px; }
.hoja-doc[hidden] { display: none; }
.cuerpo-doc { padding: 8px 22px 22px; font-family: var(--f-texto); font-size: 16px; line-height: 1.55; }
.cuerpo-doc p, .cuerpo-doc ul, .cuerpo-doc ol { margin: 0 0 10px; }
.cuerpo-doc ul, .cuerpo-doc ol { padding-left: 22px; }
.cuerpo-doc li { margin: 0 0 5px; }
.cuerpo-doc a { color: var(--tinta); font-weight: 700; }
.cuerpo-doc h1, .cuerpo-doc > h2 { margin: 8px 0 8px; font-family: var(--f-maquina); font-weight: 400; font-size: clamp(24px, 5vw, 30px); line-height: 1.15; }
.cuerpo-doc h2:focus { outline: none; }
.cuerpo-doc .botones { margin-top: 14px; }
.art-doc { margin: 0; padding: 14px 0 6px; border-bottom: 1px dashed var(--linea); }
.art-doc:last-of-type { border-bottom: 0; }
.art-doc h2, .reclamo fieldset.art-doc > legend { margin: 0 0 8px; font-family: var(--f-maquina); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--tinta); }
.reclamo fieldset.art-doc { padding-top: 14px; }
.reclamo fieldset.art-doc > legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; }
.reclamo fieldset.art-doc > legend + * { clear: both; }
.art-doc .art { display: inline-block; margin-right: 6px; font-family: var(--f-form); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--acento); vertical-align: 2px; }
.ficha-emp { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 6px 0 12px; padding: 10px 14px; background: var(--papel-2);
  border: 1px solid var(--linea); font-family: var(--f-form); font-size: 15.5px; }
.ficha-emp dt { font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); padding-top: 2px; }
.ficha-emp dd { margin: 0; overflow-wrap: anywhere; }
.tabla-precios { overflow-x: auto; margin: 0 0 10px; }
.tabla-precios table { width: 100%; border-collapse: collapse; font-family: var(--f-form); font-size: 15px; }
.tabla-precios th, .tabla-precios td { padding: 7px 8px; text-align: left; border-bottom: 1px dashed var(--linea); }
.tabla-precios th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1.5px solid var(--tinta); }
.tabla-precios td + td { white-space: nowrap; }
.contacto { margin-top: 16px !important; font-family: var(--f-form); font-weight: 600; }
.reclamo .cuerpo-doc, #form-reenviar .cuerpo-doc { font-family: var(--f-form); }
.reclamo .campo label, .reclamo .et-campo { font-family: var(--f-form); }
.leyenda-lr { margin: 14px 0 16px !important; padding: 12px 14px 12px 30px !important; background: var(--papel-2); border: 1px solid var(--linea); font-size: 14.5px; line-height: 1.45; }
.rc-numero { font-size: 18px; }
.rc-numero b { font-family: var(--f-cartel); font-weight: 400; font-size: clamp(22px, 6vw, 32px); color: var(--acento); letter-spacing: .01em; overflow-wrap: anywhere; }
.rc-sello { display: flex; justify-content: flex-end; }
.rc-sello .sello { font-size: 24px; }
.s-sello { display: flex; justify-content: flex-end; padding-top: 6px; }
.s-sello .sello { font-size: 22px; }
.no-existe h1 { margin-top: 0; }
@media (max-width: 520px) {
  .cuerpo-doc { padding: 6px 14px 18px; }
  .col-carrito, .col-datos { padding: 14px 14px 18px; }
  .r-cab, .r-cuerpo { padding-left: 14px; padding-right: 14px; }
  .ficha-emp, .r-dir { grid-template-columns: 1fr; gap: 0 0; }
  .ficha-emp dd, .r-dir dd { margin-bottom: 6px; }
  .boletin { padding: 16px 14px; }
}
