/* Conce Pack - pagina web.
   Colores del logo: el rojo y blanco del toldo, sobre un fondo crema calido. */
:root {
  --rojo: #e3262e;
  --rojo-osc: #b91c22;
  --rojo-suave: #fdecec;
  --crema: #fffaf4;
  --papel: #ffffff;
  --tinta: #231c19;
  --suave: #6b605a;
  --borde: #efe2d5;
  --amarillo: #ffd166;
  --wa: #15803d;
  --wa-osc: #116a32;
  --sombra: 0 1px 2px rgba(60, 30, 10, .06), 0 6px 20px rgba(60, 30, 10, .07);
  --sombra-alta: 0 10px 40px rgba(40, 20, 10, .22);
  --radio: 16px;
  --titulos: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--crema); color: var(--tinta);
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rojo-osc); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .relleno { fill: currentColor; stroke: none; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.gris { color: var(--suave); }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tinta); color: #fff; padding: 8px 14px; border-radius: 8px; }
.saltar:focus { left: 8px; }

/* ------------------------------- toldo y aviso ------------------------------- */
.toldo {
  position: relative; height: 18px;
  background: repeating-linear-gradient(90deg, var(--rojo) 0 28px, #fff 28px 56px);
}
.toldo::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; z-index: 31;
  background:
    radial-gradient(circle at 14px 0, var(--rojo) 13.5px, transparent 14.5px) 0 0 / 56px 12px repeat-x,
    radial-gradient(circle at 42px 0, #fff 13.5px, transparent 14.5px) 0 0 / 56px 12px repeat-x;
  filter: drop-shadow(0 2px 1px rgba(60, 30, 10, .12));
  pointer-events: none;
}
.aviso-ejemplo {
  background: var(--amarillo); color: #3b2a00; text-align: center; font-weight: 700; font-size: 14px;
  padding: 16px 16px 6px;
}

/* --------------------------------- cabecera --------------------------------- */
.cabecera {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 250, 244, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.cabecera.con-sombra { border-bottom-color: var(--borde); box-shadow: 0 4px 18px rgba(60, 30, 10, .06); }
.cab-int { display: flex; align-items: center; gap: 18px; min-height: 68px; padding-top: 12px; padding-bottom: 6px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; }
.marca img { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--borde); }
.marca span { display: flex; flex-direction: column; line-height: 1.05; }
.marca b { font-family: var(--titulos); font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.marca small { color: var(--rojo); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.menu { display: flex; gap: 4px; }
.menu a { color: var(--tinta); text-decoration: none; font-weight: 650; padding: 8px 12px; border-radius: 999px; }
.menu a:hover { background: var(--rojo-suave); color: var(--rojo-osc); }
.boton-pedido {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--tinta); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700;
}
.boton-pedido:hover { background: #000; }
.contador {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rojo); color: #fff;
  font-size: 13px; display: inline-grid; place-items: center; font-weight: 800;
}
.boton-pedido.salta { animation: salta .45s ease; }
@keyframes salta { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

/* ---------------------------------- portada ---------------------------------- */
.portada {
  background:
    radial-gradient(circle at 8% 20%, rgba(227, 38, 46, .07) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 85%, rgba(255, 209, 102, .22) 0 160px, transparent 161px);
  padding: 34px 0 40px;
}
.portada-int { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 30px; }
.kicker {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px 6px 8px;
  background: var(--papel); border: 1px solid var(--borde); border-radius: 999px; font-weight: 700; font-size: 14px;
}
.kicker svg { width: 18px; height: 18px; color: var(--rojo); }
.portada h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
.portada h1 span { color: var(--rojo); display: block; }
.bajada { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--suave); max-width: 33em; margin: 16px 0 24px; }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 750; text-decoration: none; border: 2px solid transparent;
  transition: transform .12s, background .15s, box-shadow .15s; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-rojo { background: var(--rojo); color: #fff; box-shadow: 0 6px 16px rgba(227, 38, 46, .28); }
.btn-rojo:hover { background: var(--rojo-osc); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(21, 128, 61, .25); }
.btn-wa:hover { background: var(--wa-osc); }
.btn-borde { background: var(--papel); color: var(--tinta); border-color: var(--borde); }
.btn-borde:hover { border-color: var(--tinta); }
.btn-blanco { background: #fff; color: var(--rojo-osc); }
.btn-blanco:hover { background: var(--crema); }
.btn.ancho { width: 100%; }

.portada-logo { position: relative; justify-self: center; width: min(100%, 340px); aspect-ratio: 1; display: grid; place-items: center; }
.portada-logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 26px rgba(120, 40, 20, .16));
  animation: flota 6s ease-in-out infinite;
}
@keyframes flota { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.chispa { position: absolute; width: 22px; height: 8px; border-radius: 6px; }
.c1 { background: var(--rojo); top: 6%; left: 14%; transform: rotate(-30deg); }
.c2 { background: var(--amarillo); top: 18%; right: 4%; transform: rotate(40deg); }
.c3 { background: #f472b6; bottom: 12%; left: 2%; transform: rotate(20deg); }
.c4 { background: #38bdf8; bottom: 2%; right: 22%; transform: rotate(-50deg); }
.c5 { background: #34d399; top: 48%; right: -2%; transform: rotate(75deg); width: 16px; }
.c6 { background: var(--amarillo); top: 2%; left: 52%; transform: rotate(10deg); width: 14px; }

/* --------------------------------- secciones --------------------------------- */
.seccion { padding: 34px 16px; }
.seccion > h2 { margin-bottom: 18px; }

.grilla-cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tarjeta-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px;
  box-shadow: var(--sombra); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tarjeta-cat:hover { transform: translateY(-3px); border-color: var(--tinte); box-shadow: 0 10px 28px rgba(60, 30, 10, .12); }
.tarjeta-cat .icono { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--fondo); color: var(--tinte); }
.tarjeta-cat .icono svg { width: 28px; height: 28px; }
.tarjeta-cat b { font-family: var(--titulos); font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.tarjeta-cat small { color: var(--suave); font-size: 13.5px; line-height: 1.35; }
.tarjeta-cat .cuenta { font-weight: 700; color: var(--tinte); font-size: 13px; margin-top: auto; }

/* --------------------------------- catalogo --------------------------------- */
.catalogo { background: var(--papel); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); padding: 34px 0 30px; }
.cat-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-cabeza p { margin: 0; font-size: 14px; }
.filtros { position: sticky; top: 68px; z-index: 5; background: var(--papel); padding: 8px 0 12px; margin-bottom: 6px; }
.buscar {
  display: flex; align-items: center; gap: 8px; background: var(--crema); border: 1.5px solid var(--borde);
  border-radius: 999px; padding: 0 16px; max-width: 560px;
}
.buscar:focus-within { border-color: var(--rojo); background: #fff; }
.buscar svg { color: var(--suave); width: 20px; height: 20px; }
.buscar input { border: 0; background: transparent; padding: 12px 0; width: 100%; outline: none; font-size: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--borde); background: var(--papel); border-radius: 999px; padding: 7px 14px;
  font-weight: 700; font-size: 14px; color: var(--tinta); white-space: nowrap;
}
.chip:hover { border-color: var(--tinta); }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chip small { font-weight: 600; opacity: .7; margin-left: 2px; }

.grilla-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.prod {
  display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden; min-width: 0; transition: box-shadow .15s, border-color .15s;
}
.prod:hover { box-shadow: var(--sombra); }
.prod.en-pedido { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.prod-img { position: relative; aspect-ratio: 4 / 3; background: var(--fondo); color: var(--tinte); display: grid; place-items: center; }
.prod-img svg { width: 46px; height: 46px; stroke-width: 1.5; opacity: .9; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .sello {
  position: absolute; top: 10px; left: 10px; background: var(--tinta); color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .02em;
}
.prod-img .sello.mayorista { background: #fff; color: var(--rojo-osc); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.prod-cuerpo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-cat { font-size: 12px; font-weight: 750; color: var(--tinte); text-transform: uppercase; letter-spacing: .04em; }
.prod h3 { font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.prod-precio { font-family: var(--titulos); font-weight: 800; font-size: 1.45rem; line-height: 1.1; margin-top: auto; padding-top: 6px; }
.prod-precio small { font-family: system-ui, sans-serif; font-size: 13px; font-weight: 600; color: var(--suave); margin-left: 3px; }
.prod-precio.consultar { font-size: 1.1rem; color: var(--suave); }
.prod-mayor { font-size: 13px; color: var(--rojo-osc); font-weight: 650; }
.prod-acciones { margin-top: 10px; }
.agregar {
  width: 100%; border: 0; background: var(--rojo); color: #fff; font-weight: 750; border-radius: 12px; padding: 10px;
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
}
.agregar:hover { background: var(--rojo-osc); }
.agregar.consulta { background: var(--crema); color: var(--tinta); border: 1.5px solid var(--borde); text-decoration: none; }
.agregar svg { width: 18px; height: 18px; }
.paso { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--rojo); border-radius: 12px; overflow: hidden; }
.paso button { width: 42px; height: 40px; border: 0; background: var(--rojo-suave); color: var(--rojo-osc); font-size: 20px; font-weight: 800; line-height: 1; }
.paso button:hover { background: #fbd5d5; }
.paso input { width: 100%; min-width: 0; border: 0; text-align: center; font-weight: 800; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.paso input::-webkit-outer-spin-button, .paso input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.prod.agotado .prod-img { filter: grayscale(.6); opacity: .75; }

.vacio { grid-column: 1 / -1; text-align: center; color: var(--suave); padding: 40px 10px; }
.vacio a { font-weight: 700; }
.mas-prod { text-align: center; margin-top: 20px; }
.nota-precios { color: var(--suave); font-size: 13.5px; text-align: center; margin: 22px 0 0; }

/* ------------------------------ por mayor / pasos ------------------------------ */
.mayor { background: var(--rojo); color: #fff; padding: 30px 0; position: relative; }
.mayor::before {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 18px);
}
.mayor-int { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mayor h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.mayor p { margin: 8px 0 0; max-width: 46em; opacity: .95; }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: paso; }
.pasos li { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); }
.pasos .num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rojo-suave); color: var(--rojo-osc); font-family: var(--titulos); font-weight: 800; font-size: 1.3rem; margin-bottom: 10px;
}
.pasos h3 { font-size: 1.3rem; font-weight: 800; }
.pasos p { margin: 6px 0 0; color: var(--suave); }

/* --------------------------------- ubicacion --------------------------------- */
.ubicacion { padding: 10px 0 44px; }
.ubi-int { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.ubi-datos { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); }
.ubi-datos h2 { margin-bottom: 16px; }
.dato { display: flex; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--borde); }
.dato:first-of-type { border-top: 0; }
.dato svg { color: var(--rojo); margin-top: 2px; }
.dato div { display: flex; flex-direction: column; }
.dato span, .dato a { color: var(--suave); }
.dato a { font-weight: 700; color: var(--wa-osc); }
.ubi-datos .acciones { margin-top: 16px; }
.mapa { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); min-height: 320px; background: #eee6dc; box-shadow: var(--sombra); }
.mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ------------------------------------ pie ------------------------------------ */
.pie { background: var(--tinta); color: #f4ece6; padding: 30px 0 100px; }
.pie-int { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pie-marca { display: flex; align-items: center; gap: 12px; }
.pie-marca img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.pie-marca div { display: flex; flex-direction: column; }
.pie-marca b { font-family: var(--titulos); font-size: 1.4rem; line-height: 1.1; }
.pie-marca span { color: #cbbdb3; font-size: 14px; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; }
.redes a {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 650;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 8px 14px;
}
.redes a:hover { background: rgba(255, 255, 255, .08); }
.redes svg { width: 20px; height: 20px; }
.pie-legal { width: 100%; margin: 6px 0 0; color: #a99a90; font-size: 13px; }

/* ------------------------ whatsapp flotante y barra pedido ------------------------ */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(21, 128, 61, .4);
}
.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante:hover { background: var(--wa-osc); }
.barra-pedido {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40;
  width: min(calc(100% - 32px), 460px); display: flex; align-items: center; gap: 12px;
  background: var(--tinta); color: #fff; border: 0; border-radius: 999px; padding: 10px 12px 10px 10px;
  box-shadow: var(--sombra-alta); font-weight: 750; text-align: left;
  animation: sube .25s ease;
}
@keyframes sube { from { transform: translate(-50%, 30px); opacity: 0; } }
.bp-cant { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; background: var(--rojo); display: grid; place-items: center; font-weight: 800; }
.bp-txt { flex: 1; }
.bp-total { font-family: var(--titulos); font-size: 1.25rem; font-weight: 800; padding-right: 8px; }

/* ----------------------------------- hoja ----------------------------------- */
.velo { position: fixed; inset: 0; background: rgba(20, 10, 5, .45); z-index: 50; animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.hoja {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100%);
  background: var(--crema); display: flex; flex-direction: column; box-shadow: var(--sombra-alta);
  animation: entra .25s ease;
}
@keyframes entra { from { transform: translateX(40px); opacity: 0; } }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; border-bottom: 1px solid var(--borde); background: var(--papel); }
.hoja-cab h2 { font-size: 1.7rem; }
.cerrar { border: 0; background: var(--crema); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; }
.cerrar:hover { background: var(--borde); }
.hoja-cuerpo { flex: 1; overflow-y: auto; padding: 8px 18px; overscroll-behavior: contain; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--borde); }
.linea .nom { font-weight: 650; line-height: 1.3; }
.linea .sub { font-family: var(--titulos); font-weight: 800; font-size: 1.1rem; text-align: right; }
.linea .det { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.linea .det small { color: var(--suave); font-size: 13px; line-height: 1.3; }
.linea .det small.si { color: var(--wa-osc); font-weight: 700; }
.linea .paso { width: 132px; flex: none; }
.linea .paso button { width: 38px; height: 36px; }
.quitar { border: 0; background: none; color: var(--suave); font-size: 13px; text-decoration: underline; padding: 4px; }
.hoja-vacia { text-align: center; padding: 50px 10px; color: var(--suave); }
.hoja-vacia svg { width: 48px; height: 48px; color: var(--borde); margin: 0 auto 10px; display: block; }
.hoja-pie { padding: 14px 18px 18px; border-top: 1px solid var(--borde); background: var(--papel); display: flex; flex-direction: column; gap: 10px; }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; }
.total-fila b { font-family: var(--titulos); font-size: 1.7rem; font-weight: 800; }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 650; }
.campo input, .campo textarea {
  border: 1.5px solid var(--borde); border-radius: 12px; padding: 10px 12px; background: #fff; font-weight: 400; font-size: 16px; resize: vertical;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--rojo); }
.vaciar { border: 0; background: none; color: var(--suave); font-size: 14px; text-decoration: underline; align-self: center; padding: 2px 8px; }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 70;
  background: var(--tinta); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 650; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------- pantallas --------------------------------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .portada-int { grid-template-columns: 1fr; }
  .portada-logo { order: -1; width: min(62vw, 240px); }
  .portada { padding-top: 22px; }
  .ubi-int { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 74px; }
  .cab-int { min-height: 60px; gap: 10px; }
  .marca img { width: 40px; height: 40px; }
  .marca b { font-size: 20px; }
  .boton-pedido .t { display: none; }
  .boton-pedido { padding: 10px 12px; }
  .filtros { top: 60px; }
  .portada { text-align: center; }
  .kicker { margin-bottom: 10px; }
  .acciones { justify-content: center; }
  .portada .btn { flex: 1 1 150px; }
  .grilla-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tarjeta-cat { padding: 14px; }
  .tarjeta-cat small { display: none; }
  .grilla-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod-cuerpo { padding: 10px 11px 12px; }
  .prod h3 { font-size: 14px; }
  .prod-precio { font-size: 1.25rem; }
  .prod-img svg { width: 38px; height: 38px; }
  .paso button { width: 36px; }
  .ubi-datos { padding: 18px; }
  .ubi-datos .btn { flex: 1 1 140px; }
  .hoja { top: auto; max-height: 92vh; border-radius: 20px 20px 0 0; width: 100%; animation-name: sube-hoja; }
  @keyframes sube-hoja { from { transform: translateY(40px); opacity: 0; } }
  .mapa, .mapa iframe { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Tintes por categoria (clases, no estilos en linea: la CSP no los permite). */
.tinte-1 { --tinte: #a8672c; --fondo: #f8eadb; }   /* envases: carton kraft */
.tinte-2 { --tinte: #c0266d; --fondo: #fde7f1; }   /* reposteria */
.tinte-3 { --tinte: #b45309; --fondo: #fff1cc; }   /* cumpleanos */
.tinte-4 { --tinte: #0369a1; --fondo: #e0f2fe; }   /* desechables */
.tinte-5 { --tinte: #047857; --fondo: #dcfce7; }   /* bolsas y embalaje */
.tinte-6 { --tinte: #6d28d9; --fondo: #ede9fe; }
.tinte-7 { --tinte: #be123c; --fondo: #ffe4e6; }
.tinte-0 { --tinte: #57534e; --fondo: #f1efed; }   /* otros */

/* Sin foto: el icono ocupa menos alto (con muchos productos se recorre mas rapido). */
.prod-img.sin-foto { aspect-ratio: 2 / 1; }
@media (max-width: 560px) { .prod-img.sin-foto { aspect-ratio: 16 / 9; } }

/* ------------------------------ pago en linea ------------------------------ */
.btn-mp { background: #0a6fc2; color: #fff; box-shadow: 0 6px 16px rgba(10, 111, 194, .28); }
.btn-mp:hover { background: #075a9e; }
.btn-mp[disabled] { opacity: .7; cursor: wait; }
.modo-pago #enviarPedido { background: transparent; color: var(--wa-osc); box-shadow: none; border-color: var(--borde); padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
.modo-pago #enviarPedido:hover { border-color: var(--wa); }
.campo small { font-weight: 500; color: var(--suave); font-size: 12.5px; }
.campo input.mal { border-color: var(--rojo); background: var(--rojo-suave); }
.error-pago { margin: 0; color: var(--rojo-osc); font-weight: 650; font-size: 14px; }
.nota-pago { margin: -4px 0 0; color: var(--suave); font-size: 13px; text-align: center; }

/* ------------------------------ pagina del pedido ------------------------------ */
.estado-pedido { max-width: 620px; margin: 24px auto 60px; padding: 0 16px; }
.tarjeta-pedido { background: var(--papel); border: 1px solid var(--borde); border-radius: 20px; box-shadow: var(--sombra); overflow: hidden; }
.tp-cab { padding: 26px 22px 20px; text-align: center; }
.tp-cab .icono-estado { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; }
.tp-cab .icono-estado svg { width: 36px; height: 36px; stroke-width: 2.2; }
.tp-cab h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 800; }
.tp-cab p { color: var(--suave); margin: 8px auto 0; max-width: 30em; }
.tp-cab .numero { display: inline-block; margin-bottom: 10px; font-weight: 800; color: var(--suave); letter-spacing: .04em; font-size: 13px; text-transform: uppercase; }
.e-ok .icono-estado { background: #dcfce7; color: #15803d; }
.e-listo .icono-estado { background: #fff1cc; color: #b45309; }
.e-espera .icono-estado { background: #e0f2fe; color: #0369a1; }
.e-mal .icono-estado { background: var(--rojo-suave); color: var(--rojo-osc); }
.e-espera .icono-estado svg { animation: gira 1.4s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.tp-lineas { border-top: 1px solid var(--borde); padding: 6px 22px; }
.tp-linea { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--borde); }
.tp-linea:last-child { border-bottom: 0; }
.tp-linea small { color: var(--suave); display: block; font-size: 12.5px; }
.tp-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 22px; background: var(--crema); border-top: 1px solid var(--borde); }
.tp-total b { font-family: var(--titulos); font-size: 1.6rem; }
.tp-acciones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px 22px 22px; }
.tp-pasos { display: flex; justify-content: space-between; gap: 6px; padding: 0 22px 18px; }
.tp-pasos span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--suave); padding-top: 8px; border-top: 4px solid var(--borde); }
.tp-pasos span.hecho { color: var(--wa-osc); border-top-color: var(--wa); }

a.boton-pedido { text-decoration: none; }

/* Con fotos: el cuadro muestra la foto entera sobre su mismo gris claro, y todas las
   tarjetas usan la misma proporcion (las sin foto tambien) para que las filas queden parejas. */
.prod-img:not(.sin-foto) { background: #f4f4f1; }
.prod-img img { object-fit: contain; }
.con-fotos .prod-img, .con-fotos .prod-img.sin-foto { aspect-ratio: 4 / 3; }
.prod-img { overflow: hidden; }
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Confeti alrededor del logo, nunca encima (sobre el toldo parecia un error del logo). */
.portada-logo img { width: 90%; }
.c1 { top: auto; bottom: 18%; left: -6%; }
.c2 { top: 28%; right: -8%; }
.c3 { bottom: 3%; left: 6%; }
.c4 { bottom: -4%; right: 22%; }
.c5 { top: 58%; right: -9%; }
.c6 { top: -5%; left: 42%; }
