/* El Churo — azul rey + rojo + amarillo oferta (colores de su logo y sus flyers) */
:root {
  --tinta: #0d1f73;
  --tinta-2: #142a8c;
  --tinta-3: #1c35a3;
  --tinta-linea: #2b44b8;
  --azul: #1a3bd1;
  --rojo: #e3262f;
  --amarillo: #ffd60a;
  --hueso: #f5f4f0;
  --papel: #ffffff;
  --acento: #ffd60a;
  --acento-2: #f5c800;
  --acento-texto: #b3121a;
  --sobre-acento: #0d1f73;
  --aurora-2: #e3262f;
}

/* Cinta superior de ofertas */
.ticker { background: var(--rojo); color: #fff; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ticker__pista { display: inline-flex; gap: 36px; padding: 9px 0 9px 36px; animation: correr 30s linear infinite; }
.ticker__pista span::after { content: '★'; margin-left: 36px; color: var(--amarillo); }

/* Logo armado (carrito + EL CHURO en pastilla roja) */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__carro { width: 44px; height: 44px; border-radius: 10px; background: var(--azul); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 6px 16px -6px rgb(26 59 209 / 0.6); }
.logo__texto { display: grid; line-height: 1; }
.logo__texto small { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.26em; color: var(--azul); }
.logo__texto b { margin-top: 3px; padding: 3px 10px; border-radius: 6px; background: var(--rojo); color: #fff; font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--rojo); }
.logo--pie .logo__texto small { color: var(--amarillo); }

.enc { background: rgb(245 244 240 / 0.9); }
.enc__lista { display: inline-flex; --b-fondo: var(--azul); }
.contador { min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--amarillo); color: var(--tinta); font-size: 0.78rem; font-weight: 800; display: inline-grid; place-items: center; }
@media (max-width: 979px) { .enc__lista { display: none; } }

/* Botones propios */
.boton--amarillo { --b-fondo: var(--amarillo); --b-texto: var(--tinta); }
.boton--amarillo:hover { --b-fondo: #fff07a; }
.boton--rojo { --b-fondo: var(--rojo); --b-texto: #fff; }

/* Hero azul */
.hero { background: radial-gradient(120% 90% at 85% 10%, #2f55f0 0%, var(--azul) 45%, var(--tinta) 100%); color: #fff; padding-block: 48px 72px; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgb(255 255 255 / 0.12) 1.2px, transparent 1.4px) 0 0 / 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero__grilla { display: grid; gap: 44px; align-items: center; }
.hero__sello { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.25); font-weight: 700; font-size: 0.85rem; }
.hero h1 { font-size: clamp(2.8rem, 10vw, 5.6rem); margin-block: 18px 20px; line-height: 0.98; text-transform: uppercase; letter-spacing: -0.03em; }
.subrayado { color: var(--amarillo); position: relative; white-space: nowrap; }
.subrayado::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.12em; border-radius: 99px; background: var(--rojo); transform: rotate(-1.5deg); }
.subrayado--rojo { color: var(--rojo); }
.subrayado--rojo::after { background: var(--amarillo); }
.hero__bajada { font-size: 1.15rem; max-width: 34rem; color: rgb(255 255 255 / 0.85); }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__estado { margin-top: 22px; font-size: 0.92rem; color: rgb(255 255 255 / 0.8); }
.hero__flyer { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.flyer { position: relative; aspect-ratio: 4/5; border-radius: var(--radio-g); overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6), 0 0 0 6px rgb(255 255 255 / 0.15); transform: rotate(2deg); }
.flyer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 700ms var(--curva), transform 1400ms var(--curva); }
.flyer img.activa { opacity: 1; transform: none; }
.flyer__puntos { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.flyer__puntos button { width: 28px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.flyer__puntos button::before { content: ''; width: 10px; height: 10px; border-radius: 99px; background: rgb(255 255 255 / 0.45); transition: width var(--t), background-color var(--t); }
.flyer__puntos button[aria-selected='true']::before { width: 26px; background: var(--amarillo); }
.hero__estrella { position: absolute; top: -18px; left: -14px; width: 104px; height: 104px; display: grid; place-items: center; text-align: center; background: var(--amarillo); color: var(--rojo); font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.1rem; transform: rotate(-12deg); clip-path: polygon(50% 0, 61% 14%, 79% 9%, 80% 27%, 97% 33%, 88% 50%, 97% 67%, 80% 73%, 79% 91%, 61% 86%, 50% 100%, 39% 86%, 21% 91%, 20% 73%, 3% 67%, 12% 50%, 3% 33%, 20% 27%, 21% 9%, 39% 14%); animation: girar 7s ease-in-out infinite alternate; }
@keyframes girar { to { transform: rotate(4deg) scale(1.06); } }
@media (min-width: 900px) { .hero { padding-block: 64px 96px; } .hero__grilla { grid-template-columns: 1.15fr 1fr; } }

/* Ofertas */
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-weight: 700; cursor: pointer; transition: background-color var(--t), color var(--t), border-color var(--t); }
.filtros button[aria-selected='true'] { background: var(--azul); border-color: var(--azul); color: #fff; }
.grilla-ofertas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grilla-ofertas { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1080px) { .grilla-ofertas { grid-template-columns: repeat(4, 1fr); } }
.oferta { position: relative; display: grid; grid-template-rows: auto 1fr auto; border-radius: 20px; background: #fff; border: 1px solid var(--linea); overflow: hidden; box-shadow: var(--sombra); transition: transform var(--t), box-shadow var(--t); }
.oferta:hover { transform: translateY(-4px); box-shadow: var(--sombra-g); }
.oferta__marca { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.oferta__img { aspect-ratio: 1; background: linear-gradient(135deg, #eef1ff, #fff6cc); display: grid; place-items: center; font-size: 3.4rem; overflow: hidden; }
.oferta__img img { width: 100%; height: 100%; object-fit: cover; }
.oferta__cuerpo { padding: 14px 14px 4px; }
.oferta h3 { font-family: var(--fuente); font-size: 0.98rem; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.oferta__precio { font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.6rem; color: var(--rojo); line-height: 1.1; margin-top: 6px; letter-spacing: -0.03em; }
.oferta__unidad { font-size: 0.8rem; color: var(--texto-3); }
.oferta__agregar { margin: 12px 14px 14px; min-height: 42px; border-radius: 999px; border: 0; background: var(--azul); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background-color var(--t); }
.oferta__agregar:hover { background: var(--tinta); }
.oferta__cant { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 12px 14px 14px; padding: 4px; border-radius: 999px; background: #eef1ff; }
.oferta__cant button { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--azul); color: #fff; cursor: pointer; }
.oferta__cant output { font-weight: 800; }

/* Rubros */
.rubros { background: #fff; border-block: 1px solid var(--linea); }
.rubros__grilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .rubros__grilla { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.rubros__grilla li { padding: 22px; border-radius: var(--radio-g); background: var(--hueso); display: grid; gap: 8px; align-content: start; transition: background-color var(--t), transform var(--t); }
.rubros__grilla li:hover { background: #fff6cc; transform: translateY(-3px); }
.rubros__grilla span { font-size: 2.2rem; line-height: 1; }
.rubros__grilla h3 { font-size: 1.25rem; }
.rubros__grilla p { color: var(--texto-2); font-size: 0.92rem; line-height: 1.45; }

/* Mayorista */
.mayorista { background: #c4161f; color: #fff; padding-block: 72px; overflow: hidden; }
.mayorista__grilla { display: grid; gap: 36px; align-items: center; }
.mayorista__foto { margin: 0; border-radius: var(--radio-g); overflow: hidden; aspect-ratio: 4/5; max-width: 420px; box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.5); transform: rotate(-2deg); }
.mayorista__foto img { width: 100%; height: 100%; object-fit: cover; }
.mayorista__texto { display: grid; gap: 18px; justify-items: start; }
.mayorista__texto p { color: rgb(255 255 255 / 0.9); max-width: 36rem; }
.etiqueta--clara { color: #fff; }
.etiqueta--clara::before { background: var(--amarillo); }
.mayorista__puntos { display: grid; gap: 8px; }
.mayorista__puntos li { padding-left: 30px; position: relative; font-weight: 650; }
.mayorista__puntos li::before { content: '✓'; position: absolute; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--amarillo); color: var(--rojo); display: grid; place-items: center; font-weight: 900; font-size: 0.8rem; }
@media (min-width: 900px) { .mayorista__grilla { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }

/* Pagos */
.pagos__grilla { display: grid; gap: 16px; }
.pagos__tarjeta { padding: 30px; display: grid; gap: 14px; justify-items: start; }
.pagos__tarjeta svg { color: var(--azul); }
.pagos__tarjeta h2 { font-size: 1.8rem; }
.pagos__tarjeta p { color: var(--texto-2); }
.pagos__tarjeta--rojo { background: var(--amarillo); border-color: transparent; }
.pagos__tarjeta--rojo p { color: var(--tinta); }
.pagos__emoji { font-size: 2rem; }
@media (min-width: 820px) { .pagos__grilla { grid-template-columns: 1fr 1fr; } }

/* Sucursales */
.horario-caja { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radio); background: #fff; border: 1px solid var(--linea); }
.horario-caja p { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.horario-caja svg { color: var(--azul); }
.sucursales__grilla { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 900px) { .sucursales__grilla { grid-template-columns: repeat(3, 1fr); } }
.sucursal { padding: 24px; border-radius: var(--radio-g); background: #fff; border: 2px solid var(--linea); display: grid; gap: 6px; transition: border-color var(--t), box-shadow var(--t); }
.sucursal.activa { border-color: var(--azul); box-shadow: 0 0 0 4px rgb(26 59 209 / 0.12); }
.sucursal__num { font-family: var(--fuente-titulos); font-weight: 800; font-size: 2.2rem; color: var(--rojo); line-height: 1; }
.sucursal h3 { font-size: 1.6rem; }
.sucursal p { color: var(--texto-2); }
.sucursal__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sucursal__acciones .boton { --b-fondo: var(--azul); }
.sucursal__acciones .boton--contorno { --b-fondo: transparent; --b-texto: var(--tinta); --b-borde: var(--tinta); }
.mapa { border-radius: var(--radio-g); overflow: hidden; background: var(--arena); }
.mapa iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Panel lista */
.panel-fondo { position: fixed; inset: 0; z-index: 69; background: rgb(13 31 115 / 0.45); backdrop-filter: blur(3px); }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; transform: translateX(105%); transition: transform 420ms var(--curva); box-shadow: -30px 0 60px -30px rgb(0 0 0 / 0.4); }
.panel.abierto { transform: none; }
.panel__cabeza { position: sticky; top: 0; z-index: 1; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--linea); }
.panel__cabeza h2 { display: inline-flex; gap: 10px; align-items: center; font-size: 1.5rem; }
.panel__cerrar { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linea); background: transparent; display: grid; place-items: center; cursor: pointer; }
.panel__items { flex: 1 0 auto; padding: 12px 20px; display: grid; gap: 10px; align-content: start; }
.panel__items li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radio); background: var(--hueso); }
.panel__items li > span { font-size: 1.5rem; }
.panel__items strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.panel__items small { color: var(--texto-3); }
.panel__items .oferta__cant { margin: 0; }
.panel__items .oferta__cant button { width: 30px; height: 30px; }
.panel__items li.panel__vacio { display: block; background: none; color: var(--texto-2); text-align: center; padding: 30px 10px; }
.quitar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; }
.panel__extra { padding: 12px 20px; border-top: 1px solid var(--linea); }
.agregar-libre { display: flex; gap: 8px; }
.agregar-libre input { flex: 1; min-width: 0; }
.panel__pie { padding: 16px 20px 20px; border-top: 1px solid var(--linea); display: grid; gap: 10px; background: var(--hueso); }
.panel__total { display: flex; justify-content: space-between; font-weight: 650; }
.panel__total strong { font-family: var(--fuente-titulos); font-size: 1.4rem; color: var(--rojo); }
.panel__ayuda { font-size: 0.8rem; color: var(--texto-3); text-align: center; }

/* Botón flotante de lista */
.flotante--lista { position: relative; background: var(--azul); border: 0; cursor: pointer; }
.flotante--lista .contador { position: absolute; top: -4px; right: -4px; }

/* v2: mini flyers para ofertas sin foto, íconos de rubros */
.oferta__img--flyer { position: relative; color: #fff; display: grid; place-items: center; overflow: hidden; }
.oferta__img--flyer::before { content: ''; position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / 0.07) 0 10deg, transparent 10deg 20deg); }
.oferta__img--flyer svg { position: relative; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.25)); }
.cat-carniceria { background: radial-gradient(circle at 50% 40%, #ff4b52, var(--rojo) 60%, #a5141b); }
.cat-almacen { background: radial-gradient(circle at 50% 40%, #3d5ff0, var(--azul) 60%, var(--tinta)); }
.cat-bebidas { background: radial-gradient(circle at 50% 40%, #3d5ff0, var(--azul) 60%, var(--tinta)); }
.cat-panaderia { background: radial-gradient(circle at 50% 40%, #ffe45c, var(--amarillo) 60%, #e0b400); color: var(--rojo); }
.flyer-mini__cat { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.95); color: var(--tinta); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.flyer-mini__marca { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%) rotate(-3deg); padding: 2px 10px; border-radius: 5px; background: var(--rojo); color: #fff; font-family: var(--fuente-titulos); font-weight: 800; font-size: 0.85rem; box-shadow: inset 0 0 0 2px #fff; }
.cat-carniceria .flyer-mini__marca { background: var(--azul); }
.rubro__icono { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--azul); color: #fff; box-shadow: 0 10px 20px -10px rgb(26 59 209 / 0.6); }
.rubros__grilla li:nth-child(3n + 2) .rubro__icono { background: var(--rojo); box-shadow: 0 10px 20px -10px rgb(227 38 47 / 0.6); }
.rubros__grilla li:nth-child(3n) .rubro__icono { background: var(--amarillo); color: var(--tinta); box-shadow: 0 10px 20px -10px rgb(255 214 10 / 0.8); }
.lista__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--azul); }
.pagos__tarjeta--rojo svg { color: var(--rojo); }
.franja__dato strong { color: var(--azul); }
.barra-movil .contador { margin-left: 2px; }
