/* Viky Lu: colores de su portada (corazones de caramelo + letras doradas sobre azul noche). */
:root {
  --noche: #231a46;
  --noche-2: #2f2560;
  --oro: #f2b441;
  --oro-osc: #b97a12;
  --rosa: #f27aa8;
  --rosa-claro: #ffe3ee;
  --agua: #5fd0d4;
  --agua-claro: #dcf7f7;
  --durazno: #ffc59a;
  --fondo: #fff8f2;
  --tinta: #1d1733;
  --gris: #6c6582;
  --linea: #eadfe6;
  --verde: #1f9d55;
  --radio: 18px;
  --titulo: 'Baloo 2', system-ui, sans-serif;
  --texto: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 16px/1.45 var(--texto); padding-bottom: 96px; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
.vl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.vl-aviso { margin: 0; background: var(--noche); color: #cfc8ea; font-size: 12px; text-align: center; padding: 6px 12px; }

/* Portada */
.vl-hero { background: var(--noche); color: #fff; }
.vl-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vl-hero-txt { padding: 18px 16px 22px; max-width: 760px; margin: 0 auto; }
.vl-hero h1 { font: 800 clamp(28px, 7vw, 44px)/1.05 var(--titulo); margin: 0 0 6px; color: var(--oro); letter-spacing: -.01em; }
.vl-hero p { margin: 0; color: #ddd6f3; max-width: 46ch; }

/* Reglas del negocio */
.vl-reglas { max-width: 760px; margin: 0 auto; padding: 16px; }
.vl-corte { border-radius: var(--radio); padding: 14px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.vl-corte.abierto { background: var(--agua-claro); color: #0d5d60; }
.vl-corte.cerrado { background: var(--rosa-claro); color: #8a1f4c; }
.vl-corte .punto { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.vl-corte.abierto .punto { animation: late 1.8s ease-in-out infinite; }
@keyframes late { 50% { opacity: .35; } }
.vl-reglas ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.vl-reglas li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px 14px; }
.vl-reglas li b { display: block; }
.vl-reglas li span:not(.vl-ico) { color: var(--gris); font-size: 14px; }
.vl-ico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--durazno); color: var(--noche); flex: none; }
@media (min-width: 720px) { .vl-reglas ul { grid-template-columns: repeat(3, 1fr); } }

/* Buscador y categorías pegados arriba */
.vl-pegado { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--fondo) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); padding: 10px 0 8px; }
.vl-buscar { display: block; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.vl-buscar input { width: 100%; border: 2px solid var(--linea); background: #fff; border-radius: 999px; padding: 12px 18px; font-size: 16px; outline: none; transition: border-color .2s; }
.vl-buscar input:focus { border-color: var(--rosa); }
.vl-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 2px; max-width: 760px; margin: 0 auto; scrollbar-width: none; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.vl-cats::-webkit-scrollbar { display: none; }
.vl-cats button { flex: none; scroll-snap-align: start; border: 0; border-radius: 999px; padding: 9px 15px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.vl-cats button[aria-current="true"] { background: var(--noche); color: #fff; box-shadow: none; }

/* Productos */
.vl-lista { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
.vl-sec { scroll-margin-top: 130px; padding-top: 18px; }
.vl-sec h2 { font: 800 26px/1.1 var(--titulo); margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
.vl-sec h2 small { font: 500 14px var(--texto); color: var(--gris); }
.vl-grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .vl-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vl-prod { background: #fff; border-radius: var(--radio); border: 1px solid var(--linea); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.vl-prod.en-pedido { border-color: var(--rosa); box-shadow: 0 0 0 2px var(--rosa); }
.vl-prod-img { position: relative; aspect-ratio: 1; background: #fff; border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.vl-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.vl-etq { position: absolute; z-index: 1; top: 8px; left: 8px; background: var(--oro); color: var(--noche); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 9px; box-shadow: 0 2px 6px rgba(35, 26, 70, .18); }
.vl-etq.sin { background: var(--noche); color: #fff; }
.vl-prod.agotado .vl-prod-img img { opacity: .45; filter: grayscale(.6); }
.vl-sumar:disabled { background: #ece6ee; color: var(--gris); cursor: default; }
.vl-prod-txt { padding: 10px 12px 4px; flex: 1; }
.vl-prod h3 { font: 700 15px/1.25 var(--texto); margin: 0 0 3px; }
.vl-prod p { margin: 0; font-size: 13px; color: var(--gris); }
.vl-precio { display: block; margin-top: 6px; font: 800 18px/1 var(--titulo); color: var(--noche); }
.vl-precio.consultar { font: 600 13px var(--texto); color: var(--oro-osc); }
.vl-prod-pie { padding: 8px 10px 10px; }
.vl-sumar { width: 100%; border: 0; border-radius: 14px; padding: 11px; font-weight: 700; background: var(--noche); color: #fff; cursor: pointer; transition: transform .12s, background .2s; }
.vl-sumar:active { transform: scale(.97); }
.vl-cant { display: flex; align-items: center; justify-content: space-between; background: var(--rosa-claro); border-radius: 14px; }
.vl-cant button { width: 44px; height: 42px; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: #8a1f4c; cursor: pointer; }
.vl-cant output { font-weight: 800; font-size: 17px; }
.vl-vacio { text-align: center; color: var(--gris); padding: 40px 10px; }

.vl-pie { text-align: center; color: var(--gris); font-size: 14px; padding: 24px 16px 8px; }
.vl-pie p { margin: 2px 0; }
.vl-pie .vl-al-panel { display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 999px; color: var(--noche); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--linea); }

/* Barra del pedido */
.vl-barra { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 10; max-width: 736px; margin: 0 auto; border: 0; border-radius: 20px; padding: 14px 18px; background: var(--rosa); color: #fff; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 30px rgba(35, 26, 70, .28); cursor: pointer; animation: sube .3s ease-out; }
.vl-barra[hidden] { display: none; }
@keyframes sube { from { transform: translateY(120%); } }
.vl-barra .n { background: #fff; color: var(--rosa); border-radius: 999px; padding: 2px 9px; margin-right: 8px; }

/* Hoja del pedido */
.vl-hoja { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.vl-hoja[hidden] { display: none; }
.vl-hoja-fondo { position: absolute; inset: 0; background: rgba(29, 23, 51, .55); animation: aparece .2s; }
@keyframes aparece { from { opacity: 0; } }
.vl-hoja-caja { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--fondo); border-radius: 26px 26px 0 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); animation: sube .28s ease-out; }
@media (min-width: 620px) { .vl-hoja { align-items: center; } .vl-hoja-caja { border-radius: 26px; } }
.vl-hoja-cab { position: sticky; top: 0; background: var(--fondo); display: flex; justify-content: space-between; align-items: center; padding: 16px 0 10px; z-index: 1; }
.vl-hoja-cab h2 { font: 800 26px var(--titulo); margin: 0; }
.vl-x { border: 0; background: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--linea); }
.vl-items { display: grid; gap: 8px; }
.vl-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 8px; }
.vl-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; }
.vl-item b { display: block; font-size: 14px; line-height: 1.25; }
.vl-item span { font-size: 13px; color: var(--gris); }
.vl-item .vl-cant { min-width: 118px; }
.vl-item .vl-cant button { width: 36px; height: 36px; font-size: 19px; }
.vl-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 4px; font-weight: 700; }
.vl-total b { font: 800 24px var(--titulo); }
.vl-total-nota { margin: 0 4px; font-size: 13px; color: var(--oro-osc); }
.vl-form { display: grid; gap: 12px; margin-top: 14px; }
.vl-form label { display: grid; gap: 5px; font-weight: 600; font-size: 15px; }
.vl-form small { font-weight: 400; color: var(--gris); }
.vl-form input:not([type=radio]), .vl-form textarea { border: 2px solid var(--linea); background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none; }
.vl-form input:focus, .vl-form textarea:focus { border-color: var(--rosa); }
.vl-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.vl-form legend { font-weight: 600; margin-bottom: 4px; }
.vl-opc { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--linea); border-radius: 14px; padding: 12px 14px; font-weight: 500 !important; cursor: pointer; }
.vl-opc:has(input:checked) { border-color: var(--noche); background: #f3f0ff; }
.vl-opc input { width: 20px; height: 20px; accent-color: var(--noche); }
.vl-aviso-corte { margin: 0; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.vl-aviso-corte.abierto { background: var(--agua-claro); color: #0d5d60; }
.vl-aviso-corte.cerrado { background: var(--rosa-claro); color: #8a1f4c; }
.vl-enviar { border: 0; border-radius: 18px; padding: 16px; background: var(--verde); color: #fff; font-weight: 800; font-size: 17px; cursor: pointer; }
.vl-chico { margin: 0; text-align: center; font-size: 13px; color: var(--gris); }

/* Foto grande */
.vl-foto { position: fixed; inset: 0; z-index: 30; background: rgba(15, 11, 30, .92); display: grid; place-items: center; padding: 16px; animation: aparece .2s; }
.vl-foto[hidden] { display: none; }
.vl-foto img { max-height: 86vh; border-radius: 14px; }
.vl-foto .vl-x { position: absolute; top: 14px; right: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Escritorio: la portada no ocupa toda la pantalla y las categorías entran todas */
@media (min-width: 720px) {
  .vl-hero { padding-top: 20px; }
  .vl-hero-img { max-width: 728px; margin: 0 auto; border-radius: 22px; }
  .vl-cats { flex-wrap: wrap; mask-image: none; overflow: visible; }
}
/* todas las fotos del mismo alto, aunque la foto sea vertical */
.vl-prod-img { display: block; overflow: hidden; }
.vl-prod-img img { position: absolute; inset: 0; padding: 6px; }
