/* Patio Orgánico — the Fresh Origins layout (owner's reference, 2026-10-23) in the farm's colours: white page,
   condensed capitals for titles (Bebas Neue), products on plates, deep green and sage instead of black and red. */

@font-face {
  font-family: "Bebas Neue";
  src: url("fuentes/BebasNeue-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("fuentes/BebasNeue-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("fuentes/ClashGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("fuentes/ClashGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --blanco: #FFFFFF;
  --papel: #F3F4EE;
  --papel-2: #E8EADF;
  --linea: #E1E4D8;
  --tinta: #1E2614;
  --tinta-suave: #545C48;
  --salvia: #8DA766;
  --salvia-osc: #557035;
  --salvia-tierra: #B4C69A;
  --cielo: #0090D8;
  --sobre-tinta: #F3F4EE;
  --sobre-tinta-suave: #B9BEAD;

  --titulo: "Bebas Neue", "Oswald", Impact, sans-serif;
  --texto: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: clamp(2.5rem, 1rem + 5.5vw, 5.25rem);
  --head: clamp(2.25rem, 1.2rem + 3vw, 3.5rem);
  --plato: clamp(1.375rem, 1rem + 0.6vw, 1.75rem);
  --lead: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);

  --margen: clamp(16px, 5vw, 80px);
  --ancho: 1280px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--blanco); color-scheme: light; }
:root:has(body.con-pedido) { scroll-padding-bottom: 144px; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font: 400 var(--body) / 1.5 var(--texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(30, 38, 20, 0.12); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
strong { font-weight: 500; }
:target { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; }
.como :focus-visible { outline-color: var(--tinta); }
::selection { background: var(--tinta); color: var(--sobre-tinta); }
[hidden] { display: none !important; }
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }
.saltar { position: absolute; left: var(--margen); top: -80px; z-index: 30; padding: 12px 16px; background: var(--tinta); color: var(--sobre-tinta); }
.saltar:focus { top: 12px; }

/* ---------- buttons ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px 11px;
  background: var(--tinta); color: var(--sobre-tinta); border: 2px solid var(--tinta);
  font: 400 1.25rem / 1 var(--titulo); letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.boton-salvia { background: var(--salvia-osc); border-color: var(--salvia-osc); }
.boton-contorno { background: transparent; color: var(--tinta); }
.boton:active { transform: scale(0.98); }
.icono { width: 20px; height: 20px; flex: none; fill: currentColor; margin-top: -2px; }
/* WhatsApp's brand rules: its glyph only in white or black, never in our colours. */
.boton .icono { fill: #FFFFFF; } /* taste-skill-ignore: WhatsApp brand colour */
.boton-contorno .icono, .barra-pedido .boton .icono { fill: #000000; } /* taste-skill-ignore: WhatsApp brand colour */
.antetitulo { font: 400 1.25rem / 1 var(--titulo); letter-spacing: 0.14em; text-transform: uppercase; color: var(--salvia-osc); }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { transform: translateY(-2px); }
  .boton-contorno:hover { background: var(--tinta); color: var(--sobre-tinta); }
  .boton-contorno:hover .icono { fill: #FFFFFF; } /* taste-skill-ignore: WhatsApp brand colour */
  .nav-enlaces a:hover, .pie a:hover { color: var(--salvia-osc); }
  .pie a:hover { color: var(--salvia-tierra); }
}

/* ---------- navigation ---------- */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px var(--margen); border-bottom: 1px solid var(--linea); background: var(--blanco); /* taste-skill-ignore: owner's reference (Fresh Origins) */
}
.nav-marca { display: inline-flex; align-items: center; gap: 12px; justify-self: start; text-decoration: none; font: 400 1.75rem / 1 var(--titulo); letter-spacing: 0.02em; text-transform: uppercase; }
.nav-marca img { width: 44px; height: 44px; }
.nav-enlaces { display: flex; gap: clamp(20px, 2.6vw, 40px); font: 400 1.25rem / 1 var(--titulo); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-enlaces a { text-decoration: none; transition: color 180ms ease; }
body:has(#productos) .nav-enlaces a:first-child { color: var(--salvia-osc); } /* only the catalogue page marks «Productos» */
.nav > .boton { justify-self: end; }

/* ---------- hero: centred title between two rules, then a strip of the farm's photos ---------- */
.portada { padding: clamp(48px, 7vw, 88px) var(--margen) 40px; text-align: center; }
.portada h1 { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 32px); font-size: var(--display); }
.portada h1::before, .portada h1::after { content: ""; flex: none; width: clamp(28px, 5vw, 80px); height: 4px; background: var(--salvia); }
.portada-frase { max-width: 46ch; margin: 20px auto 0; font-size: var(--lead); }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.tira { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: clamp(240px, 27vw, 400px); overflow: hidden; }
.tira figure { height: 100%; }
.tira img { width: 100%; height: 100%; object-fit: cover; }
.tira figure:nth-child(1) img { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.tira figure:nth-child(n + 2) { margin-left: -12%; width: 112%; }
.tira figure:nth-child(2) img, .tira figure:nth-child(3) img { clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.tira figure:nth-child(4) img { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- catalogue: plates in a grid; the open family's list below ---------- */
.catalogo { padding: clamp(64px, 8vw, 112px) var(--margen) 0; text-align: center; }
.catalogo h2 { margin-top: 10px; font-size: var(--head); }
.catalogo-intro { max-width: 52ch; margin: 16px auto 0; color: var(--tinta-suave); }
/* Flex, not grid: a short last row (7 families) sits in the middle instead of hugging the left. */
.platos { --por-fila: 4; --hueco: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 48px var(--hueco); max-width: var(--ancho); margin: 48px auto 0; }
.platos > li { flex: 0 0 calc((100% - (var(--por-fila) - 1) * var(--hueco)) / var(--por-fila)); }
.plato { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 8px 4px 12px; }
.plato img {
  width: min(100%, 240px); aspect-ratio: 1; object-fit: contain; margin-bottom: 12px;
  filter: drop-shadow(0 14px 16px rgba(30, 38, 20, 0.16)); /* taste-skill-ignore: plates rest on the page as in the owner's reference */
  transition: transform 240ms var(--ease-out);
}
.plato-nombre { font: 400 var(--plato) / 1.05 var(--titulo); letter-spacing: 0.03em; text-transform: uppercase; }
.plato-cuenta { font-size: var(--small); color: var(--tinta-suave); }
.plato[aria-expanded="true"] .plato-nombre { color: var(--salvia-osc); text-decoration: underline 3px var(--salvia); text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .plato:hover img { transform: translateY(-4px) scale(1.02); } }
.plato:active img { transform: scale(0.97); }

.paneles { max-width: 1120px; margin: 48px auto 0; text-align: left; }
.panel { padding: clamp(24px, 3vw, 40px); background: var(--papel); scroll-margin-top: 16px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); margin-bottom: 8px; }
/* The family's own product photos, above its list: square tiles with the product name under each. */
.panel-fotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0 28px; }
.panel-fotos figure { margin: 0; }
.panel-fotos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--blanco); }
.panel-fotos figcaption { margin-top: 8px; font-size: var(--small); color: var(--tinta-suave); }
.producto {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--linea); /* taste-skill-ignore: owner's reference (Fresh Origins) */
}
.producto-nombre { grid-column: 1; }
.producto-detalle { grid-column: 1; font-size: var(--small); color: var(--tinta-suave); }
.contador, .pedir { grid-column: 2; grid-row: 1 / span 2; }
.contador { display: inline-flex; align-items: center; background: var(--blanco); }
.contador button { width: 44px; height: 44px; font-size: var(--lead); line-height: 1; transition: transform 140ms var(--ease-out), background-color 180ms ease; }
.contador button:active { transform: scale(0.9); }
.contador output { min-width: 2.2ch; text-align: center; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .contador button:hover { background: var(--salvia-tierra); } }
.pedir { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--small); font-weight: 500; }
@media (min-width: 1024px) { .panel .productos { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.familia-nota { margin-top: 14px; max-width: 60ch; font-size: var(--small); color: var(--tinta-suave); }

/* ---------- «La diferencia Patio Orgánico» ---------- */
.diferencia { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(80px, 10vw, 136px); background: var(--papel); }
.diferencia-foto img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.diferencia-texto { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); align-self: center; }
.diferencia h2 { margin: 10px 0 24px; font-size: var(--head); }
.lista-check { margin-bottom: 32px; }
.diferencia-nota { max-width: 44ch; margin: -12px 0 28px; font-size: var(--small); color: var(--tinta-suave); }
.lista-check li { position: relative; padding: 9px 0 9px 34px; }
.lista-check li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 13px; height: 7px; border-left: 3px solid var(--salvia-osc); border-bottom: 3px solid var(--salvia-osc); transform: rotate(-45deg); }

/* ---------- how we deliver, on the sage field ---------- */
.como { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(64px, 8vw, 112px) var(--margen); background: var(--salvia); color: var(--tinta); }
.como .antetitulo { color: var(--tinta); }
.como h2 { margin: 10px 0 24px; font-size: var(--head); }
.pasos li { padding: 10px 0; max-width: 44ch; }
.mapa svg { width: 100%; height: auto; }
.mapa-tierra { fill: var(--salvia-tierra); }
.mapa-carretera { fill: none; stroke: var(--tinta); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.mapa-ciudad { fill: var(--tinta); }
.mapa text { fill: var(--tinta); font-family: var(--texto); }
.mapa-nombre { font-size: 26px; font-weight: 500; }
.mapa-dias { font-size: 24px; }
.mapa-ruta { font-size: 24px; font-weight: 500; }

/* ---------- contact: centred call ---------- */
.contacto { padding: clamp(72px, 9vw, 128px) var(--margen); text-align: center; }
.contacto h2 { font-size: var(--head); }
.contacto-frase { max-width: 40ch; margin: 18px auto 0; font-size: var(--lead); }
.como-mas { margin-top: 24px; }
.como-mas a { font-weight: 500; }
.contacto-linea { margin-top: 20px; font-size: var(--small); color: var(--tinta-suave); }

/* ---------- footer: dark green, the emblem in the middle ---------- */
.pie { padding: 64px var(--margen) 28px; background: var(--tinta); color: var(--sobre-tinta-suave); }
.pie-fila { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.pie h2 { margin-bottom: 8px; font-size: 1.75rem; color: var(--sobre-tinta); }
.pie a { color: var(--sobre-tinta); text-decoration-color: transparent; transition: color 180ms ease; }
.pie-der { text-align: right; }
.pie-emblema { width: 96px; height: auto; } /* img/emblema-blanco.png: the emblem all white on the dark green */
.pie-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 48px; font: 400 1.25rem / 1 var(--titulo); letter-spacing: 0.06em; text-transform: uppercase; }
.pie-legales { margin-top: 20px; font-size: 1rem; }
.pie-legal { margin-top: 24px; font-size: var(--small); text-align: center; }

/* ---------- legal pages and FAQ: one reading column ---------- */
.legal { max-width: calc(68ch + 2 * var(--margen)); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--margen); }
.legal h1 { margin-top: 10px; font-size: var(--head); }
.legal-fecha { margin-top: 12px; font-size: var(--small); color: var(--tinta-suave); }
.legal h2 { margin: 40px 0 12px; font-size: var(--plato); }
.legal :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--salvia-osc); }
.legal :is(p, li) > a { color: var(--salvia-osc); }
.legal-ley { margin-top: 40px; font-size: var(--small); color: var(--tinta-suave); }
.temas { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font: 400 1.25rem / 1 var(--titulo); letter-spacing: 0.06em; text-transform: uppercase; }
.legal .temas a { color: var(--tinta); text-decoration: underline 2px var(--salvia); text-underline-offset: 6px; }
.preguntas section { margin-top: 56px; }
.preguntas h2 { margin: 0 0 8px; }
.preguntas-nota { margin-bottom: 8px; font-size: var(--small); color: var(--tinta-suave); }
.pregunta { border-bottom: 1px solid var(--linea); } /* taste-skill-ignore: rules between questions, as in the owner's reference */
.pregunta summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 500; cursor: pointer; list-style: none; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; content: "+" / ""; flex: none; font: 400 1.75rem / 1 var(--titulo); color: var(--salvia-osc); }
.pregunta[open] summary::after { content: "−"; content: "−" / ""; } /* the sign is decoration: screen readers skip it */
.pregunta p { padding-bottom: 16px; }
/* The not-found page is short: it fills the screen so the footer sits at the bottom. */
body:has(.no-encontrada) { display: flex; flex-direction: column; min-height: 100svh; }
.no-encontrada { flex: 1; display: grid; align-content: center; width: 100%; text-align: center; }
.no-encontrada p { margin-top: 16px; }

/* ---------- order bar ---------- */
.barra-pedido {
  position: fixed; inset: auto 0 0; z-index: 10;
  padding: 12px var(--margen) calc(12px + env(safe-area-inset-bottom));
  background: var(--tinta); color: var(--sobre-tinta);
  box-shadow: 0 -8px 24px rgba(30, 38, 20, 0.18); /* taste-skill-ignore: the order bar floats over the page */
}
.barra-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.barra-resumen { min-height: 44px; text-align: left; text-decoration: underline; text-underline-offset: 0.18em; }
.barra-pedido .boton { background: var(--papel); border-color: var(--papel); color: var(--tinta); }
.barra-aviso { margin-top: 6px; font-size: var(--small); color: var(--sobre-tinta-suave); }
.barra-aviso a { color: var(--sobre-tinta); }
.barra-detalle { max-height: 50svh; overflow-y: auto; overscroll-behavior: contain; padding-top: 12px; }
.barra-lineas li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0; }
.barra-lineas li > span:first-child { min-width: 0; }
.barra-lineas .contador { background: rgba(243, 244, 238, 0.12); }
.vaciar { min-height: 44px; margin-top: 8px; text-decoration: underline; color: var(--sobre-tinta-suave); }
body.con-pedido { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }

/* ---------- motion: each part rises once as it enters ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-entra] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-entra].dentro { opacity: 1; transform: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .platos { --por-fila: 3; }
  .diferencia, .como { grid-template-columns: 1fr; }
  .diferencia-foto img { min-height: 320px; max-height: 420px; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-enlaces, .solo-ancho { display: none; }
  .nav-marca { font-size: 1.5rem; }
  .nav > .boton { padding-inline: 16px; }
  .portada h1 { font-size: clamp(2.25rem, 9.5vw, 2.75rem); }
  .portada h1::before, .portada h1::after { display: none; }
  .tira { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; height: auto; }
  .tira figure:nth-child(n) { margin: 0; width: 100%; }
  .tira figure:nth-child(n) img { clip-path: none; }
  .platos { --por-fila: 2; --hueco: 12px; row-gap: 32px; }
  .paneles { margin-top: 32px; }
  .panel-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pie-fila { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pie-der { text-align: center; }
  .barra-pedido .boton { padding-inline: 16px; }
}
