/* Fuentes propias (SIL Open Font License), servidas desde el sitio: no bloquean la carga como Google Fonts.
   Solo caracteres latinos (español). El navegador descarga cada archivo solo si la página lo usa. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Shippori Mincho B1"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/shippori-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Shippori Mincho B1"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/shippori-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fredoka-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/nunito-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Shippori Mincho B1"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/shippori-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Shippori Mincho B1"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/shippori-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fredoka-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Estilos base compartidos (tienda, panel, caja, config). Móvil primero, botones grandes.
   Los colores de la marca los fija js/comun/marca.js desde la configuración:
   --azul = COLOR PRINCIPAL de la marca (el nombre se mantiene por compatibilidad), --crema = fondo, --tinta = texto. */
:root {
  --azul: #c0392b;
  --azul-oscuro: #8e2a20;
  --azul-claro: #f8e6e3;
  --blanco: #ffffff;
  --crema: #fbf7ef;          /* fondo cálido de papel */
  --tinta: #1d1d1b;
  --tinta-suave: #5b5a55;
  --borde: #e3ddd0;
  --verde: #1f8a4c;          /* éxito, "agregado", WhatsApp */
  --whatsapp: #25d366;
  --rojo: #c8312b;           /* AGOTADO, errores */
  --amarillo: #f4b400;       /* ofertas, avisos */
  --amarillo-claro: #fff6d6;
  --radio: 14px;
  --radio-boton: 12px;
  /* Derivadas del tema (las recalcula js/comun/marca.js con contraste AA); estos valores sirven sin tema */
  --sobre-primario: #ffffff;   /* texto sobre botones del color principal */
  --sobre-acento: #1d1d1b;     /* texto sobre el color de acento */
  --enlace: var(--azul);       /* texto de color de marca legible sobre el fondo */
  --enlace-fuerte: var(--azul-oscuro);
  --foco: var(--amarillo);
  --error-texto: #a3231d;
  --peso-titulo: 700;
  --sombra: 0 2px 10px rgba(29, 29, 27, 0.08);
  --fuente: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-titulo: "Fredoka", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.5 var(--fuente);
  color: var(--tinta);
  background: var(--crema);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--enlace); }

/* Botones: mínimo 48px de alto para dedos y personas mayores */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 18px;
  border: 2px solid transparent; border-radius: var(--radio-boton);
  font: 700 1rem/1.1 var(--fuente); text-decoration: none; cursor: pointer;
  background: var(--azul); color: var(--sobre-primario);
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--azul-oscuro); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { background: #b9b6ad; color: #fff; cursor: not-allowed; transform: none; }
.btn--secundario { background: var(--blanco); color: var(--enlace); border-color: var(--azul); }
.btn--secundario:hover { background: var(--azul-claro); }
.btn--whatsapp { background: var(--whatsapp); color: #0b3d1f; }
.btn--whatsapp:hover { background: #1fb457; }
.btn--peligro { background: #b3261e; color: #fff; }
.btn--peligro:hover { background: #8c1d17; }
.btn--bloque { width: 100%; }
.btn--chico { min-height: 40px; padding: 6px 12px; font-size: .9rem; }

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

/* Formularios */
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo label { font-weight: 700; }
.campo small { color: var(--tinta-suave); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 2px solid var(--borde); border-radius: min(var(--radio), 10px);
  font: 1rem var(--fuente); color: var(--tinta); background: var(--blanco);
}
input:focus, select:focus, textarea:focus { border-color: var(--azul); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 22px; min-height: 22px; accent-color: var(--azul); }

/* Tarjetas y avisos */
.tarjeta { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; }
.aviso { padding: 12px 14px; border-radius: 12px; background: var(--amarillo-claro); border: 2px solid var(--amarillo); }
.aviso--error { background: #fde8e7; border-color: var(--rojo); color: #7d1d19; }
.aviso--ok { background: #e3f5ea; border-color: var(--verde); color: #10512b; }
.etiqueta {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  background: var(--azul-claro); color: var(--enlace-fuerte);
}
.etiqueta--agotado { background: var(--rojo); color: #fff; }
.etiqueta--oferta { background: var(--amarillo); color: var(--sobre-acento); }

.oculto { display: none !important; }
.solo-lectores {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Mensaje flotante breve ("Agregado a la canasta") */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1000;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px;
  background: var(--tinta); color: var(--crema); font-weight: 700; box-shadow: var(--sombra);
}

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

/* Fuentes de los temas (SIL OFL): Oswald, Cormorant Garamond, Inter, Bebas Neue y Montserrat. Solo latin y latin-ext. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/oswald-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/oswald-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/cormorant-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/cormorant-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/bebas-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/bebas-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
