/* Rali Café — propuesta de rediseño (Denso Creative Studio, oct 2026)
   Identidad: Poppins, el verde del banner y el rojo de los botones de su web.
   Más contraste tipográfico (800 frente a 300), crema de fondo, nada de negro puro. */

:root {
  --verde: #3f6443;          /* el del banner: los recortes se funden en él */
  --verde-2: #4e6548;        /* el de sus fichas de producto */
  --verde-osc: #24372a;
  --tinta: #151b16;
  --crema: #f6f1e6;
  --papel: #fbf8f1;
  --rojo: #bd0c07;
  --rojo-osc: #960a05;
  --gris: #6d7568;
  --linea: rgba(36, 55, 42, .14);
  --radio: 14px;
  --barra-h: 64px;
  --sombra: 0 18px 40px -18px rgba(24, 40, 26, .45);
  --z-barra: 20; --z-flot: 30; --z-dialogo: 40;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--papel);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barra-h) + 62px); }
body { margin: 0; font-weight: 400; line-height: 1.55; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }

.saltar { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--rojo); color: #fff; padding: 10px 16px; border-radius: 8px; }
.saltar:focus { left: 12px; }

/* ---------- barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: var(--z-barra);
  height: var(--barra-h); display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--verde) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.barra-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.barra-logo img { width: 42px; height: auto; }
.barra-nombre { font-weight: 500; letter-spacing: .32em; font-size: 15px; line-height: 1; }
.barra-nombre small { display: block; font-size: 9px; letter-spacing: .5em; margin-top: 4px; opacity: .8; }
.estado { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; opacity: .95; }
.estado i { width: 8px; height: 8px; border-radius: 50%; background: #9fd3a4; box-shadow: 0 0 0 3px rgba(159, 211, 164, .25); }
.estado.cerrado i { background: #f08a7e; box-shadow: 0 0 0 3px rgba(240, 138, 126, .25); }
.barra-nav { display: flex; gap: 26px; margin-left: auto; }
.barra-nav a { text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .85; transition: opacity .2s; }
.barra-nav a:hover { opacity: 1; }
.barra-acciones { display: flex; align-items: center; gap: 10px; }
.idioma { display: flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 2px; }
.idioma button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .1em; cursor: pointer; opacity: .7; }
.idioma button[aria-pressed="true"] { background: #fff; color: var(--verde-osc); opacity: 1; }
.boton-cesta { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: none; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s; }
.boton-cesta:hover { background: rgba(255, 255, 255, .12); }
.boton-cesta:active { transform: scale(.94); }
.contador { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 760px) {
  .barra-nav, .barra-nombre { display: none; }
  .estado { font-size: 11px; margin-right: auto; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .2s, box-shadow .2s, color .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-rojo { background: var(--rojo); color: #fff; box-shadow: 0 10px 24px -12px rgba(189, 12, 7, .8); }
.btn-rojo:hover { background: var(--rojo-osc); }
.btn-claro { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-claro:hover { background: #fff; color: var(--verde-osc); }
.btn-ancho { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.enlace { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; color: var(--rojo); }
.enlace:hover { color: var(--rojo-osc); }

/* ---------- portada ---------- */
.portada { position: relative; background: var(--verde); color: #fff; overflow: hidden; padding: clamp(36px, 7vw, 80px) clamp(18px, 5vw, 56px) clamp(40px, 6vw, 72px); isolation: isolate; }
.portada::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.portada-banner { position: absolute; inset: 0; z-index: -2; }
/* PC: el banner entero, sin recortar, centrado en su propio verde */
.pb-entero { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100%, 1440px); height: auto; }
.pb-granos, .pb-bici { display: none; }
.portada-texto { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
/* el texto del banner (TASTE & LIFESTYLE) queda tapado por el titular vivo */
/* el texto del banner se borró de la imagen (fondo-limpio.jpg): el titular vivo lo sustituye */
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .32em; opacity: .85; }
.eyebrow-oscuro { color: var(--verde-2); opacity: 1; }
.portada h1 { font-size: clamp(3.4rem, 11vw, 7.5rem); font-weight: 800; line-height: .9; letter-spacing: .02em; }
.portada h1 span { display: block; font-weight: 300; font-size: .34em; letter-spacing: .62em; margin-top: 14px; padding-left: .62em; }
.lema { margin: 22px 0 32px; font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 300; letter-spacing: .08em; }
.lema em { font-style: italic; opacity: .85; }
.portada-botones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 1000px) { .portada { min-height: min(62vh, 560px); display: grid; align-items: center; } }
@media (max-width: 760px) {
  /* móvil: el banner no cabe entero sin quedar diminuto; se reparten sus piezas */
  .pb-entero { display: none; }
  .pb-granos { display: block; position: absolute; left: -38px; top: -20px; width: 120px; opacity: .95; }
  .pb-bici { display: block; position: absolute; right: -70px; bottom: -14px; width: 300px; opacity: .9; }
  .portada { padding-bottom: 170px; }
  .portada-texto::before { display: none; }
}

/* ---------- lo que era la ventana emergente ---------- */
.datos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; max-width: 1180px; margin: -34px auto 0; position: relative; z-index: 2;
  background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.dato { padding: 26px clamp(20px, 3vw, 34px); border-left: 1px solid var(--linea); }
.dato:first-child { border-left: 0; }
.dato-tit { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--verde-2); margin-bottom: 14px; }
.semana { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 14px; font-variant-numeric: tabular-nums; }
.semana li { display: contents; }
.semana li span:first-child { color: var(--gris); }
.semana li.hoy span { font-weight: 700; color: var(--tinta); }
.semana li.hoy span:first-child::after { content: " •"; color: var(--rojo); }
.servicios { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.servicios li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.servicios svg { width: 24px; height: 24px; color: var(--verde-2); flex: none; }
.dato-wa { display: block; font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: .02em; color: var(--verde-osc); }
.dato-wa:hover { color: var(--rojo); }
.dato-dir { margin: 6px 0 12px; font-size: 14px; color: var(--gris); }
@media (max-width: 860px) {
  .datos { grid-template-columns: 1fr; margin: -28px 14px 0; }
  .dato { border-left: 0; border-top: 1px solid var(--linea); }
  .dato:first-child { border-top: 0; }
}

/* ---------- adorno entre secciones ---------- */
.adorno { display: flex; align-items: center; gap: 18px; max-width: 520px; margin: clamp(48px, 8vw, 88px) auto; padding: 0 24px; color: var(--verde-2); }
.adorno span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--linea) 30%, var(--linea) 70%, transparent); }
.adorno svg { width: 40px; height: 24px; }

/* ---------- titulares ---------- */
.titular { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; line-height: .92; letter-spacing: -.02em; text-transform: uppercase; color: var(--verde-osc); }
.titular-s { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: none; letter-spacing: 0; }
.titular-claro { color: #fff; }

/* ---------- la carta ---------- */
.carta { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.carta-cab { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.carta-nota { margin: 0; max-width: 32ch; color: var(--gris); font-size: 14px; font-weight: 300; }

.destacados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.destacado { position: relative; display: block; width: 100%; text-align: left; border: 0; padding: 0; cursor: pointer; border-radius: var(--radio); overflow: hidden; background: var(--verde-osc); color: #fff; aspect-ratio: 4 / 3; }
.destacado img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; opacity: .85; }
.destacado:hover img { transform: scale(1.04); opacity: 1; }
.destacado-txt { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(16, 26, 18, .88)); }
.destacado-tag { position: absolute; top: 12px; left: 12px; background: var(--rojo); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .18em; padding: 5px 9px; border-radius: 4px; }
.destacado b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.destacado small { font-size: 14px; opacity: .85; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .destacados { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(clamp(16px, 4vw, 32px) * -1); padding-inline: clamp(16px, 4vw, 32px); scrollbar-width: none; }
  .destacados::-webkit-scrollbar { display: none; }
  .destacado { flex: 0 0 72%; scroll-snap-align: start; }
}

.cats { position: sticky; top: var(--barra-h); z-index: 10; background: color-mix(in srgb, var(--papel) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-inline: calc(clamp(16px, 4vw, 32px) * -1); padding: 10px clamp(16px, 4vw, 32px); border-bottom: 1px solid var(--linea); }
.cats-pista { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.cats-pista::-webkit-scrollbar { display: none; }
.cats-grupo { flex: none; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--verde-2); padding: 0 6px 0 14px; }
.cats-grupo:first-child { padding-left: 0; }
.cat-btn { flex: none; border: 1px solid var(--linea); background: none; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cat-btn:hover { border-color: var(--verde-2); }
.cat-btn[aria-current="true"] { background: var(--verde-osc); color: #fff; border-color: var(--verde-osc); }

.grupo-tit { margin: clamp(46px, 7vw, 72px) 0 4px; display: flex; align-items: baseline; gap: 16px; }
.grupo-tit h3 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--verde-osc); }
.grupo-tit span { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gris); }
.categoria { padding-top: 26px; }
.cat-tit { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--rojo); margin-bottom: 8px; }
.cat-tit::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.platos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 4vw, 48px); }
@media (max-width: 760px) { .platos { grid-template-columns: 1fr; } }
.plato { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linea); padding: 16px 0; cursor: pointer; }
.plato:hover .plato-n { color: var(--rojo); }
.plato-foto { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--crema); }
.plato-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.plato:hover .plato-foto img { transform: scale(1.06); }
.plato-foto.sin { display: grid; place-items: center; color: var(--verde-2); }
.plato-foto.sin svg { width: 34px; height: 20px; opacity: .55; }
.plato-n { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: color .2s; }
.plato-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 300; color: var(--gris); margin-top: 3px; line-height: 1.45; }
.plato-tag { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--verde-2); }
.plato-precio { display: flex; flex-direction: column; align-items: end; gap: 8px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plato-precio small { font-size: 10px; font-weight: 500; color: var(--gris); letter-spacing: .08em; }
.plato-mas { width: 32px; height: 32px; border-radius: 50%; background: var(--verde-osc); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 400; line-height: 1; transition: background .2s, transform .15s; }
.plato:hover .plato-mas { background: var(--rojo); }
.plato:active .plato-mas { transform: scale(.9); }

/* ---------- cocina ---------- */
.cocina { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: center; max-width: 1060px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.cocina-video { border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 16; max-height: 640px; background: var(--verde-osc); box-shadow: var(--sombra); }
.cocina-video video { width: 100%; height: 100%; object-fit: cover; }
.cocina-texto p:not(.eyebrow) { font-size: 17px; font-weight: 300; max-width: 46ch; margin: 22px 0 26px; }
@media (max-width: 760px) { .cocina { grid-template-columns: 1fr; } .cocina-video { max-width: 340px; width: 78%; margin: 0 auto; } }

/* ---------- instagram ---------- */
.insta { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.insta-cab { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.insta-tira { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.insta-tira a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--crema); }
.insta-tira img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.insta-tira a:hover img { transform: scale(1.05); }
@media (max-width: 760px) {
  .insta-tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(clamp(16px, 4vw, 32px) * -1); padding-inline: clamp(16px, 4vw, 32px); }
  .insta-tira a { flex: 0 0 58%; scroll-snap-align: start; }
}

/* ---------- visita ---------- */
.visita { margin-top: clamp(60px, 9vw, 110px); background: var(--verde); color: #fff; padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.visita p { font-size: 17px; font-weight: 300; max-width: 44ch; margin: 20px 0 30px; }
.visita .portada-botones { justify-content: flex-start; }
.visita-logo { width: clamp(140px, 18vw, 230px); height: auto; opacity: .95; }
@media (max-width: 760px) { .visita { grid-template-columns: 1fr; } .visita-logo { width: 120px; order: -1; } }

.pie { background: var(--verde-osc); color: rgba(255, 255, 255, .75); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px clamp(20px, 6vw, 80px) calc(22px + env(safe-area-inset-bottom)); font-size: 12px; letter-spacing: .06em; }
.pie p { margin: 0; }
.pie-credito { opacity: .7; }

/* ---------- flotantes ---------- */
.wa-flotante { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: var(--z-flot); width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(10, 60, 30, .7); transition: transform .2s; }
.wa-flotante:hover { transform: translateY(-2px) scale(1.04); }
.wa-flotante:active { transform: scale(.95); }
.barra-pedido { position: fixed; left: 14px; right: 88px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: var(--z-flot); height: 58px; border: 0; border-radius: 999px; background: var(--verde-osc); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px; font-size: 13px; font-weight: 500; box-shadow: var(--sombra); cursor: pointer; animation: sube .35s cubic-bezier(.2, .8, .2, 1); }
.barra-pedido b { font-variant-numeric: tabular-nums; }
.barra-pedido[hidden] { display: none; }
@media (min-width: 900px) { .barra-pedido { left: auto; right: 90px; width: 380px; } }
@keyframes sube { from { transform: translateY(20px); opacity: 0; } }

/* ---------- diálogos: ficha y pedido ---------- */
dialog { border: 0; padding: 0; color: var(--tinta); background: var(--papel); max-height: 92dvh; }
dialog::backdrop { background: rgba(16, 26, 18, .55); backdrop-filter: blur(3px); }
.ficha { width: min(560px, 100%); border-radius: 20px; overflow: hidden; }
.ficha-caja { display: flex; flex-direction: column; max-height: 92dvh; }
.ficha-cuerpo { overflow-y: auto; padding: 22px 24px 8px; }
.cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(251, 248, 241, .92); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.ficha-foto { aspect-ratio: 16 / 10; background: var(--verde-osc); flex: none; }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-foto.sin { aspect-ratio: auto; height: 60px; }
.ficha h3 { font-size: 22px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--verde-osc); padding-right: 30px; }
.ficha-desc { font-size: 14px; font-weight: 300; color: var(--gris); margin: 6px 0 16px; }
.grupo-op { border: 0; padding: 0; margin: 0 0 18px; }
.grupo-op legend { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 10px; border-top: 1px solid var(--linea); font-size: 14px; font-weight: 700; }
.regla { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--crema); color: var(--verde-2); white-space: nowrap; }
.regla.obligatorio { background: var(--rojo); color: #fff; }
.regla.ok { background: var(--verde-2); color: #fff; }
.opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .opciones { grid-template-columns: 1fr; } }
.opcion { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--linea); border-radius: 12px; cursor: pointer; font-size: 13.5px; transition: border-color .2s, background .2s; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion:hover { border-color: var(--verde-2); }
.opcion:has(input:checked) { border-color: var(--verde-osc); background: color-mix(in srgb, var(--verde-2) 9%, transparent); font-weight: 600; }
.opcion:has(input:focus-visible) { outline: 2px solid var(--rojo); outline-offset: 2px; }
.opcion:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.opcion small { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--verde-2); white-space: nowrap; }
.ficha-nota { display: grid; gap: 6px; font-size: 13px; font-weight: 600; margin: 4px 0 12px; }
textarea, .cesta-form input { font: inherit; font-size: 15px; font-weight: 400; border: 1.5px solid var(--linea); border-radius: 12px; padding: 11px 13px; background: #fff; resize: vertical; width: 100%; }
textarea:focus, .cesta-form input:focus { outline: none; border-color: var(--verde-2); }
.ficha-pie { display: flex; gap: 12px; padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--papel); }
.cantidad { display: flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 999px; flex: none; }
.cantidad button { width: 44px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.cantidad output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ficha-error { margin: 0; padding: 0 24px; color: var(--rojo); font-size: 13px; font-weight: 600; min-height: 0; }
.ficha-error:not(:empty) { padding-bottom: 12px; }
@media (max-width: 640px) {
  /* hoja que sube desde abajo */
  .ficha, .cesta { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  dialog[open] { animation: hoja .32s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes hoja { from { transform: translateY(40px); opacity: 0; } }

.cesta { width: min(480px, 100%); border-radius: 20px; }
.cesta-caja { display: flex; flex-direction: column; max-height: 92dvh; }
.cesta-cab { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--linea); }
.cesta-cab h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--verde-osc); }
.cesta-cab .cerrar { position: static; box-shadow: none; background: var(--crema); }
.cesta-lista { overflow-y: auto; padding: 4px 24px; flex: 1 1 auto; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.linea b { font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.linea p { margin: 2px 0 0; font-size: 12.5px; color: var(--gris); }
.linea-precio { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.linea-ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.linea-ctrl .cantidad button { width: 34px; height: 34px; font-size: 17px; }
.linea-quitar { border: 0; background: none; font-size: 12px; color: var(--rojo); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; margin-left: auto; }
.cesta-vacia { text-align: center; padding: 40px 10px; color: var(--gris); }
.cesta-vacia svg { width: 52px; height: 32px; color: var(--verde-2); margin: 0 auto 10px; }
.cesta-form { padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; border-top: 1px solid var(--linea); }
.cesta-form > label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.tipo { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tipo legend { font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-bottom: 6px; padding: 0; }
.tipo label { position: relative; text-align: center; padding: 10px 6px; border: 1.5px solid var(--linea); border-radius: 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.tipo input { position: absolute; opacity: 0; }
.tipo label:has(input:checked) { border-color: var(--verde-osc); background: var(--verde-osc); color: #fff; }
.tipo label:has(input:focus-visible) { outline: 2px solid var(--rojo); outline-offset: 2px; }
.cesta-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; padding-top: 4px; }
.cesta-total b { font-variant-numeric: tabular-nums; }
.cesta-aviso { margin: 0; font-size: 12px; color: var(--gris); font-weight: 300; }
.oculto { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.aviso { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: var(--z-dialogo); background: var(--tinta); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.aviso.on { opacity: 1; transform: translate(-50%, 0); }
.contador[hidden] { display: none; }
.e-corto { display: none; }
@media (max-width: 760px) {
  .e-largo { display: none; } .e-corto { display: inline; }
  .barra { gap: 10px; }
  .barra-logo img { width: 38px; }
  .idioma button { padding: 5px 8px; }
  .boton-cesta { width: 40px; height: 40px; }
}
.ficha-foto { overflow: hidden; }
@media (max-width: 640px) { .ficha-foto { aspect-ratio: auto; height: 30dvh; } .ficha-foto.sin { height: 56px; } }
@media (max-width: 760px) {
  .pb-granos { width: 86px; left: -30px; top: -6px; }
  .pb-bici { width: 220px; right: -46px; bottom: -6px; }
  .portada { padding-bottom: 168px; }
  .portada-botones .btn { min-width: 230px; }
}
.pb-granos, .pb-bici, .pb-entero { height: auto; }

/* horario: centrado en su recuadro, título alineado con la lista; el día cerrado en ligera */
.dato-horario { display: grid; justify-content: center; align-content: start; }
.semana { gap: 6px 26px; }
.semana li.hoy span { font-weight: 500; }
.semana li.libre span { font-weight: 300; }
.semana li.libre span:last-child { color: var(--gris); font-style: italic; }
@media (max-width: 860px) { .dato-horario { justify-content: start; } }

/* instagram: su propio aire y la misma cabecera que el resto (etiqueta, titular, enlace) */
.insta { margin-top: clamp(72px, 11vw, 120px); }
.insta-cab { align-items: flex-end; margin-bottom: 26px; }
.insta-cab .eyebrow { margin-bottom: 12px; }
.insta-cab .enlace { margin-bottom: 6px; }
@media (max-width: 760px) {
  .insta-cab { flex-direction: column; align-items: flex-start; gap: 18px; }
  .insta-cab .enlace { margin-bottom: 0; }
}
@media (max-width: 760px) { .pie { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* portada: el logo de la marca en vez del título escrito */
.portada-logo { margin: 6px 0 0; }
.portada-logo img { width: clamp(170px, 22vw, 250px); height: auto; margin: 0 auto; }
.portada .lema { margin-top: 18px; letter-spacing: .32em; text-transform: uppercase; font-size: 12px; font-weight: 500; }
