/* ASOFINCAS · app (PWA). Experiencia de aplicación: registro, domicilio, tienda, carrito y pedidos. */
:root {
  --verde-950: #0b2a1a; --verde-900: #0f3d24; --verde-800: #14532d; --verde-700: #1b6b3a; --verde-600: #23874a;
  --verde-200: #cfe8cb; --verde-100: #e7f3e4; --verde-50: #f2f9f0;
  --sol: #ffc233; --sol-100: #fff3d1; --tierra: #d9622b; --rojo: #d6402b;
  --fondo: #f6f5f1; --blanco: #fff; --tinta: #13241b; --suave: #56665b; --tenue: #8a978e; --linea: #ebe6da;
  --radio: 18px; --sombra: 0 1px 2px rgb(19 36 27 / .06), 0 8px 24px -14px rgb(19 36 27 / .28);
  --curva: cubic-bezier(.2, .8, .2, 1);
  --texto: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titulo: "Fraunces", Georgia, serif;
  --alto-tabs: calc(64px + env(safe-area-inset-bottom));
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--texto); color: var(--tinta); background: #e9e5da; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--verde-700); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Escenario: teléfono en computadora, pantalla completa en celular ---------- */
.escenario { min-height: 100%; display: flex; justify-content: center; align-items: center; gap: 56px; padding: 0; }
.presentacion { display: none; }
.app { position: relative; width: 100%; max-width: 480px; height: 100dvh; background: var(--fondo); overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .escenario { padding: 32px; background: radial-gradient(circle at 20% 20%, #fff7df, transparent 50%), #e9e5da; }
  .app { height: min(860px, calc(100dvh - 64px)); width: 400px; border-radius: 44px; border: 12px solid #0d1411; box-shadow: 0 40px 80px -30px rgb(11 42 26 / .55); }
  .presentacion { display: block; max-width: 360px; }
  .presentacion img { width: 180px; height: auto; margin-bottom: 18px; }
  .presentacion h1 { font-family: var(--titulo); font-size: 2.4rem; line-height: 1.05; margin: 0 0 12px; }
  .presentacion h1 em { color: var(--verde-600); }
  .presentacion p { color: var(--suave); line-height: 1.55; }
  .presentacion__qr { width: 170px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: var(--sombra); margin: 18px 0 8px; }
  .presentacion__qr svg { width: 100%; height: auto; display: block; }
  .presentacion__nota { font-size: .86rem; }
  .presentacion__credito { display: inline-block; margin-top: 18px; font-size: .82rem; color: var(--suave); text-decoration: none; }
}
@media (display-mode: standalone) { .escenario { padding: 0; } .app { height: 100dvh; max-width: none; border: 0; border-radius: 0; } .presentacion { display: none; } }

.cinta-demo { flex: none; background: #13365a; color: #fff; text-align: center; font-size: .7rem; font-weight: 700; padding: 4px 10px; letter-spacing: .02em; }
.vista { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.vista.con-tabs { padding-bottom: calc(var(--alto-tabs) + 12px); }
.vista.con-tabs.con-barra { padding-bottom: calc(var(--alto-tabs) + 84px); }
.pantalla { min-height: 100%; animation: entrar .3s var(--curva) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Botones y campos ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 16px; padding: 1em 1.2em; font-weight: 800; font-size: 1rem; text-decoration: none; transition: transform .15s, background-color .2s; }
.boton:active { transform: scale(.98); }
.boton--primario { background: var(--verde-700); color: #fff; }
.boton--primario[disabled] { background: #b9c3bc; cursor: not-allowed; }
.boton--claro { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton--texto { background: none; color: var(--verde-700); padding: .7em; }
.boton--ancho { width: 100%; }
.boton--chico { padding: .6em .95em; font-size: .86rem; border-radius: 12px; }
.icono { width: 42px; height: 42px; border: 0; border-radius: 14px; background: none; display: grid; place-items: center; color: var(--tinta); font-size: 1.05rem; }
.icono:hover { background: rgb(19 36 27 / .06); }
.campo { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; font-size: .88rem; }
.campo i { font-style: normal; font-weight: 500; color: var(--tenue); }
.campo input, .campo textarea { width: 100%; border: 1.5px solid var(--linea); border-radius: 14px; background: #fff; padding: .85em 1em; font-weight: 500; font-size: 1rem; outline: none; }
.campo input:focus, .campo textarea:focus { border-color: var(--verde-600); box-shadow: 0 0 0 4px rgb(35 135 74 / .14); }
.campo input[aria-invalid="true"] { border-color: var(--rojo); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--linea); background: #fff; border-radius: 999px; padding: .55em 1em; font-weight: 700; font-size: .88rem; color: var(--suave); }
.chip[aria-pressed="true"] { border-color: var(--verde-600); background: var(--verde-100); color: var(--verde-900); }
.chip small { font-weight: 600; color: var(--tenue); margin-left: 4px; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--suave); line-height: 1.45; }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--verde-700); flex: none; }
.error { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #fde8e4; color: #8c2414; font-weight: 600; font-size: .86rem; }
.nota-demo { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--sol-100); color: #7a4c00; font-size: .84rem; font-weight: 600; }

/* ---------- Splash y bienvenida ---------- */
.splash { height: 100%; display: grid; place-items: center; background: var(--verde-800); }
.splash img { width: 120px; height: 120px; animation: latido 1s var(--curva) infinite alternate; }
@keyframes latido { to { transform: scale(1.06); } }
.bienvenida { height: 100%; display: flex; flex-direction: column; background: #fff; }
.bienvenida__carril { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bienvenida__carril::-webkit-scrollbar { display: none; }
.lamina { flex: none; width: 100%; scroll-snap-align: start; display: flex; flex-direction: column; }
.lamina__foto { height: 52%; min-height: 240px; position: relative; overflow: hidden; border-radius: 0 0 36px 36px; }
.lamina__foto img { width: 100%; height: 100%; object-fit: cover; }
.lamina__foto--producto { background: var(--verde-50); display: grid; place-items: center; }
.lamina__foto--producto img { width: 64%; height: auto; border-radius: 24px; box-shadow: var(--sombra); }
.lamina__texto { padding: 26px 26px 0; }
.lamina__texto h2 { font-family: var(--titulo); font-size: 1.9rem; line-height: 1.08; margin: 0 0 10px; }
.lamina__texto h2 em { color: var(--verde-600); }
.lamina__texto p { color: var(--suave); margin: 0; line-height: 1.5; }
.puntos { display: flex; justify-content: center; gap: 6px; padding: 14px 0; }
.puntos i { width: 7px; height: 7px; border-radius: 99px; background: var(--linea); transition: width .3s, background-color .3s; }
.puntos i.activo { width: 22px; background: var(--verde-700); }
.bienvenida__acciones { padding: 4px 22px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }

/* ---------- Formularios de registro ---------- */
.formulario { padding: 8px 22px 28px; background: #fff; min-height: 100%; }
.cabecera-paso { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 10px 12px; background: #fff; position: sticky; top: 0; z-index: 2; }
.cabecera-paso h1 { font-size: 1.02rem; text-align: center; margin: 0; }
.pasos-registro { display: flex; gap: 6px; padding: 0 22px 14px; background: #fff; }
.pasos-registro i { flex: 1; height: 4px; border-radius: 99px; background: var(--linea); }
.pasos-registro i.hecho { background: var(--verde-700); }
.formulario h2 { font-family: var(--titulo); font-size: 1.7rem; line-height: 1.1; margin: 4px 0 6px; }
.formulario > p { color: var(--suave); margin: 0 0 20px; line-height: 1.5; }
.codigo-input { font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; font-weight: 800 !important; font-family: ui-monospace, Consolas, monospace; }
.etiqueta { font-weight: 800; font-size: .88rem; margin: 18px 0 10px; }
.boton-gps { display: flex; align-items: center; gap: 10px; width: 100%; border: 1.5px dashed var(--verde-600); background: var(--verde-50); color: var(--verde-800); border-radius: 14px; padding: .85em 1em; font-weight: 700; margin-bottom: 14px; }
.boton-gps.ok { border-style: solid; }

/* ---------- Inicio ---------- */
.inicio__cabecera { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--verde-800); color: #fff; }
.entregar { display: flex; align-items: center; gap: 8px; border: 0; background: rgb(255 255 255 / .1); color: #fff; border-radius: 14px; padding: 8px 12px; text-align: left; min-width: 0; }
.entregar .ic { color: var(--sol); }
.entregar small { display: block; font-size: .7rem; opacity: .8; }
.entregar b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sol); color: var(--verde-950); font-weight: 800; display: grid; place-items: center; flex: none; text-decoration: none; }
.inicio__hero { background: var(--verde-800); color: #fff; padding: 4px 16px 22px; border-radius: 0 0 28px 28px; }
.inicio__hero h1 { font-family: var(--titulo); font-size: 1.65rem; margin: 6px 0 2px; }
.inicio__hero p { margin: 0 0 14px; opacity: .85; }
.buscador { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: #fff; color: var(--tenue); border-radius: 16px; padding: .9em 1em; font-weight: 600; text-align: left; }
.bloque { padding: 18px 16px 4px; }
.bloque__titulo { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bloque__titulo h2 { font-size: 1.12rem; margin: 0; }
.bloque__titulo a, .bloque__titulo button { font-size: .84rem; font-weight: 800; color: var(--verde-700); text-decoration: none; background: none; border: 0; }
.carril { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.carril::-webkit-scrollbar { display: none; }
.promo { flex: none; width: 84%; scroll-snap-align: start; border-radius: 22px; padding: 18px; color: #fff; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.promo small { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; opacity: .85; }
.promo h3 { font-family: var(--titulo); font-size: 1.35rem; margin: 6px 0; line-height: 1.1; max-width: 70%; }
.promo img { position: absolute; right: -10px; bottom: -10px; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgb(255 255 255 / .6); }
.promo .boton { align-self: flex-start; background: #fff; color: var(--verde-900); padding: .55em 1em; font-size: .84rem; border-radius: 12px; position: relative; z-index: 1; }
.categorias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.categoria { border: 0; background: none; display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: .74rem; color: var(--suave); padding: 0; }
.categoria img { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; background: #fff; box-shadow: var(--sombra); }
.repetir { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); }
.repetir .ic { font-size: 1.5rem; color: var(--verde-700); }
.repetir div { flex: 1; min-width: 0; }
.repetir small { display: block; color: var(--tenue); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.productor { flex: none; width: 210px; scroll-snap-align: start; background: #fff; border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); }
.productor__cabeza { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.productor__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--verde-700); flex: none; }
.productor b { display: block; font-size: .9rem; line-height: 1.2; }
.productor small { color: var(--tenue); font-size: .74rem; }
.productor p { margin: 0; font-size: .8rem; color: var(--suave); line-height: 1.4; }
.ejemplo { display: inline-block; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--sol-100); color: #7a4c00; border-radius: 99px; padding: .2em .6em; margin-top: 8px; }

/* ---------- Tarjetas de producto ---------- */
.rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.producto { position: relative; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.producto--carril { flex: none; width: 160px; scroll-snap-align: start; }
.producto__foto { position: relative; aspect-ratio: 1; background: #f1efe9; border: 0; padding: 0; width: 100%; }
.producto__foto img { width: 100%; height: 100%; object-fit: cover; }
.producto__etiqueta { position: absolute; left: 8px; top: 8px; font-size: .64rem; font-weight: 800; padding: .3em .6em; border-radius: 99px; background: var(--sol); color: var(--verde-950); }
.producto__etiqueta--mas { background: var(--tierra); color: #fff; }
.producto__etiqueta--nuevo { background: #13365a; color: #fff; }
.producto__info { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.producto__info b { font-size: .92rem; line-height: 1.2; }
.producto__info small { color: var(--tenue); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.producto__fila { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; }
.precio { font-weight: 800; font-size: 1rem; }
.precio small { font-weight: 600; color: var(--tenue); font-size: .68rem; }
.mas { width: 36px; height: 36px; border: 0; border-radius: 12px; background: var(--verde-700); color: #fff; display: grid; place-items: center; }
.paso { display: inline-flex; align-items: center; background: var(--verde-100); border-radius: 12px; }
.paso button { width: 32px; height: 34px; border: 0; background: none; color: var(--verde-800); display: grid; place-items: center; }
.paso output { min-width: 42px; text-align: center; font-weight: 800; font-size: .78rem; color: var(--verde-900); }
.agotado .producto__foto img { filter: grayscale(1) opacity(.55); }
.agotado .producto__foto::after { content: "Agotado"; position: absolute; right: 8px; bottom: 8px; background: var(--tinta); color: #fff; font-size: .66rem; font-weight: 800; padding: .25em .6em; border-radius: 99px; }
.canasta-app { flex: none; width: 240px; scroll-snap-align: start; border-radius: 22px; padding: 16px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.canasta-app h3 { font-family: var(--titulo); font-size: 1.3rem; margin: 0; }
.canasta-app p { margin: 0; font-size: .82rem; opacity: .85; }
.canasta-app__pie { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.canasta-app__pie b { font-size: 1.2rem; }
.canasta-app .boton { background: #fff; color: var(--verde-900); }

/* ---------- Cabeceras simples, buscar ---------- */
.cabecera { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 6px; padding: 10px 12px; background: var(--fondo); }
.cabecera h1 { margin: 0; font-size: 1.15rem; text-align: center; }
.cabecera--titulo { grid-template-columns: 1fr auto; padding: 16px 16px 8px; }
.cabecera--titulo h1 { text-align: left; font-family: var(--titulo); font-size: 1.6rem; }
.buscar__campo { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 0 12px; box-shadow: var(--sombra); margin: 0 16px 12px; }
.buscar__campo input { flex: 1; border: 0; outline: none; padding: .9em 0; background: none; font-size: 1rem; }
.unidad { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); }
.unidad button { border: 0; background: none; border-radius: 999px; padding: .35em .85em; font-weight: 800; font-size: .78rem; color: var(--suave); }
.unidad button[aria-pressed="true"] { background: var(--verde-700); color: #fff; }
.vacio { text-align: center; color: var(--suave); padding: 40px 24px; }
.vacio .ic { font-size: 2.6rem; color: #cfc8b6; }
.vacio b { display: block; color: var(--tinta); margin: 8px 0 4px; font-size: 1.05rem; }

/* ---------- Carrito y checkout ---------- */
.tarjeta { background: #fff; border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); margin: 0 16px 12px; }
.tarjeta h3 { margin: 0 0 10px; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.tarjeta h3 .ic { color: var(--verde-700); }
.linea { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.linea:last-child { border-bottom: 0; }
.linea img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.linea b { font-size: .9rem; }
.linea small { display: block; color: var(--tenue); font-size: .74rem; }
.linea input { width: 100%; margin-top: 6px; border: 1px dashed var(--linea); border-radius: 10px; padding: .4em .6em; font-size: .78rem; outline: none; }
.linea input:focus { border-style: solid; border-color: var(--verde-600); }
.linea__derecha { display: grid; justify-items: end; gap: 8px; }
.direccion-activa { display: flex; align-items: center; gap: 10px; }
.direccion-activa .ic { color: var(--verde-700); font-size: 1.3rem; }
.direccion-activa div { flex: 1; min-width: 0; }
.direccion-activa small { display: block; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dia { flex: none; border: 1.5px solid var(--linea); background: #fff; border-radius: 14px; padding: 8px 10px; min-width: 62px; text-align: center; font-size: .72rem; color: var(--suave); }
.dia b { display: block; font-size: 1.15rem; color: var(--tinta); }
.dia[aria-pressed="true"] { border-color: var(--verde-600); background: var(--verde-100); }
.fila { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .92rem; }
.fila--total { border-top: 1px dashed var(--linea); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.05rem; }
.aviso-minimo { margin: 0 16px 12px; padding: 10px 12px; border-radius: 12px; background: var(--sol-100); color: #7a4c00; font-size: .84rem; font-weight: 600; }
.confirmar { position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--fondo) 70%, transparent); }
.turnstile { margin: 10px 0 0; min-height: 65px; }

/* ---------- Pedidos ---------- */
.pedido-tarjeta { display: block; width: calc(100% - 32px); margin: 0 16px 12px; text-align: left; border: 0; background: #fff; border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); }
.pedido-tarjeta__fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pedido-tarjeta code { font-weight: 800; font-size: .95rem; }
.pedido-tarjeta small { color: var(--tenue); }
.estado { font-size: .72rem; font-weight: 800; padding: .3em .7em; border-radius: 99px; background: var(--verde-100); color: var(--verde-800); white-space: nowrap; }
.estado--en_camino { background: var(--sol-100); color: #7a4c00; }
.estado--cancelado { background: #fde8e4; color: #8c2414; }
.tiempo { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 0; }
.tiempo li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; position: relative; padding-bottom: 16px; color: var(--tenue); font-weight: 600; }
.tiempo li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--linea); }
.tiempo li:last-child::before { display: none; }
.tiempo i { width: 28px; height: 28px; border-radius: 50%; background: var(--linea); display: grid; place-items: center; color: #fff; font-style: normal; }
.tiempo .hecho { color: var(--tinta); }
.tiempo .hecho i { background: var(--verde-600); }
.tiempo .hecho::before { background: var(--verde-600); }
.tiempo .actual i { box-shadow: 0 0 0 5px var(--verde-100); }
.exito { text-align: center; padding: 34px 22px 10px; }
.exito__check { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; background: var(--verde-700); color: #fff; display: grid; place-items: center; font-size: 2.6rem; box-shadow: 0 0 0 12px var(--verde-100); animation: sello .6s var(--curva) both; }
@keyframes sello { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
.exito h2 { font-family: var(--titulo); font-size: 1.8rem; margin: 8px 0 6px; }
.exito p { color: var(--suave); }
.codigo { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; padding: 10px 18px; border: 2px dashed var(--verde-600); border-radius: 14px; background: #fff; margin: 6px 0 4px; }

/* ---------- Cuenta ---------- */
.perfil { display: flex; align-items: center; gap: 14px; padding: 6px 16px 16px; }
.perfil .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.perfil b { display: block; font-size: 1.15rem; }
.perfil small { color: var(--tenue); }
.menu { list-style: none; margin: 0 16px 14px; padding: 0; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--linea); }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 15px 16px; text-align: left; text-decoration: none; color: var(--tinta); font-weight: 700; font-size: .95rem; }
.menu .ic:first-child { color: var(--verde-700); }
.menu span { flex: 1; }
.menu small { display: block; color: var(--tenue); font-weight: 500; font-size: .76rem; }
.menu .peligro { color: var(--rojo); }
.menu .peligro .ic:first-child { color: var(--rojo); }
.direccion-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.direccion-item:last-child { border-bottom: 0; }
.direccion-item label { flex: 1; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-width: 0; }
.direccion-item input { accent-color: var(--verde-700); width: 20px; height: 20px; margin: 2px 0 0; }
.direccion-item small { display: block; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Asistente ---------- */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat__mensajes { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.burbuja-chat { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.45; white-space: pre-line; }
.burbuja-chat--asistente { align-self: flex-start; background: #fff; box-shadow: var(--sombra); border-bottom-left-radius: 6px; }
.burbuja-chat--cliente { align-self: flex-end; background: var(--verde-700); color: #fff; border-bottom-right-radius: 6px; }
.tarjeta-chat { align-self: flex-start; width: 86%; background: var(--verde-100); border-radius: 16px; padding: 12px 14px; font-size: .86rem; }
.tarjeta-chat ul { list-style: none; padding: 0; margin: 6px 0 8px; }
.tarjeta-chat li { display: flex; justify-content: space-between; }
.chat__sugerencias { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.chat__sugerencias button { flex: none; border: 1.5px solid var(--verde-600); background: #fff; color: var(--verde-800); border-radius: 999px; padding: .45em .9em; font-weight: 700; font-size: .82rem; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--linea); }
.chat__form input { flex: 1; border: 1.5px solid var(--linea); border-radius: 999px; padding: .75em 1em; outline: none; }
.chat__form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--verde-700); color: #fff; display: grid; place-items: center; }

/* ---------- Barra del carrito y pestañas ---------- */
.barra-carrito { position: absolute; left: 12px; right: 12px; bottom: calc(var(--alto-tabs) + 10px); z-index: 5; animation: entrar .3s var(--curva) both; }
.barra-carrito button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; padding: 14px 16px; background: var(--verde-800); color: #fff; font-weight: 800; box-shadow: 0 14px 30px -12px rgb(11 42 26 / .7); }
.barra-carrito button span:nth-child(2) { flex: 1; text-align: left; }
.barra-carrito__cuenta { min-width: 28px; height: 28px; border-radius: 9px; background: var(--sol); color: var(--verde-950); display: grid; place-items: center; font-size: .85rem; }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: var(--alto-tabs); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--linea); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tenue); text-decoration: none; font-size: .68rem; font-weight: 700; }
.tabs .ic { font-size: 1.35rem; }
.tabs a.activo { color: var(--verde-700); }
.burbuja { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 99px; background: var(--sol); color: var(--verde-950); font-size: .66rem; font-weight: 800; font-style: normal; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Hojas (dialog) ---------- */
.hoja { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 480px; max-height: 92dvh; background: transparent; }
.hoja::backdrop { background: rgb(11 42 26 / .45); }
.hoja[open] { animation: subir .3s var(--curva); }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
.hoja__caja { background: var(--fondo); border-radius: 26px 26px 0 0; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 900px) { .hoja { margin: auto; max-width: 400px; } .hoja__caja { border-radius: 26px; } }
.hoja__cabecera { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 8px 20px; }
.hoja__cabecera h2 { margin: 0; font-size: 1.15rem; }
.hoja__cuerpo { overflow-y: auto; padding: 4px 20px calc(20px + env(safe-area-inset-bottom)); }
.ficha-producto__foto { position: relative; aspect-ratio: 1.3; background: #f1efe9; }
.ficha-producto__foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-producto__foto .icono { position: absolute; right: 12px; top: 12px; background: #fff; }
.ficha-producto h2 { font-family: var(--titulo); font-size: 1.6rem; margin: 14px 0 4px; }
.origen { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--verde-800); background: var(--verde-100); border-radius: 99px; padding: .35em .8em; }
.ficha-producto p { color: var(--suave); line-height: 1.5; }
.ficha-producto__compra { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; }
.ficha-producto__compra .paso button { width: 44px; height: 46px; }
.ficha-producto__compra .paso output { min-width: 64px; font-size: .95rem; }

/* ---------- Avisos ---------- */
.avisos { position: absolute; left: 12px; right: 12px; top: 40px; z-index: 20; display: grid; gap: 8px; pointer-events: none; }
.aviso { display: flex; align-items: center; gap: 10px; background: var(--tinta); color: #fff; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: .88rem; box-shadow: 0 14px 30px -14px rgb(0 0 0 / .6); animation: entrar .3s var(--curva) both; pointer-events: auto; }
.aviso .ic { color: var(--sol); }
.aviso.saliendo { opacity: 0; transform: translateY(-8px); transition: all .3s; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Pantallas de formulario: fondo blanco completo */
.pantalla:has(.formulario) { background: #fff; }

/* Turnstile invisible: sin caja reservada */
.turnstile { min-height: 0; margin: 0; }
