/* ==========================================================================
   LA FRESA · HOME
   Rojo manda, crema respira, verde acompaña. Sin decoración: solo interfaz.
   ========================================================================== */

/* ---------- Tipografías de marca ---------- */
@font-face { font-family: "Boulder"; src: url("../fonts/boulder-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sweet Apricot"; src: url("../fonts/sweet-apricot.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* La "ó"/"Ó" de Sweet Apricot mapea al glifo de la "o" sin tilde (se pierde el
   acento). Respaldo: la propia "acute" del archivo, recompuesta sobre la "o"
   y exportada como un glifo nuevo en un subset de 820 B. Mismo defecto probable
   en á/é/í/ú/ñ, sin parchear porque el sitio no los usa todavía en esta fuente:
   parchear ese glifo puntual antes de escribir una palabra nueva con Sweet Apricot. */
@font-face { font-family: "Sweet Apricot"; src: url("../fonts/acentos-sweet-apricot.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+00D3, U+00F3; }
@font-face { font-family: "Aristotelica Pro"; src: url("../fonts/aristotelica-demibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Aristotelica Pro"; src: url("../fonts/aristotelica-extralight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
/* Numerales: la versión Trial de Aristotelica no incluye dígitos ni "@" (trae un glifo marcador).
   Respaldo geométrico (Poppins 600, subset de 11 glifos) ajustado a la altura de mayúsculas de Aristotelica.
   EDITAR: eliminar esta regla al licenciar Aristotelica Pro completa. */
@font-face { font-family: "Aristotelica Pro"; src: url("../fonts/numerales-poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0030-0039, U+0040; size-adjust: 91%; }
/* Las fracciones (½ ¼ ¾) de la versión Trial también vienen vacías: mismo respaldo. */
@font-face { font-family: "Aristotelica Pro"; src: url("../fonts/fracciones-poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+00BC-00BE; size-adjust: 91%; }

/* ---------- Tokens ---------- */
:root {
  --red: #D12519;
  --red-dark: #B41F14;
  --green: #19532B;
  --green-dark: #123E20;
  --lime: #9ABE06;
  --lime-soft: #E3EEC5;
  --lime-soft-hover: #D6E7AC;

  --cream: #F3E8CA;          /* crema de marca */
  --cream-100: #FBF7EE;      /* fondo de secciones */
  --cream-200: #F6EEDC;      /* cierre de marca */
  --cream-btn: #F7EDD8;      /* botón crema */
  --card: #F8F5EE;           /* tarjetas */
  --pill: #F3EFE5;           /* filtros inactivos */
  --hero-bg: #FCF0DE;        /* crema de la foto del hero */

  --ink: #23221D;
  --ink-soft: #6F6A5E;
  --line: #E8E2D3;
  --white: #FFFFFF;

  --font-display: "Boulder", "Arial Black", sans-serif;
  --font-script: "Sweet Apricot", "Segoe Script", cursive;
  --font-ui: "Aristotelica Pro", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(.16, .84, .3, 1);
  --dur: 200ms;
  --gutter: clamp(16px, 4.5vw, 64px);
  --container: 1440px;
  --header-h: 124px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 600; }

::selection { background: var(--cream); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
/* El lima solo se usa como foco sobre los campos rojos o verdes, donde sí contrasta. */
.qty-box :focus-visible, .qty-offer.is-on:focus-visible, .seg__btn.is-on:focus-visible { outline-color: var(--lime); }
.site-header :focus-visible, .footer :focus-visible, .season__card :focus-visible { outline-color: var(--white); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--green); color: var(--white); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; line-height: 1; white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--cream { background: var(--cream-btn); color: var(--red); }
.btn--cream:hover { background: #FCF7EC; }
.btn--green-soft { background: var(--lime-soft); color: var(--green); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--cream-100); }
.btn--wa { background: var(--red); color: var(--white); }
.btn--wa:hover { background: var(--red-dark); }
.btn--wa:disabled, .btn--red:disabled { background: var(--pill); color: var(--ink-soft); cursor: not-allowed; box-shadow: none; }
.btn--green-soft:hover { background: var(--lime-soft-hover); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--white);
  transition: background-color var(--dur) var(--ease-out);
}
.icon-btn:hover { background: rgba(255,255,255,.14); }
.icon-btn--dark { color: var(--ink); }
.icon-btn--dark:hover { background: var(--pill); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding: 12px 2px; color: var(--red); font-size: 15px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--red); color: var(--white); }
.site-header__inner {
  display: grid; align-items: center; gap: 12px 28px; min-height: 78px;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand search actions";
}
.menu-toggle { grid-area: menu; display: none; }
.brand { grid-area: brand; display: inline-flex; }
.brand img { width: auto; height: 50px; }

/* Segunda fila del bloque rojo: las nueve áreas de la tienda. */
.nav { border-top: 1px solid rgba(255,255,255,.22); }
.nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(14px, 1.9vw, 30px); }
.nav__link { display: inline-block; padding: 13px 2px; font-size: 16px; line-height: 1; border-bottom: 2px solid transparent; transition: border-color var(--dur) var(--ease-out); }
.nav__link:hover, .nav__link[aria-current="true"] { border-bottom-color: rgba(255,255,255,.85); }

.search { grid-area: search; position: relative; width: clamp(220px, 26vw, 420px); justify-self: end; }
.search__icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.search__input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border: 0; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; caret-color: var(--red);
  -webkit-appearance: none; appearance: none;
}
.search__input::placeholder { color: var(--ink-soft); opacity: 1; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__input:focus { outline: 3px solid var(--green); outline-offset: 2px; }

.header-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--green-dark); font-size: 12px; line-height: 1;
  transform-origin: center;
}
.cart-btn__count.is-bumping { animation: bump 320ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.hero__media img { width: 100%; height: auto; }
.hero__content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-bottom: 3.2vw;
}
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.35vw, 80px); text-transform: uppercase; line-height: .98; letter-spacing: .005em; text-wrap: balance; }
.hero__t1 { display: block; color: var(--red); font-size: 1em; }
.hero__t2 { display: block; color: var(--green); font-size: .575em; margin-top: .2em; }
.hero__lead { margin-top: clamp(14px, 1.8vw, 26px); font-size: clamp(15px, 1.35vw, 20px); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.hero .btn { margin-top: clamp(18px, 2.4vw, 36px); }

/* ---------- Beneficios ---------- */
.benefits { background: var(--white); }
.benefits--cream { background: var(--cream-100); }
.benefits__list { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 30px; }
.benefit { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 12px; color: var(--green); font-size: 17px; line-height: 1.25; }
.benefits--cream .benefit { color: var(--ink); }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit__icon { width: 40px; height: 40px; stroke-width: 1.5; }
.benefit__icon--green { color: var(--green); }
.benefit__icon--red { color: var(--red); }

/* ---------- Títulos de sección ---------- */
.section-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1; letter-spacing: .005em; font-size: clamp(30px, 3.6vw, 52px); text-wrap: balance; }
.section-title--red { color: var(--red); }
.section-title--green { color: var(--green); }

/* ---------- Productos ---------- */
.products { padding: clamp(44px, 5vw, 72px) 0 clamp(40px, 4.5vw, 64px); background: var(--white); }
.toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; margin-top: clamp(22px, 2.6vw, 36px); }
.filters { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 660px; }
.toolbar .link-arrow { grid-column: 3; justify-self: end; margin-top: -2px; }
.pill {
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--pill); color: var(--ink-soft); font-size: 15px; line-height: 1;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.pill:hover { background: var(--cream); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--green); color: var(--white); }

.results-info { margin-top: 18px; text-align: center; color: var(--ink-soft); font-size: 15px; }

/* Fila de tarjetas: seis por fila en desktop. Con flex, una categoría corta
   centra sus tarjetas en lugar de dejar el hueco a la derecha. */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }
.card { flex: 0 1 calc((100% - 5 * 18px) / 6); max-width: calc((100% - 5 * 18px) / 6); min-width: 0; }
.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 16px 16px 16px;
  border: 1px solid transparent; transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card:hover { border-color: var(--line); }
.card__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-sm); }
.card--offer { box-shadow: inset 0 0 0 1.5px var(--red); }
/* La línea de oferta se reserva vacía en las tarjetas sin oferta para que los
   botones "Agregar" queden alineados en toda la fila. */
.card__offer-line {
  display: flex; align-items: center; gap: 5px;
  margin-top: 4px; min-height: 16px; color: var(--red); font-size: 13px; line-height: 1.2;
}
.card__offer-line .icon { width: 13px; height: 13px; flex: none; }
.card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 320ms var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card--noimg .card__media { background: var(--cream-100); }
.card--noimg .card__media img { display: none; }
.card__name { margin-top: 14px; font-size: 17px; line-height: 1.2; color: var(--ink); }
.card__price + .card__offer-line { margin-bottom: 14px; }
.card__price { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; color: var(--red); font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.card__unit { color: var(--ink-soft); font-size: 13px; }
.card__add {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: var(--radius-sm); background: var(--lime-soft); color: var(--green); font-size: 15px;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.card__add .icon { width: 19px; height: 19px; }
.card__add:hover { background: var(--lime-soft-hover); }

.empty { margin-top: 36px; text-align: center; }
.empty__text { color: var(--ink-soft); font-size: 17px; }
.empty .btn { margin-top: 16px; }

/* Banda destacada de verduras hidropónicas: panel verde pleno, ajeno al
   filtro activo, con las mismas tarjetas de la grilla de productos. */
.hydro { margin-top: clamp(22px, 2.6vw, 36px); padding: clamp(24px, 3vw, 36px); background: var(--green); border-radius: var(--radius-lg); }
.hydro__title { font-family: var(--font-script); font-weight: 400; color: var(--white); font-size: clamp(22px, 2.3vw, 36px); line-height: 1.05; }
.hydro__grid { margin-top: clamp(16px, 2vw, 24px); }

/* ---------- Banner de estación ---------- */
.season { padding: 8px 0 clamp(40px, 4.5vw, 64px); background: var(--white); }
.season__card {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  min-height: clamp(220px, 21vw, 310px); background: var(--red); color: var(--white); border-radius: var(--radius-lg); overflow: hidden;
}
.season__text { position: relative; z-index: 1; padding: clamp(28px, 3.4vw, 52px); }
.season__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: .005em; font-size: clamp(28px, 3.3vw, 48px); text-wrap: balance; }
.season__lead { margin-top: 10px; font-size: clamp(17px, 1.5vw, 22px); }
.season__text .btn { margin-top: clamp(18px, 2vw, 28px); }
.season__media { position: absolute; inset: 0 0 0 auto; width: 46%; height: 100%; }
.season__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- Instagram ---------- */
.instagram { padding: clamp(44px, 5vw, 76px) 0 clamp(40px, 4.5vw, 64px); background: var(--white); }
.ig-handle { margin: 12px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; padding: 8px 12px; color: var(--red); font-size: 17px; }
.ig-handle__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--white); }
.ig-handle__icon .icon { width: 18px; height: 18px; }
.ig-handle:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }

.ig-feed { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: clamp(24px, 2.8vw, 40px); }
.ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms var(--ease-out); }
.ig-tile:hover img { transform: scale(1.04); }
.ig-tile__quote {
  position: absolute; left: 9%; top: 9%; max-width: 62%;
  font-family: var(--font-script); font-weight: 400; color: var(--white);
  font-size: clamp(22px, 2.3vw, 36px); line-height: 1.05;
}
.ig-actions { display: flex; justify-content: center; gap: 14px; margin-top: clamp(24px, 2.8vw, 36px); }

/* ---------- Cierre de marca ---------- */
.signoff { background: var(--cream-200); }
.signoff__inner { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); padding-block: clamp(28px, 3vw, 44px); }
.signoff__mascot { width: auto; height: clamp(150px, 15vw, 220px); }
.signoff__phrase { font-family: var(--font-script); font-weight: 400; color: var(--red); font-size: clamp(40px, 5vw, 72px); line-height: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: var(--white); }
.footer__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.footer__logo { width: auto; height: clamp(120px, 11vw, 160px); }
.footer__info { display: flex; justify-content: center; gap: clamp(24px, 4vw, 64px); }
.footer__block { padding-inline: clamp(8px, 2vw, 24px); }
.footer__block + .footer__block { border-left: 1px solid rgba(255,255,255,.3); }
.footer__heading { font-size: 17px; margin-bottom: 12px; }
.footer__list li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.footer__list li + li { margin-top: 10px; }
.footer__list .icon { width: 20px; height: 20px; }
.footer__text { font-size: 16px; line-height: 1.45; }
.footer__social { display: flex; gap: 14px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--red); transition: background-color var(--dur) var(--ease-out); }
.social-btn:hover { background: var(--cream-btn); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.28); padding-block: 18px 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.85); }
/* Crédito del desarrollador: misma voz discreta que el copyright, en su
   propia línea. Sin degradados ni color nuevo: blanco atenuado, blanco
   pleno en el nombre y en hover, igual que el resto del pie. */
.footer__credit {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; color: rgba(255,255,255,.75); font-size: 12px;
  text-decoration: none; transition: color var(--dur) var(--ease-out);
}
.footer__credit .icon { width: 15px; height: 15px; }
.footer__credit b { color: var(--white); font-weight: 700; }
.footer__credit:hover { color: var(--white); }

/* ---------- Carrito ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(35,34,29,.4); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.cart-backdrop.is-open { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(420px, 100vw); background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  scroll-padding-bottom: 200px;
  scrollbar-width: thin; scrollbar-color: var(--cream) transparent;
  transform: translateX(100%); visibility: hidden;
  transition: transform 260ms var(--ease-out), visibility 0s linear 260ms;
  box-shadow: -8px 0 32px rgba(35,34,29,.12);
}
.cart.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.cart:focus { outline: none; }
.cart__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 16px 24px; background: var(--white); border-bottom: 1px solid var(--line);
}
.cart__head-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.icon--flip { transform: scaleX(-1); }
.cart__title { font-size: 20px; min-width: 0; }
.cart__title-count { color: var(--ink-soft); font-size: 16px; }
.cart__list { padding: 8px 24px; }
.cart::-webkit-scrollbar { width: 8px; }
.cart::-webkit-scrollbar-thumb { background: var(--cream); border-radius: 8px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__media { width: 56px; height: 56px; border-radius: 10px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item__name { font-size: 16px; line-height: 1.2; }
.cart-item__price { margin-top: 2px; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cart-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty__btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--green); border-radius: 50%; }
.qty__btn:hover { background: var(--lime-soft); }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__num { min-width: 24px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.cart-item__total { font-size: 15px; color: var(--red); font-variant-numeric: tabular-nums; }
.cart-item__remove { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cart-item__remove:hover { color: var(--red); }
.cart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px; color: var(--ink-soft); font-size: 17px; text-align: center; }
.cart__empty img { width: auto; height: 132px; }
/* Todo el carrito es una sola columna que fluye de arriba a abajo: fichas,
   formulario y bloque de pago. Cuando el contenido pasa del alto de la
   pantalla, el bloque de pago queda pegado al piso al scrollear. */
.cart__foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.cart__foot:empty { display: none; }
.cart__foot:empty { display: none; }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 14px; }
.cart__row strong { color: var(--red); font-size: 20px; font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 12px;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 16px; border-radius: 999px;
  background: var(--green); color: var(--white); font-size: 15px; opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), translate var(--dur) var(--ease-out);
}
.toast.is-visible { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast__link { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .card { flex-basis: calc((100% - 2 * 18px) / 3); max-width: calc((100% - 2 * 18px) / 3); }
}

@media (max-width: 960px) {
  :root { --header-h: 126px; }
  .site-header__inner {
    grid-template-columns: auto 1fr auto; gap: 0 8px; min-height: 0; padding-block: 10px 12px;
    grid-template-areas: "menu brand actions" "search search search";
  }
  .menu-toggle { display: inline-flex; margin-left: -10px; }
  .brand img { height: 40px; }
  .brand { justify-self: start; }
  .search { width: 100%; margin-top: 10px; justify-self: stretch; }
  .search__input { height: 46px; font-size: 16px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; border-top: 0;
    background: var(--red-dark); box-shadow: 0 12px 24px rgba(35,34,29,.18);
    transform-origin: top; transform: scaleY(.96); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 6px var(--gutter) 10px; }
  .nav__link { display: block; padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav__link:hover, .nav__link[aria-current="true"] { border-bottom-color: rgba(255,255,255,.14); }

  .benefits__list { grid-template-columns: repeat(2, 1fr); gap: 8px 0; padding-block: 22px; }
  .benefit { justify-content: flex-start; gap: 12px; font-size: 15px; }
  .benefit + .benefit { border-left: 0; }
  .benefit:nth-child(even) { border-left: 1px solid var(--line); }

  .toolbar { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .filters { grid-column: 1; }
  .toolbar .link-arrow { grid-column: 1; justify-self: center; }

  .season__card { grid-template-columns: minmax(0, 1fr); }
  .season__text { padding-bottom: 0; }
  .season__card { min-height: 0; }
  .season__media { position: static; width: 100%; max-width: 100%; min-width: 0; height: 216px; margin-top: clamp(20px, 3vw, 32px); }
  .season__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .footer__info { width: 100%; justify-content: center; }
  .footer__block { text-align: left; }
  .footer__list li { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .hero { display: flex; flex-direction: column; }
  .hero__content { position: static; padding-block: 34px 0; align-items: flex-start; }
  .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .hero__lead { font-size: 16px; }
  .hero .btn { margin-top: 22px; }
  .hero__media { margin-top: 10px; }
  .hero__media img { width: 100%; aspect-ratio: 1116 / 866; object-fit: cover; object-position: right center; }

  .grid { gap: 12px; }
  .card { flex-basis: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
  .filters { gap: 8px; }
  .pill { min-height: 40px; padding: 0 15px; font-size: 14px; }
  .card { padding: 12px; border-radius: 16px; }
  .card__name { font-size: 16px; }
  .card__price { font-size: 17px; }

  .ig-feed { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .ig-feed::-webkit-scrollbar { display: none; }
  .ig-feed li { flex: 0 0 46%; scroll-snap-align: start; }
  .ig-tile__quote { font-size: clamp(26px, 8vw, 38px); }
  .ig-actions { flex-wrap: wrap; }
  .ig-actions .btn { flex: 1 1 140px; }

  .signoff__inner { flex-direction: column; gap: 14px; text-align: center; }
  .signoff__mascot { height: 150px; }
  .signoff__phrase { font-size: clamp(38px, 11vw, 52px); }

  .footer__info { flex-direction: column; gap: 22px; align-items: center; }
  .footer__block + .footer__block { border-left: 0; }
  .footer__block { text-align: center; }
  .footer__list li { justify-content: center; }
  .footer__logo { height: 130px; }

  .toast { left: 16px; right: 16px; translate: 0 12px; bottom: 16px; border-radius: 16px; }
  .toast.is-visible { translate: 0 0; }
}

@media (max-width: 340px) {
  .benefits__list { grid-template-columns: 1fr; }
  .benefit:nth-child(even) { border-left: 0; }
  .benefit + .benefit { border-top: 1px solid var(--line); }
}


/* ==========================================================================
   ¿Cuánto llevás? — modal de cantidad
   ========================================================================== */
.qty-backdrop { position: fixed; inset: 0; z-index: 96; background: rgba(35,34,29,.45); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.qty-backdrop.is-open { opacity: 1; }
.qty-modal {
  position: fixed; z-index: 97; left: 50%; top: 50%;
  width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: clamp(20px, 4vw, 28px);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(35,34,29,.22);
  transform: translate(-50%, -48%) scale(.97); opacity: 0;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  scrollbar-width: thin; scrollbar-color: var(--cream) transparent;
}
.qty-modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.qty-modal:focus { outline: none; }
.qty-modal::-webkit-scrollbar { width: 8px; }
.qty-modal::-webkit-scrollbar-thumb { background: var(--cream); border-radius: 8px; }

.qty-modal__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: var(--red); font-size: clamp(24px, 3.4vw, 30px); line-height: 1; letter-spacing: .005em; text-align: center;
}
.qty-modal__product { margin-top: 8px; text-align: center; font-size: 17px; line-height: 1.25; color: var(--ink); }
.qty-modal__unit-price { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; }

.qty-box {
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center;
  margin-top: 18px; padding: 6px; border-radius: var(--radius);
  background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--green);
}
.qty-box__step {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--green);
  transition: background-color var(--dur) var(--ease-out);
}
.qty-box__step:hover:not(:disabled) { background: var(--lime-soft-hover); }
.qty-box__step:disabled { opacity: .35; cursor: not-allowed; }
.qty-box__step .icon { width: 20px; height: 20px; stroke-width: 2.25; }
.qty-box__value {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  color: var(--green); font-size: 30px; line-height: 1.1;
}

.qty-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.qty-chip {
  min-height: 40px; padding: 0 6px; border-radius: 999px;
  background: var(--white); color: var(--green); font-size: 14px; line-height: 1;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.qty-chip:hover { background: var(--cream-100); }
.qty-chip.is-on { background: var(--green); color: var(--white); box-shadow: none; }

.qty-offers { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qty-offers__title { display: flex; align-items: center; gap: 7px; color: var(--red); font-size: 15px; line-height: 1; }
.qty-offers__title .icon { width: 16px; height: 16px; }
.qty-offer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 46px; margin-top: 8px; padding: 0 14px;
  border-radius: var(--radius-sm); background: var(--cream-100); color: var(--ink);
  font-size: 15px; text-align: left;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.qty-offer:hover { background: var(--cream); }
.qty-offer.is-on { background: var(--red); color: var(--white); }
.qty-offer__save { flex: none; color: var(--green); font-size: 13px; }
.qty-offer.is-on .qty-offer__save { color: var(--white); }
.qty-offers__note { margin-top: 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.35; }

.qty-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.qty-total__label { color: var(--ink-soft); font-size: 15px; }
.qty-total__amount { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.qty-total--offer .qty-total__amount { color: var(--red); }
.qty-total__old { color: var(--ink-soft); font-size: 16px; text-decoration-thickness: 1px; }
.qty-total__saving { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--green); font-size: 14px; }
.qty-total__saving .icon { width: 15px; height: 15px; }

.qty-modal__actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 20px; }

/* ==========================================================================
   Checkout del carrito (nombre, entrega, pago)
   ========================================================================== */
.cart__delivery-note {
  margin: 0; padding: 10px 24px; background: var(--cream-100); color: var(--green);
  font-size: 14px; line-height: 1.35; text-align: center; border-bottom: 1px solid var(--line);
}
.checkout { display: grid; gap: 14px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field__label { color: var(--ink-soft); font-size: 13px; line-height: 1.2; }
.req { color: var(--red); }
.field__input {
  width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-sm);
  background: var(--cream-100); color: var(--ink); font-size: 15px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--line); caret-color: var(--red);
  -webkit-appearance: none; appearance: none;
}
select.field__input { padding-right: 34px; background-image: none; }
.field__input::placeholder { color: var(--ink-soft); opacity: 1; }
.field__input:focus { outline: 3px solid var(--green); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm);
  background: var(--cream-100); color: var(--ink-soft); font-size: 14px; line-height: 1.15; text-align: center;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.seg__btn .icon { width: 17px; height: 17px; flex: none; }
.seg__btn:hover { background: var(--cream); color: var(--ink); }
.seg__btn.is-on { background: var(--green); color: var(--white); box-shadow: none; }

.checkout__note { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.checkout__note .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--green); }

.alias {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 42px; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--cream-100); color: var(--green); font-size: 14px; text-align: left;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.alias__hint { color: var(--green); font-size: 12px; }

.cart__pay {
  position: sticky; bottom: 0; z-index: 2;
  margin-inline: -24px; margin-bottom: -24px; padding: 14px 24px 24px;
  background: var(--white); border-top: 1px solid var(--line);
}
.cart__rows { display: grid; gap: 8px; }
.cart__row--total { padding-top: 8px; margin-bottom: 4px; border-top: 1px solid var(--line); font-size: 17px; }
.cart__row--total strong { color: var(--red); font-size: 21px; font-variant-numeric: tabular-nums; }
.cart__hint-free { margin-top: -2px; color: var(--green); font-size: 13px; }
.cart__hint { margin-top: 10px; color: var(--ink-soft); font-size: 13px; text-align: center; }
.cart-item__offer { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--red); font-size: 12px; }
.cart-item__offer .icon { width: 12px; height: 12px; }
.cart-item__old { margin-right: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.footer__admin { display: inline-block; margin-top: 6px; color: var(--white); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.footer__admin:hover { color: var(--white); }

@media (max-width: 720px) {
  .qty-modal { width: 100%; max-width: none; left: 0; top: auto; bottom: 0; transform: translateY(14px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 88vh; }
  .qty-modal.is-open { transform: translateY(0); }
  .qty-chips { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .qty-chip { padding: 0 2px; font-size: 13px; }
  .qty-modal__actions { grid-template-columns: 1fr 1fr; }
}

/* Una sucursal que todavía no abre se lista, pero avisa que no toma pedidos. */
.footer__soon {
  display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.2); color: var(--white); font-size: 11px; line-height: 1.3; vertical-align: middle;
}
