/* =====================================================================
   Link de pedidos · estilos
   Paleta tomada de la presentación de la empresa.
   ===================================================================== */
:root {
  --monte: #1d372a;        /* verde oscuro principal */
  --monte-suave: #2c4a3a;
  --crema: #f7f3ed;        /* fondo */
  --papel: #fffdf9;        /* superficies */
  --hoja: #2f7950;         /* acciones */
  --hoja-oscura: #255f3f;
  --brote: #a8d5b5;        /* verde claro sobre fondo oscuro */
  --lavanda: #6a4a9c;
  --ambar: #f0b03d;
  --coral: #ed6c56;
  --cielo: #3aa1d5;
  --cielo-pastel: #e3f0fa;
  --lavanda-pastel: #ebe3f6;
  --ambar-pastel: #fbefca;
  --coral-pastel: #fbded8;
  --hoja-pastel: #dcefe2;
  --texto: #1d372a;
  --texto-suave: #4f6358;
  --linea: rgba(29, 55, 42, 0.12);

  --fuente-titulo: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --fuente-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio-tarjeta: 22px;
  --radio-boton: 14px;
  --sombra-flotante: 0 18px 40px -18px rgba(29, 55, 42, 0.45);
  --ancho: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--fuente-titulo); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; border-radius: 6px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--monte); color: #fff; padding: 10px 14px; border-radius: 10px; }
.saltar:focus { top: 12px; }

.contenedor { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }

/* Franja de marca */
.franja { display: grid; grid-template-columns: repeat(5, 1fr); height: 5px; position: relative; z-index: 21; }
.franja i:nth-child(1) { background: var(--hoja); }
.franja i:nth-child(2) { background: var(--lavanda); }
.franja i:nth-child(3) { background: var(--ambar); }
.franja i:nth-child(4) { background: var(--coral); }
.franja i:nth-child(5) { background: var(--cielo); }

/* Barra superior */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(29, 55, 42, 0.96); backdrop-filter: saturate(1.4) blur(8px); }
.barra-interior { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { text-decoration: none; color: #fff; display: flex; align-items: center; }
.logo-marcas { display: inline-flex; gap: 14px; align-items: baseline; padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; }
.logo-marcas b { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.logo-marcas b:nth-child(2) { font-style: italic; }
.logo-marcas b:nth-child(3) { font-weight: 600; font-size: .86rem; letter-spacing: .06em; }
.boton-carrito { position: relative; width: 46px; height: 46px; border-radius: 14px; border: 0; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s; }
.boton-carrito:hover { background: rgba(255,255,255,.18); }
.boton-carrito svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.boton-carrito-cuenta { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ambar); color: var(--monte); font-size: .78rem; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.boton-carrito-cuenta.con-items { transform: scale(1); }
.boton-carrito-cuenta.salta { animation: salto .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes salto { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: var(--radio-boton); font-weight: 700; text-decoration: none; border: 0; transition: transform .15s, background .2s, box-shadow .2s; }
.boton:active { transform: scale(.98); }
.boton-claro { background: var(--brote); color: var(--monte); }
.boton-claro:hover { background: #bfe3c9; }
.boton-linea { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.boton-linea:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.boton-accion { background: var(--hoja); color: #fff; width: 100%; }
.boton-accion:hover { background: var(--hoja-oscura); }
.boton-accion[disabled] { background: #a7b6ad; cursor: not-allowed; }
.boton-secundario { background: transparent; color: var(--monte); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton-secundario:hover { box-shadow: inset 0 0 0 1.5px var(--monte); }

/* Portada */
.portada { background: var(--monte); color: #fff; overflow: hidden; position: relative; }
.portada::after { content: ""; position: absolute; right: -10%; top: -30%; width: 70vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(168,213,181,.16), rgba(168,213,181,0) 65%); pointer-events: none; }
.portada-interior { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 44px 0 24px; position: relative; z-index: 1; }
.portada-marca { font-size: clamp(4.6rem, 19vw, 10rem); color: var(--brote); letter-spacing: -0.055em; line-height: .85; max-width: none; }
.portada-lema { font-family: var(--fuente-titulo); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.08; letter-spacing: -0.02em; margin-top: 18px; max-width: 20ch; }
.portada-para { font-weight: 600; color: var(--brote); margin-bottom: 14px; font-size: 1rem; }
.portada-titulo { font-size: clamp(2.6rem, 8.5vw, 5.4rem); font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: .96; max-width: 12ch; }
.portada-titulo span { display: inline-block; opacity: 0; transform: translateY(.35em); animation: aparece .7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes aparece { to { opacity: 1; transform: none; } }
.portada-bajada { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38ch; margin-top: 18px; color: #eaf3ec; }
.portada-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portada-datos { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; font-size: .95rem; color: #cfe0d4; max-width: 46ch; }
.portada-datos li { padding-left: 26px; position: relative; }
.portada-datos li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--brote); border-bottom: 2.5px solid var(--brote); transform: rotate(-45deg); }
.portada-datos strong { color: #fff; font-weight: 600; }
.portada-bolsas { position: relative; height: 240px; max-width: 420px; }
.portada-bolsas .pb { position: absolute; bottom: 0; transform-origin: bottom center; opacity: 0; animation: cae .8s cubic-bezier(.2,.9,.25,1.15) forwards; }
.portada-bolsas .pb svg { width: 100%; height: auto; }
.portada-bolsas .pb-1 { left: 0; width: 40%; animation-delay: .25s; z-index: 1; }
.portada-bolsas .pb-2 { left: 25%; width: 48%; animation-delay: .1s; z-index: 2; }
.portada-bolsas .pb-3 { left: 64%; width: 34%; animation-delay: .4s; z-index: 1; }
@keyframes cae { from { opacity: 0; transform: translateY(-40px) rotate(-4deg); } to { opacity: 1; transform: none; } }
/* Gatito que se asoma sobre la bolsa del medio */
.gatito-asoma { position: absolute; left: 10%; width: 80%; bottom: 94%; aspect-ratio: 100 / 82; overflow: hidden; z-index: 3; pointer-events: none; }
.gatito { width: 100%; height: auto; transform: translateY(105%); animation: asoma .9s 1.15s cubic-bezier(.25,1.35,.45,1) forwards; }
.gatito .patitas { transform: translateY(14px); animation: apoya .35s 1.85s cubic-bezier(.3,1.5,.5,1) forwards; }
.gatito .ojos { transform-box: fill-box; transform-origin: center; animation: parpadeo 4.5s 2.4s infinite; }
.gatito .oreja-der { transform-box: fill-box; transform-origin: 30% 100%; animation: oreja 6s 3.2s infinite; }
@keyframes asoma { to { transform: translateY(0); } }
@keyframes apoya { to { transform: translateY(0); } }
@keyframes parpadeo { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes oreja { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(4deg); } }
.portada-bolsas { margin-top: 110px; }
@media (min-width: 720px) { .portada-bolsas { margin-top: 120px; } }

.portada-origen { position: relative; z-index: 1; padding: 0 0 26px; font-size: .9rem; color: #9fb8a8; }

/* Campaña / promoción */
.campana { background: var(--lavanda); color: #fff; position: relative; overflow: hidden; }
.campana-interior { display: grid; gap: 14px; padding: 30px 0; align-items: center; }
.campana-titulo { font-family: var(--fuente-titulo); font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: .95; }
.campana-detalle { font-size: 1.1rem; color: #efe7fa; max-width: 40ch; margin-top: 10px; }
.campana-plazo { font-size: .9rem; color: #d8c9ee; }
.campana .boton { background: #fff; color: var(--lavanda); justify-self: start; }
.campana .boton:hover { background: #f3edfb; }
.campana-flor { position: absolute; right: -40px; bottom: -60px; width: 260px; opacity: .14; pointer-events: none; }

/* Diseño con lateral */
.diseno { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
.lateral { display: none; }

/* Guía */
.guia { background: var(--cielo-pastel); border-radius: 28px; padding: 28px 22px; position: relative; }
.guia-bajada { color: var(--texto-suave); margin-top: 8px; }
.guia-preguntas { display: grid; gap: 18px; margin-top: 22px; }
.guia-pregunta { border: 0; padding: 0; margin: 0; min-width: 0; }
.guia-pregunta legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { border: 0; background: var(--papel); box-shadow: inset 0 0 0 1.5px rgba(29,55,42,.14); border-radius: 999px; padding: 10px 16px; font-weight: 500; transition: background .2s, color .2s, box-shadow .2s; }
.opcion:hover { box-shadow: inset 0 0 0 1.5px var(--monte); }
.opcion[aria-pressed="true"] { background: var(--monte); color: #fff; box-shadow: none; }
.guia-resultado:empty { display: none; }
.guia-resultado { margin-top: 22px; background: var(--papel); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; animation: aparece .5s cubic-bezier(.2,.8,.2,1) both; }
.guia-resultado .gr-bolsa svg { width: 72px; height: auto; }
@media (min-width: 560px) { .guia-resultado { grid-template-columns: 96px 1fr; align-items: center; } .guia-resultado .gr-bolsa svg { width: 96px; } }
.guia-resultado h3 { font-size: 1.35rem; font-weight: 800; }
.guia-resultado p { color: var(--texto-suave); margin-top: 6px; font-size: .95rem; }
.guia-resultado .gr-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.guia-resultado .boton { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.guia-resultado .boton-accion { width: auto; }

/* Catálogo */
.catalogo { margin-top: 56px; }
.catalogo-encabezado { display: grid; gap: 16px; margin-bottom: 22px; }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex: none; border: 0; border-radius: 999px; padding: 9px 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 600; }
.filtro:hover { box-shadow: inset 0 0 0 1.5px var(--monte); }
.filtro[aria-selected="true"] { background: var(--monte); color: #fff; box-shadow: none; }
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.tarjeta { background: var(--papel); border-radius: var(--radio-tarjeta); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--linea); transition: box-shadow .3s; }
.tarjeta.resaltada { box-shadow: 0 0 0 3px var(--ambar), var(--sombra-flotante); }
.escenario { position: relative; height: 236px; display: grid; place-items: end center; padding-bottom: 14px; overflow: hidden; }
.escenario::before { content: ""; position: absolute; left: 50%; bottom: -120px; width: 320px; height: 220px; transform: translateX(-50%); border-radius: 50%; background: rgba(255,255,255,.55); }
.bolsa { position: relative; width: 132px; transform-origin: bottom center; transition: transform .55s cubic-bezier(.25,1.4,.45,1); }
.bolsa svg { width: 100%; height: auto; }
.sello { position: absolute; top: 14px; left: 14px; background: var(--lavanda); color: #fff; font-weight: 700; font-size: .82rem; padding: 6px 11px; border-radius: 999px; transform: rotate(-3deg); }
.sello.sello-coral { background: var(--coral); }
.tarjeta-cuerpo { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tarjeta-marca { font-size: .9rem; color: var(--texto-suave); font-weight: 600; }
.tarjeta-variedad { font-size: 1.55rem; font-weight: 800; margin-top: 2px; }
.tarjeta-resumen { color: var(--texto-suave); font-size: .94rem; }
.rasgos { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.rasgos li { font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--crema); color: var(--monte-suave); }
.tamanos { display: flex; gap: 6px; flex-wrap: wrap; }
.tamano { border: 0; min-width: 58px; padding: 8px 12px; border-radius: 12px; font-weight: 700; background: var(--crema); color: var(--monte); box-shadow: inset 0 0 0 1.5px transparent; transition: background .2s, color .2s, box-shadow .2s; }
.tamano:hover { box-shadow: inset 0 0 0 1.5px var(--monte); }
.tamano[aria-checked="true"] { background: var(--monte); color: #fff; }
.tamano .tamano-promo { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--lavanda); margin: 3px auto 0; }
.tamano[aria-checked="true"] .tamano-promo { background: var(--brote); }
.precio { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.precio-actual { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.02em; }
.precio-anterior { color: var(--texto-suave); text-decoration: line-through; font-size: .98rem; }
.precio-kilo { width: 100%; font-size: .85rem; color: var(--texto-suave); margin-top: -4px; }
.promo-nota { font-size: .84rem; color: var(--lavanda); font-weight: 600; }
.agregar { min-height: 50px; }
.cantidad { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; background: var(--hoja-pastel); border-radius: var(--radio-boton); min-height: 50px; overflow: hidden; }
.cantidad button { border: 0; background: transparent; height: 50px; font-size: 1.4rem; font-weight: 600; color: var(--hoja-oscura); }
.cantidad button:hover { background: rgba(47,121,80,.12); }
.cantidad output { text-align: center; font-weight: 700; }
.cantidad output small { display: block; font-weight: 500; font-size: .75rem; color: var(--texto-suave); }

/* Resumen del pedido (lateral y hoja) */
.resumen { background: var(--papel); border-radius: var(--radio-tarjeta); padding: 22px; }
.resumen h2 { font-size: 1.4rem; }
.resumen-vacio { color: var(--texto-suave); margin-top: 10px; font-size: .95rem; }
.lineas { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.linea { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.linea-bolsa { width: 44px; height: 54px; display: grid; place-items: end center; border-radius: 10px; }
.linea-bolsa svg { width: 34px; height: auto; }
.linea-nombre { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.linea-detalle { font-size: .82rem; color: var(--texto-suave); }
.linea-detalle .ahorro { color: var(--lavanda); font-weight: 600; }
.linea-precio { font-weight: 700; text-align: right; white-space: nowrap; }
.linea-quitar { border: 0; background: none; color: var(--texto-suave); font-size: .8rem; text-decoration: underline; padding: 0; margin-top: 2px; }
.totales { border-top: 1px dashed var(--linea); margin-top: 16px; padding-top: 14px; display: grid; gap: 6px; }
.totales div { display: flex; justify-content: space-between; font-size: .95rem; }
.totales .total { font-family: var(--fuente-titulo); font-size: 1.45rem; font-weight: 800; margin-top: 4px; }
.totales .ahorro { color: var(--lavanda); font-weight: 600; }
.resumen .boton-accion { margin-top: 18px; }
.resumen-nota { font-size: .82rem; color: var(--texto-suave); margin-top: 10px; text-align: center; }

/* Barra fija del pedido (celular) */
.barra-pedido { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; padding: 0 8px 0 18px; height: 62px; background: var(--monte); color: #fff; box-shadow: var(--sombra-flotante); animation: sube .4s cubic-bezier(.2,.9,.3,1.2); }
.barra-pedido[hidden] { display: none; }
@keyframes sube { from { transform: translateY(120%); } to { transform: none; } }
.barra-pedido-cuenta { font-size: .9rem; color: #cfe0d4; }
.barra-pedido-total { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.25rem; margin-right: auto; }
.barra-pedido-accion { background: var(--brote); color: var(--monte); font-weight: 700; padding: 12px 16px; border-radius: 12px; }

/* Hoja de pedido */
.hoja { border: 0; padding: 0; width: 100%; max-width: 100%; max-height: 94dvh; margin: auto auto 0; border-radius: 26px 26px 0 0; background: var(--crema); color: var(--texto); }
.hoja[open] { animation: sube .38s cubic-bezier(.2,.9,.3,1.05); }
.hoja::backdrop { background: rgba(29,55,42,.5); backdrop-filter: blur(2px); }
.hoja-interior { display: flex; flex-direction: column; max-height: 94dvh; overflow-x: hidden; }
.hoja-encabezado { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--linea); }
.pasos { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; counter-reset: paso; font-size: .86rem; font-weight: 600; color: var(--texto-suave); }
.pasos li { counter-increment: paso; display: flex; align-items: center; gap: 6px; }
.pasos li::before { content: counter(paso); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); font-size: .78rem; }
.pasos li + li::after { content: none; }
.pasos li:not(:last-child) { padding-right: 10px; border-right: 1px solid var(--linea); }
.pasos li.activo { color: var(--monte); }
.pasos li.activo::before { background: var(--monte); color: #fff; box-shadow: none; }
.pasos li.hecho::before { background: var(--hoja); color: #fff; box-shadow: none; content: "✓"; }
.hoja-cerrar { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--papel); display: grid; place-items: center; }
.hoja-cerrar svg { width: 20px; height: 20px; stroke: var(--monte); stroke-width: 2; stroke-linecap: round; }
.hoja-cuerpo { overflow-y: auto; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
.hoja-cuerpo .resumen { padding: 18px; }
.hoja-pie { display: grid; gap: 10px; margin-top: 18px; }

/* Formulario */
.formulario { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo label, .campo legend { font-weight: 600; font-size: .92rem; }
.campo .ayuda { font-size: .82rem; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); transition: box-shadow .2s; }
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--hoja); }
.campo.con-error input, .campo.con-error select { box-shadow: inset 0 0 0 2px var(--coral); }
.campo .error { color: #b8412d; font-size: .84rem; font-weight: 600; }
.campo-doble { display: grid; gap: 14px; }
.eleccion { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0; }
.eleccion legend { margin-bottom: 6px; }
.eleccion label { display: flex; gap: 10px; align-items: center; background: var(--papel); border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 600; font-size: .92rem; cursor: pointer; }
.eleccion label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--hoja); background: var(--hoja-pastel); }
.eleccion input { accent-color: var(--hoja); width: 18px; height: 18px; }
.entrega-estimada { background: var(--ambar-pastel); border-radius: 14px; padding: 12px 14px; font-size: .92rem; }
.entrega-estimada strong { font-weight: 700; }
.comercio { display: flex; gap: 10px; align-items: flex-start; background: var(--papel); border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 1.5px var(--linea); font-size: .9rem; cursor: pointer; }
.comercio input { accent-color: var(--hoja); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.comercio span { color: var(--texto-suave); }
.comercio strong { color: var(--texto); display: block; }

/* Confirmación */
.listo { text-align: center; padding: 10px 0 4px; }
.listo-marca { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; background: var(--hoja); display: grid; place-items: center; animation: brota .6s cubic-bezier(.3,1.6,.5,1) both; }
.listo-marca svg { width: 44px; height: 44px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: traza .5s .35s ease-out forwards; }
@keyframes brota { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes traza { to { stroke-dashoffset: 0; } }
.listo h3 { font-size: 1.6rem; font-weight: 800; }
.listo-numero { font-family: var(--fuente-titulo); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; color: var(--hoja); margin: 6px 0 4px; }
.listo p { color: var(--texto-suave); max-width: 38ch; margin: 6px auto 0; }
.listo-datos { text-align: left; margin-top: 20px; display: grid; gap: 10px; }
.listo-dato { background: var(--papel); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.listo-dato span { color: var(--texto-suave); }
.listo-dato strong { text-align: right; }

/* Entrega por zona */
.entrega { padding: 20px 0 64px; }
.entrega-bajada { color: var(--texto-suave); margin-top: 8px; max-width: 60ch; }
.zonas { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.zona { border-radius: 18px; padding: 16px 18px; }
.zona:nth-child(4n+1) { background: var(--hoja-pastel); }
.zona:nth-child(4n+2) { background: var(--lavanda-pastel); }
.zona:nth-child(4n+3) { background: var(--ambar-pastel); }
.zona:nth-child(4n+4) { background: var(--coral-pastel); }
.zona h3 { font-size: 1.2rem; font-weight: 800; }
.zona p { font-size: .92rem; color: var(--texto-suave); margin-top: 4px; }

/* Pie */
.pie { background: var(--monte); color: #fff; padding: 56px 0 120px; }
.pie-lema { font-family: var(--fuente-titulo); font-weight: 800; font-size: clamp(2.4rem, 8vw, 4.6rem); color: var(--brote); letter-spacing: -0.04em; line-height: .95; }
.pie-cierre { margin-top: 14px; color: #cfe0d4; font-size: 1.05rem; }
.pie-demo { margin-top: 28px; display: inline-block; font-size: .82rem; color: var(--monte); background: var(--ambar); padding: 6px 12px; border-radius: 999px; font-weight: 600; }

/* Aviso */
.aviso { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); background: var(--monte); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 40; white-space: nowrap; box-shadow: var(--sombra-flotante); }
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pantallas medianas ---------- */
@media (min-width: 720px) {
  .portada-interior { grid-template-columns: 1.15fr .85fr; align-items: end; padding: 72px 0 36px; }
  .portada-bolsas { height: 360px; max-width: none; }
  .campana-interior { grid-template-columns: 1fr auto; padding: 36px 0; }
  .campana .boton { justify-self: end; }
  .guia { padding: 34px; }
  .campo-doble { grid-template-columns: 1fr 1fr; }
  .hoja { max-width: 560px; margin: auto; border-radius: 26px; }
  .catalogo-encabezado { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Computadora: carrito al costado ---------- */
@media (min-width: 1040px) {
  .diseno { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  .lateral { display: block; }
  .resumen-lateral, #resumen-lateral { position: sticky; top: 92px; }
  .barra-pedido { display: none; }
  .pie { padding-bottom: 64px; }
  .aviso { bottom: 32px; }
}

/* ---------- Descuentos ---------- */
.descuentos { padding: 44px 0 8px; }
.descuentos-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.descuento { border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.descuento h3 { font-size: 1.3rem; font-weight: 800; }
.descuento p { color: var(--texto-suave); font-size: .94rem; }
.descuento-plazo { font-size: .84rem !important; }
.descuento-0 { background: var(--lavanda-pastel); }
.descuento-1 { background: var(--ambar-pastel); }
.descuento-2 { background: var(--coral-pastel); }
.descuento-volumen { background: var(--monte); color: #fff; }
.descuento-volumen p { color: #cfe0d4; }
.escalones { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.escalones li { display: flex; align-items: baseline; gap: 10px; }
.escalones strong { font-family: var(--fuente-titulo); font-size: 1.5rem; color: var(--brote); min-width: 3.6ch; }
.escalones span { color: #cfe0d4; font-size: .92rem; }
.sello-plano { align-self: flex-start; background: var(--papel); color: var(--monte); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.enlace { align-self: flex-start; margin-top: auto; border: 0; background: none; padding: 4px 0; font-weight: 700; color: var(--monte); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Lista de productos para cargar ---------- */
.catalogo { margin-top: 0; }
.catalogo-bajada { color: var(--texto-suave); margin-top: 6px; }
.lista-productos { display: grid; gap: 14px; }
.producto { background: var(--papel); border-radius: var(--radio-tarjeta); overflow: hidden; display: grid; grid-template-columns: 1fr; box-shadow: 0 1px 0 var(--linea); transition: box-shadow .3s; }
.producto.en-pedido { box-shadow: inset 0 0 0 2px var(--hoja); }
.producto.resaltado { box-shadow: 0 0 0 3px var(--ambar), var(--sombra-flotante); }
.producto-medio { display: grid; place-items: center; padding: 16px; min-height: 170px; }
.medio-foto { width: 100%; max-width: 170px; height: 170px; object-fit: contain; }
.medio-bolsa { width: 96px; }
.medio-bolsa svg { width: 100%; height: auto; }
.producto-info { padding: 16px 16px 18px; display: grid; gap: 10px; align-content: start; }
.producto-encabezado { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.producto-marca { font-size: .88rem; color: var(--texto-suave); font-weight: 600; }
.producto-nombre { font-size: 1.45rem; font-weight: 800; margin-top: 2px; }
.producto-cuenta { flex: none; background: var(--hoja); color: #fff; font-weight: 700; font-size: .82rem; padding: 5px 10px; border-radius: 999px; animation: brota .35s cubic-bezier(.3,1.6,.5,1); }
.producto-resumen { color: var(--texto-suave); font-size: .92rem; }
.filas { display: grid; gap: 8px; margin-top: 2px; }
.fila { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--crema); transition: background .2s; }
.fila.con-cantidad { background: var(--hoja-pastel); }
.fila-kg { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.05rem; }
.fila-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.25; }
.fila-precio strong { font-size: 1.05rem; }
.fila-precio s { color: var(--texto-suave); font-size: .85rem; }
.fila-precio small { width: 100%; color: var(--texto-suave); font-size: .78rem; }
.fila-promo { font-style: normal; font-weight: 700; font-size: .74rem; color: #fff; background: var(--lavanda); padding: 2px 8px; border-radius: 999px; }
.fila-promo-coral { background: var(--coral); }
.cantidad-mini { display: grid; grid-template-columns: 38px 52px 38px; align-items: center; background: var(--papel); border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--linea); overflow: hidden; }
.cantidad-mini button { border: 0; background: transparent; height: 42px; font-size: 1.25rem; font-weight: 600; color: var(--hoja-oscura); }
.cantidad-mini button:hover:not([disabled]) { background: var(--hoja-pastel); }
.cantidad-mini button[disabled] { color: #b9c4bd; cursor: default; }
.cantidad-mini input { width: 100%; height: 42px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 1rem; -moz-appearance: textfield; }
.cantidad-mini input::-webkit-outer-spin-button, .cantidad-mini input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cantidad-mini input:focus { outline: none; background: var(--hoja-pastel); }
@media (min-width: 640px) {
  .producto { grid-template-columns: 200px 1fr; }
  .producto-medio { min-height: 100%; }
}

/* ---------- Guía (secundaria) ---------- */
details.guia { margin-top: 36px; padding: 0; }
details.guia summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; display: grid; gap: 4px; }
details.guia summary::-webkit-details-marker { display: none; }
details.guia summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--papel); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
details.guia[open] summary::after { content: "−"; }
.guia-titulo { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.25rem; }
details.guia .guia-preguntas, details.guia .guia-resultado { margin-left: 22px; margin-right: 22px; }
details.guia .guia-preguntas { margin-top: 0; }
details.guia[open] { padding-bottom: 22px; }

/* ---------- Totales ---------- */
.proximo { margin-top: 8px; font-size: .86rem; color: var(--monte); background: var(--ambar-pastel); padding: 10px 12px; border-radius: 12px; }
.barra-progreso { display: block; height: 6px; border-radius: 3px; background: rgba(29,55,42,.12); margin-top: 8px; overflow: hidden; }
.barra-progreso i { display: block; height: 100%; background: var(--ambar); border-radius: 3px; transition: width .4s; }

/* ---------- Formularios del pedido ---------- */
.form-intro { color: var(--texto-suave); font-size: .92rem; }
.grupo { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.grupo legend { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; padding: 0; }
.grupo + .grupo { padding-top: 14px; border-top: 1px solid var(--linea); }
.etiqueta { font-weight: 600; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 600; font-size: .92rem; }
.chip input:checked + span { background: var(--monte); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--ambar); outline-offset: 2px; }
.campo.con-error .chips .chip span { box-shadow: inset 0 0 0 1.5px var(--coral); }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.casilla input { accent-color: var(--hoja); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.opciones-entrega { display: grid; gap: 10px; }
.opcion-entrega { display: grid; grid-template-columns: auto 40px 1fr; gap: 12px; align-items: center; background: var(--papel); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 1.5px var(--linea); cursor: pointer; }
.opcion-entrega:has(input:checked) { box-shadow: inset 0 0 0 2px var(--hoja); background: var(--hoja-pastel); }
.opcion-entrega input { accent-color: var(--hoja); width: 18px; height: 18px; }
.oe-icono svg { width: 34px; height: 34px; fill: none; stroke: var(--monte); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.opcion-entrega strong { display: block; }
.opcion-entrega small { color: var(--texto-suave); font-size: .86rem; }
#bloque-reparto { display: grid; gap: 12px; }
#bloque-reparto[hidden], #bloque-otra-direccion[hidden] { display: none; }
.grupo-interno { display: grid; gap: 12px; }
.mini-resumen { display: flex; justify-content: space-between; align-items: baseline; background: var(--papel); border-radius: 14px; padding: 12px 14px; color: var(--texto-suave); font-size: .92rem; }
.mini-resumen strong { font-family: var(--fuente-titulo); font-size: 1.3rem; color: var(--monte); }
.listo-total strong { font-family: var(--fuente-titulo); font-size: 1.2rem; }

/* En pantallas angostas los pasos muestran solo el número, salvo el actual */
@media (max-width: 520px) {
  .pasos { gap: 4px; }
  .pasos li:not(.activo) { font-size: 0; gap: 0; }
  .pasos li:not(.activo)::before { font-size: .78rem; }
  .pasos li:not(:last-child) { padding-right: 6px; }
}

/* =====================================================================
   Versión de muestra: barra para cambiar de vista
   ===================================================================== */
.demo-barra { position: relative; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 16px; background: #0f1f17; color: #cfe0d4; font-size: .82rem; }
.demo-barra[hidden] { display: none; }
.demo-vistas { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 3px; border-radius: 10px; }
.demo-vistas button { border: 0; background: transparent; color: #cfe0d4; font-weight: 600; font-size: .82rem; padding: 6px 10px; border-radius: 8px; }
.demo-vistas button[aria-selected="true"], .demo-vistas a[aria-current] { background: var(--brote); color: var(--monte); }
.demo-vistas a { color: #cfe0d4; font-weight: 600; font-size: .82rem; padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.demo-acciones { margin-top: 18px; background: var(--papel); border-radius: 16px; padding: 14px; display: grid; gap: 8px; text-align: left; }
.demo-acciones p { font-size: .86rem; margin: 0 0 4px !important; max-width: none !important; }
.demo-acciones .boton { min-height: 44px; }
.listo-acciones { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.listo-acciones .boton { min-height: 46px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 520px) { .listo-acciones { grid-template-columns: 1fr; } }

/* Correo */
.correo-dialogo { border: 0; padding: 0; width: min(100% - 16px, 680px); max-height: 92dvh; border-radius: 22px; background: var(--papel); }
.correo-dialogo::backdrop { background: rgba(29,55,42,.55); }
.correo-marco { display: flex; flex-direction: column; height: min(92dvh, 900px); }
.correo-cabecera { position: relative; padding: 14px 64px 12px 18px; border-bottom: 1px solid var(--linea); display: grid; gap: 3px; font-size: .88rem; }
.correo-cabecera span { display: inline-block; min-width: 54px; color: var(--texto-suave); }
.correo-cabecera .hoja-cerrar { position: absolute; top: 12px; right: 12px; background: var(--crema); }
.correo-vista { flex: 1; width: 100%; border: 0; background: var(--crema); }


@media (prefers-reduced-motion: reduce) {
  .gatito, .gatito .patitas { transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Precios de cliente (lista exclusiva) y datos guardados */
.fila-cliente { background: var(--hoja); }
.aviso-lista { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--hoja-pastel); color: var(--hoja-oscura); font-size: .88rem; line-height: 1.4; }
.aviso-lista strong { color: var(--monte); }
.form-hola { background: var(--hoja-pastel); color: var(--hoja-oscura); padding: 10px 12px; border-radius: 12px; }
.form-hola strong { color: var(--monte); }
.aviso-catalogo { margin: 0 0 16px; }

/* Aviso cuando la empresa cambia precios con la página abierta */
.aviso-precios { position: fixed; top: 14px; left: 50%; transform: translate(-50%, -16px); background: var(--papel); color: var(--monte); border: 1px solid var(--linea); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(29, 55, 42, .22); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; }
.aviso-precios.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .aviso-precios { transition: none; } }

/* ---------- Datos del pedido: un solo paso, compacto (28/11) ---------- */
.form-compacto { gap: 10px; }
.form-compacto .campos-datos { display: grid; gap: 10px; }
.form-compacto .campo { gap: 4px; }
.form-compacto .campo label { font-size: .8rem; font-weight: 600; color: var(--texto-suave); }
.form-compacto .campo input, .form-compacto .campo select { min-height: 42px; padding: 9px 12px; border-radius: 10px; font-size: .95rem; }
.form-compacto .campo-doble { grid-template-columns: 1fr 1fr; gap: 10px; }
.form-compacto .campo-dir { grid-template-columns: 1.5fr 1fr; }
.form-compacto .form-intro { font-size: .86rem; margin: 0; }
.form-compacto .error { font-size: .78rem; }
.datos-guardados { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--papel); border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1.5px var(--linea); font-size: .9rem; }
.datos-guardados > div { display: grid; gap: 2px; min-width: 0; }
.datos-guardados span { color: var(--texto-suave); overflow-wrap: anywhere; }
.datos-guardados .dg-hola { font-size: .8rem; }
.datos-guardados strong { color: var(--monte); font-size: 1rem; }
.datos-guardados .dg-tipo { font-size: .78rem; }
.boton-texto { background: none; border: 0; padding: 4px 2px; color: var(--hoja); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex: none; }
.mas-datos summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--hoja); padding: 2px 0; }
.mas-datos summary .ayuda { color: var(--texto-suave); font-weight: 400; }
.mas-datos[open] summary { margin-bottom: 8px; }
@media (max-width: 380px) { .form-compacto .campo-doble { grid-template-columns: 1fr; } }
.form-compacto .campos-datos[hidden] { display: none; }
.form-compacto .campo input, .form-compacto .campo select { height: 42px; min-height: 0; line-height: 1.2; }
.form-compacto .mini-resumen { gap: 12px; align-items: center; }
.form-compacto .mini-resumen strong { white-space: nowrap; }
