/* ===== Cocina sin Frontera · tienda de pedidos =====
   Colores y tipografías base: brand.css (generado desde _BrandKit/marca.md). */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Kaushan+Script&display=swap");

:root {
  --green: var(--primario, #149b79);
  --green-dark: var(--primario-2, #0d6b54);
  --green-deep: var(--fondo-2, #0a4f3e);
  --yellow: var(--secundario, #f2b90f);
  --yellow-dark: var(--secundario-2, #c9960a);
  --yellow-soft: #fbeab7;
  --coral: var(--acento, #e8603c);
  --cream: var(--base, #fff8ec);
  --sand: var(--base-2, #f6ead3);
  --ink: var(--oscuro, #1c2a25);
  --muted: #69726f;
  --line: rgba(28, 42, 37, .11);
  --white: #fff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(28, 42, 37, .1);
  --font-head: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  --font-body: var(--font-cuerpo, "DM Sans", system-ui, sans-serif);
  --font-script: "Kaushan Script", cursive;
  --cats-alto: 64px;
  /* Fondos claros de los platos sin foto (22% del color de marca sobre blanco). Colores fijos y no color-mix():
     los iPhone con iOS anterior a 16.2 no lo entienden y descartan el color entero (el banner quedaba sin verde). */
  --pastel-amarillo: #fcf0ca;
  --pastel-coral: #fadcd4;
  --pastel-verde: #cbe9e1;
  --pastel-verde-2: #caded9;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cats-alto) + 12px); }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0 0 .8em; }
small { font-weight: 400; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; border: 0; font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--primario { background: var(--green); color: var(--white); }
.btn--primario:hover { background: var(--green-dark); }
.btn--bloque { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn--claro { background: var(--sand); color: var(--ink); }
.btn--wa { background: #25d366; color: var(--white); }
.icon-btn { background: var(--white); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--ink); }

/* Franja (solo si se cargan mensajes en el panel) */
.franja { background: var(--green-deep); color: var(--yellow-soft); font-size: .85rem; overflow: hidden; white-space: nowrap; }
.franja:not(:has(.franja__pista)) { display: none; }
.franja__pista { display: flex; width: max-content; animation: franja 40s linear infinite; }
.franja__tramo { display: flex; gap: 22px; padding: .45em 11px; }
.franja__punto { color: var(--yellow); }
@keyframes franja { to { transform: translateX(-50%); } }

/* Banner grande: logo flotando con Caribe, Argentina y Mundo */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 185, 15, .25), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(232, 96, 60, .18), transparent 35%),
    var(--green);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 56px 0 110px; }
.hero__nombre { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.hero__pill { font-family: var(--font-script); color: var(--yellow); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; margin: 0 0 4px; }
.hero__bajada { font-size: 1.12rem; line-height: 1.55; max-width: 540px; opacity: .92; margin: 14px 0 22px; }
.btn--amarillo { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--yellow-dark); }
.btn--amarillo:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--yellow-dark); }
.hero__visual { position: relative; aspect-ratio: 1; max-width: 400px; width: 100%; justify-self: center; }
.hero__circle {
  position: absolute; inset: 6%; border-radius: 50%; background: var(--cream); display: grid; place-items: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.25), inset 0 0 0 14px var(--yellow); animation: flotar 6s ease-in-out infinite;
}
.hero__circle img { width: 82%; height: auto; aspect-ratio: 1; object-fit: contain; }
@keyframes flotar { 50% { transform: translateY(-12px) rotate(-2deg); } }
.hero__chip { position: absolute; background: var(--white); color: var(--ink); font-weight: 700; padding: .45em 1.1em .55em; border-radius: 999px; box-shadow: var(--shadow); font-size: .95rem; white-space: nowrap; line-height: 1.15; text-align: center; }
.hero__chip small { display: block; font-size: .72em; font-weight: 600; color: inherit; }
.hero__chip--a { top: 4%; left: -2%; transform: rotate(-6deg); }
.hero__chip--b { top: 46%; right: -6%; transform: rotate(5deg); background: var(--yellow); }
.hero__chip--c { bottom: 4%; left: 8%; transform: rotate(-3deg); background: var(--coral); color: var(--white); }
.hero__ola { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--cream); }
.local__info { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .88rem; padding: .35em .85em; border-radius: 999px; background: rgba(255,255,255,.16); color: var(--white); white-space: nowrap; }
.chip--abierto { background: var(--white); color: var(--green-dark); font-weight: 700; }
.chip--cerrado { background: var(--coral); color: var(--white); font-weight: 700; }

/* Banners (solo si hay vigentes) */
.portada { position: relative; margin-top: 16px; }
.portada:not(:has(.portada__slide)) { display: none; }
.portada__pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.portada__pista::-webkit-scrollbar { display: none; }
.portada__slide { flex: 0 0 100%; scroll-snap-align: start; }
.banner__imagen { width: 100%; height: clamp(140px, 26vw, 320px); object-fit: cover; }
.portada__puntos { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.portada__puntos button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; }
.portada__puntos button[aria-current] { background: var(--white); width: 22px; border-radius: 999px; }
.aviso { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #fcece8; border: 1px solid var(--coral); }

/* Categorías fijas + buscador */
.cats { position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cats__fila { display: flex; align-items: center; gap: 12px; height: var(--cats-alto); }
.cats__lista { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.cats__lista::-webkit-scrollbar { display: none; }
.cat { flex: none; white-space: nowrap; padding: .45em 1em; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.cat:hover { background: var(--sand); }
.cat.is-active { background: var(--ink); color: var(--white); }
.buscar { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; color: var(--muted); width: 200px; flex: none; }
.buscar input { border: 0; outline: 0; background: none; font: inherit; padding: .55em 0; width: 100%; color: var(--ink); }
.buscar:focus-within { border-color: var(--green); }

/* Página: menú + pedido */
.pagina { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 8px; }
.menu { min-width: 0; padding-bottom: 40px; }
.cerrado { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 700; }
/* Opiniones de Google: tarjetas que se deslizan de costado */
.resenas { margin-top: 28px; }
.resenas__cabeza { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.resenas__cabeza h2 { font-size: 1.35rem; font-weight: 800; }
.resenas__total { color: var(--green-dark); font-weight: 600; font-size: .92rem; }
.resenas__total strong { color: #b7860b; }
.resenas__lista { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 10px; }
.resenas__lista::-webkit-scrollbar { display: none; }
.resena { flex: 0 0 min(300px, 82%); scroll-snap-align: start; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.resena__estrellas { color: #f2b90f; letter-spacing: 2px; }
.resena blockquote { margin: 0; font-size: .95rem; line-height: 1.5; }
.resena figcaption { margin-top: auto; color: var(--muted); font-size: .85rem; font-weight: 600; }

/* Filtros rápidos arriba del menú: en el celular se deslizan de costado */
.filtros { display: flex; gap: 8px; margin: 20px 0 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-margin-top: calc(var(--cats-alto) + 12px); }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .5em 1.05em; font: 700 .9rem var(--font-body); color: var(--ink); cursor: pointer; }
.filtro:hover { border-color: var(--green); }
.filtro.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filtro[data-filtro="freezer"].is-active { background: #2f6fa3; border-color: #2f6fa3; }
.filtros__nota { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
/* Puertas del banner */
.hero__puertas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn--freezer { background: var(--white); color: #1f4f78; box-shadow: 0 5px 0 #c9dbe9; }
.btn--freezer:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c9dbe9; }

.menu-cat { padding-top: 26px; }
.menu-cat__titulo { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.menu-grupo + .menu-grupo { margin-top: 18px; }
.menu-grupo__titulo { font: 700 .8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.menu-grupo__nota { color: var(--muted); font-size: .9rem; margin: -4px 0 10px; }

.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item__abrir {
  display: flex; gap: 14px; justify-content: space-between; width: 100%; height: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font: inherit; color: inherit;
}
button.item__abrir { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
button.item__abrir:hover { border-color: rgba(20, 155, 121, .45); box-shadow: var(--shadow); }
.item--agotado { opacity: .6; }
.item__texto { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.item__nombre { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.item__desc { color: var(--muted); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__pie { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.item__precio { font-weight: 800; font-size: 1rem; }
.item__antes { color: var(--muted); font-size: .85rem; }
.item__opciones { font-size: .78rem; color: var(--muted); }
.item__media { position: relative; flex: none; width: 96px; height: 96px; border-radius: 12px; background: var(--bg, var(--pastel-verde)); display: grid; place-items: center; }
.item__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.item__emoji { font-size: 2.6rem; }
.item__mas { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--green-dark); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; line-height: 1; }
button.item__abrir:hover .item__mas { background: var(--green); color: var(--white); }
.tag { font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: var(--sand); }
.tag--marca { background: var(--yellow-soft); }
.tag--oferta { background: var(--coral); color: var(--white); }
.tag--oscuro { background: var(--ink); color: var(--white); }
.vacio { text-align: center; color: var(--muted); padding: 40px 0; }

/* Información */
.info { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.info h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.info__grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.info__bloque { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .92rem; }
.info__bloque h3 { font: 700 .95rem var(--font-body); margin-bottom: 8px; }
.info__bloque ul { margin: 0; padding-left: 1.1em; }
.info__bloque p:last-child { margin: 0; }
.faq { margin-top: 24px; }
.faq h3 { font: 700 1rem var(--font-body); margin-bottom: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 0 16px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Pedido en la compu */
.lateral { position: sticky; top: calc(var(--cats-alto) + 16px); padding-top: 26px; }
.lateral__caja { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.lateral__caja h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.lateral .lineas { max-height: 46vh; overflow-y: auto; }
.lateral__vacio { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.lateral__pie { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.fila-total { display: flex; justify-content: space-between; margin-bottom: 8px; }

.lineas { list-style: none; margin: 0; padding: 0; }
.linea { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.linea:last-child { border-bottom: 0; }
.linea__emoji { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; background: var(--bg, var(--pastel-verde)); }
.linea__texto { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; line-height: 1.3; }
.linea__nombre { font-weight: 600; }
.linea__precio { font-weight: 700; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--white); }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--sand); cursor: pointer; font-weight: 700; color: var(--ink); font-size: .9rem; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: .9rem; }
.qty--grande button { width: 40px; height: 40px; font-size: 1.1rem; }
.qty--grande span { min-width: 30px; font-size: 1.05rem; }
.envio-gratis { font-size: .82rem; color: var(--green-dark); background: rgba(20, 155, 121, .1); border-radius: 10px; padding: 6px 10px; margin: 0 0 10px; }
.envio-gratis:empty { display: none; }

/* Barra del pedido (celular) */
.barra-pedido {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 12px;
  background: var(--green); color: var(--white); border: 0; border-radius: 999px; padding: 14px 20px; font: 700 1rem var(--font-body);
  box-shadow: 0 10px 30px rgba(28, 42, 37, .3); cursor: pointer;
}
.barra-pedido strong { margin-left: auto; }
.barra-pedido__cantidad { background: var(--white); color: var(--green-dark); min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: .85rem; padding: 0 6px; }
.barra-pedido.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.04); } }

/* Ventana del plato */
/* Ventana del plato: centrada en la compu y como hoja desde abajo en el celular (ver media query).
   El fondo oscuro es #overlay. Medidas en vh (no %) para que no dependan del contenedor. */
.plato { display: none; position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--white); border-radius: 20px; width: 480px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); }
.plato[open] { display: block; }
.overlay--plato { z-index: 55; }
.plato__form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); margin: 0; }
.plato__cerrar { position: absolute; top: 12px; right: 12px; z-index: 1; }
.plato__media { height: 200px; background: var(--bg, var(--pastel-verde)); display: grid; place-items: center; font-size: 5rem; flex: none; }
.plato__media img { width: 100%; height: 100%; object-fit: cover; }
.plato__cuerpo { padding: 18px 20px 8px; overflow-y: auto; }
.plato__cuerpo h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.plato__titulo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plato__fav { flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em; font: 700 .85rem var(--font-body); color: var(--coral); cursor: pointer; }
.plato__fav.is-active { background: #fcece8; border-color: var(--coral); }
/* Plato guardado en "Mi cuenta": corazón chico al lado del nombre */
.item--fav .item__nombre::after { content: " ♥"; color: var(--coral); }

/* Mi cuenta (botón del banner y página /cuenta) */
.hero__cuenta { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; gap: .4em; align-items: center; background: rgba(255,255,255,.16); color: var(--white); text-decoration: none; font-weight: 700; font-size: .92rem; padding: .5em 1em; border-radius: 999px; backdrop-filter: blur(4px); }
.hero__cuenta:hover { background: rgba(255,255,255,.26); }
.cuenta__volver { margin-left: auto; padding: .6em 1.1em; font-size: .9rem; }
.cuenta { padding: 32px 0 80px; }
.cuenta__caja { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); margin-bottom: 18px; }
.cuenta__caja h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.cuenta__caja h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
#entrar { max-width: 460px; margin: 0 auto; }
.cuenta__bajada { color: var(--muted); margin: 0 0 20px; }
.btn--google { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn--google:hover { background: var(--sand); }
.cuenta__o { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.cuenta__o::before, .cuenta__o::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.cuenta__otro { margin: 14px auto 0; display: block; }
.cuenta .nota { margin: 0 0 14px; }
.cuenta .cuenta__privacidad { margin: 16px 0 0; text-align: center; }
.cuenta__saludo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cuenta__saludo h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; }
.cuenta__saludo .nota { margin: 2px 0 0; }
.cuenta__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.cuenta__tabs a { flex: none; padding: .55em 1.1em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.cuenta__tabs a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cuenta__pedidos { list-style: none; margin: 0; padding: 0; }
.cuenta__pedido { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cuenta__pedido:last-child { border-bottom: 0; }
.cuenta__pedido-cabeza { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.cuenta__pedido-cabeza a { color: var(--green-dark); }
.cuenta .estado { font-size: .78rem; font-weight: 700; padding: .25em .8em; border-radius: 999px; background: var(--sand); color: var(--green-dark); }
.cuenta__pedido-items { margin: 8px 0; color: var(--muted); font-size: .92rem; }
.cuenta__pedido-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cuenta__pedido-pie .btn, .cuenta__favorito-acciones .btn { padding: .6em 1.1em; font-size: .9rem; }
.cuenta__favorito .linea__emoji { color: var(--coral); background: #fcece8; }
.cuenta__favorito .linea__texto small { color: var(--muted); }
.cuenta__favorito-acciones { display: flex; gap: 8px; align-items: center; }
.cuenta__gustos { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.cuenta__gusto { display: inline-flex; gap: .45em; align-items: center; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 500; font-size: .92rem; cursor: pointer; }
.cuenta__gusto:has(input:checked) { border-color: var(--green); background: #e8f5f2; font-weight: 700; }
.cuenta__gusto input { accent-color: var(--green); }
.cuenta__novedades { margin-bottom: 16px; }
.cuenta__eliminar { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.cuenta__eliminar summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.cuenta__eliminar .nota { margin: 10px 0; }
.plato__desc { color: var(--muted); }
.plato__precio { font-weight: 800; font-size: 1.1rem; }
.plato__opciones { border: 0; padding: 0; margin: 8px 0 0; }
.plato__opciones legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opcion { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--green); background: rgba(20, 155, 121, .08); }
.opcion input { accent-color: var(--green); }
.plato__pie { display: flex; gap: 12px; align-items: center; padding: 14px 20px 20px; border-top: 1px solid var(--line); flex: none; }
.plato__agregar { flex: 1; }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); }

/* Pie */
.pie { border-top: 1px solid var(--line); padding: 20px 0 90px; font-size: .85rem; color: var(--muted); }
.pie__fila { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pie a { color: inherit; }

/* Carrito y datos (panel lateral) */
.overlay { position: fixed; inset: 0; background: rgba(10, 30, 24, .5); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 100%); z-index: 60; background: var(--cream); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.3rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); background: var(--white); }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; }
.totals div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.totals__total { font-weight: 800; font-size: 1.2rem; padding-top: 8px; border-top: 1px solid var(--line); margin: 8px 0 14px !important; }

.checkout label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.checkout input:not([type=radio]):not([type=checkbox]), .checkout select, .checkout textarea {
  display: block; width: 100%; margin-top: 6px; padding: .7em .85em; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font: 400 1rem var(--font-body); color: var(--ink);
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 155, 121, .15); }
.checkout .invalid { border-color: var(--coral) !important; }
.checkout .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.checkout .nota, .nota { font-size: .85rem; color: var(--muted); margin: -6px 0 14px; }
.seg, .metodos { border: 0; padding: 0; margin: 0 0 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend, .metodos legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.seg label, .metodo { margin: 0 !important; font-weight: 500 !important; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .7em; cursor: pointer; display: flex !important; gap: 10px; align-items: center; }
.metodo + .metodo { margin-top: 8px !important; }
.metodo span { display: flex; flex-direction: column; line-height: 1.3; }
.seg label:has(input:checked), .metodo:has(input:checked) { border-color: var(--green); background: rgba(20, 155, 121, .08); }
.seg input, .metodo input, .casilla input { accent-color: var(--green); }
.casilla { display: flex !important; gap: 10px; align-items: center; font-weight: 500 !important; }
.link-btn { background: none; border: 0; color: var(--green-dark); font: 700 .9rem var(--font-body); cursor: pointer; padding: 0; margin-bottom: 16px; }
.form-error { color: #b4232a; font-weight: 700; font-size: .9rem; }

.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -120px); z-index: 70; background: var(--ink); color: var(--white); padding: .7em 1.3em; border-radius: 999px; font-weight: 500; transition: transform .25s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* Página de gracias y legales */
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand__name { font-family: var(--font-script); font-size: 1.4rem; color: var(--green); }
.section { padding: 48px 0; }
.container--narrow { width: min(760px, 100% - 32px); }
.gracias { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px; }
.tarjeta-gracias { background: var(--white); border-radius: 22px; padding: clamp(22px, 5vw, 40px); width: min(560px, 100%); box-shadow: var(--shadow); border: 1px solid var(--line); }
.tarjeta-gracias h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.tarjeta-gracias .estado { display: inline-block; font-size: .8rem; font-weight: 700; padding: .3em .9em; border-radius: 999px; background: var(--sand); color: var(--green-dark); margin-bottom: 12px; }
.tarjeta-gracias .estado--ok { background: var(--green); color: var(--white); }
.tarjeta-gracias .estado--alerta { background: var(--coral); color: var(--white); }
.tarjeta-gracias .resumen { width: 100%; border-collapse: collapse; margin: 16px 0; }
.tarjeta-gracias .resumen td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tarjeta-gracias .resumen td:last-child { text-align: right; white-space: nowrap; }
.tarjeta-gracias .resumen tr:last-child td { border: 0; font-weight: 800; font-size: 1.1rem; }
.tarjeta-gracias .acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tarjeta-gracias .alias { padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; margin-bottom: .5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }

/* Responsive */
@media (max-width: 1023px) {
  .pagina { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .barra-pedido:not([hidden]) { display: flex; }
  /* Con la barra del pedido a la vista, el WhatsApp queda en Información y en el pie (no tapa los "+") */
  body:has(.barra-pedido:not([hidden])) .wa-float { display: none; }
  /* Banner: el logo arriba y el texto debajo */
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 90px; }
  .hero__visual { max-width: 300px; order: -1; }
}
@media (max-width: 700px) {
  :root { --cats-alto: 104px; }
  .cats__fila { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; }
  .buscar { width: 100%; }
  .items { grid-template-columns: 1fr; gap: 10px; }
  .hero__inner { padding: 28px 0 80px; gap: 22px; }
  .hero__visual { max-width: 230px; }
  .hero__chip { font-size: .76rem; }
  .hero__chip--b { top: 52%; right: -16%; }
  .chip { white-space: normal; }
  .item__media { width: 88px; height: 88px; }
  .checkout .dos { grid-template-columns: 1fr; }
  .plato { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-width: none; border-radius: 20px 20px 0 0; max-height: 88vh; }
  .plato__form { max-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
