@font-face { font-family: 'Archivo'; src: url("fonts/archivo-variable.woff2") format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url("fonts/fraunces-variable.woff2") format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --paper: #FFFFFF;
  --steel: #EDEFED;
  --line: #D8DBD8;
  --ink: #221E1D;
  --muted: #5C5654;
  --teja: #B05455;
  --teja-deep: #8C3D3E;
  --teja-ink: #FFFFFF;
  --masa: #EFDCAE;
  --masa-edge: #D7BC82;
  --horno: #2A2422;
  --horno-ink: #F3EEEA;
  --horno-muted: #BDB3AE;
  --pack: #FFFFFF;
  --focus: #1F6F8B;
  --cm: 5.6px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  color-scheme: only light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Tipografía */
h1, h2, h3 { font-stretch: 112%; margin: 0; color: inherit; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 760; line-height: .98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 740; line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; font-weight: 680; line-height: 1.15; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 40rem; margin: 1.25rem 0 0; }
.crumb { margin: 0 0 1rem; font-size: .9375rem; font-weight: 560; color: var(--teja-deep); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: inherit; font-weight: 620; font-size: 1rem; font-stretch: 105%;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--teja); color: var(--teja-ink); }
.btn-primary:hover { background: #923F40; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: #FFFFFF; color: #8C3D3E; }
.btn-light:hover { background: var(--masa); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.link { font-weight: 620; color: var(--teja-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.link:hover { color: var(--ink); }

/* Cabecera */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .5rem .7rem; border-radius: 6px; text-decoration: none; font-weight: 520; font-size: .975rem; color: var(--ink); }
.nav a:hover { background: var(--steel); }
.nav a[aria-current="page"] { color: var(--teja-deep); box-shadow: inset 0 -2px 0 var(--teja); border-radius: 0; }
.nav .btn { margin-left: .75rem; min-height: 42px; padding: .5rem 1.1rem; font-size: .9375rem; color: var(--teja-ink); }
.nav .btn:hover { background: #923F40; }
.menu-btn { display: none; min-height: 44px; padding: .5rem .9rem; font: inherit; font-weight: 600; background: transparent; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 1rem .25rem; font-size: 1.25rem; font-stretch: 110%; font-weight: 640; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 1.5rem 0 0; min-height: 52px; font-size: 1.0625rem; border-bottom: 0; border-radius: 999px; }
}

/* ── Barra de feria ─────────────────────── */
.fairbar { background: var(--horno); color: var(--horno-ink); font-size: .9375rem; }
.fairbar .wrap { display: flex; justify-content: center; }
.fairbar p { margin: 0; padding: .6rem 0; text-align: center; }
.fairbar strong { color: var(--masa); font-weight: 680; }
.fairbar a { color: var(--horno-ink); font-weight: 620; margin-left: .35rem; text-underline-offset: .2em; }
.fairbar[hidden], .fairbar p[hidden] { display: none; }

/* ── Selector de idioma ─────────────────── */
.lang { display: inline-flex; margin-left: .75rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { font: inherit; font-size: .8125rem; font-weight: 640; letter-spacing: .02em; min-width: 38px; min-height: 34px; padding: 0 .5rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
@media (max-width: 1060px) { .lang { margin: 1.5rem 0 0; align-self: flex-start; } .lang button { min-width: 56px; min-height: 44px; font-size: 1rem; } }

/* Páginas */
.page[hidden] { display: none; }
main:focus { outline: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 4.7rem); }
.hero h1 span { display: block; }
.hero-note { margin: 1.75rem 0 0; font-size: .9375rem; color: var(--muted); }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 4px 200px 4px 4px; }
.hero-media figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 11; border-radius: 4px 120px 4px 4px; }
}

/* Regla de diámetros */

    
   
@media (max-width: 1100px) { :root { --cm: 4.4px; } }

@media (max-width: 560px) { :root { --cm: 3.6px; } }

/* Secciones genéricas */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-steel { background: var(--steel); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { margin: 0; font-size: 1.125rem; color: var(--muted); max-width: 32rem; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Familias */
.families { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.family-item { display: flex; }
.family-item a { display: flex; flex-direction: column; width: 100%; text-decoration: none; }
.plate { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--steel); }
.plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .35s ease; }
.family-item a:hover .plate img { transform: scale(1.1); }
.family-item h3 { margin-top: 1.4rem; }
.family-item p { margin: .5rem 0 0; color: var(--muted); }
.family-item .go { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: .9rem; font-weight: 620; color: var(--teja-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
@media (max-width: 960px) { .families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .families { gap: 2rem 1.25rem; } .family-item p { font-size: .9375rem; } }

/* ── Inicio: cinco familias ─────────────── */
.families { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
@media (max-width: 1100px) { .families { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Canales */
.channels { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.channel a {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr) auto;
  gap: 1rem 2.5rem; align-items: start;
  padding: 2.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.channel .ch-name { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 740; font-stretch: 112%; line-height: 1.05; letter-spacing: -0.02em; }
.channel .ch-title { display: block; font-weight: 640; font-size: 1.125rem; }
.channel .ch-desc { display: block; margin-top: .4rem; color: var(--muted); }
.channel .ch-brands { font-size: .9375rem; color: var(--muted); }
.channel .ch-brands strong { display: block; color: var(--ink); font-weight: 620; }
.channel .ch-go { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.channel .ch-go svg { width: 20px; height: 20px; }
.channel a:hover .ch-go { background: var(--teja); border-color: var(--teja); color: #FFFFFF; }
.channel a:hover .ch-name { color: var(--teja-deep); }
@media (max-width: 900px) {
  .channel a { grid-template-columns: minmax(0, 1fr) auto; }
  .channel .ch-name { grid-column: 1; }
  .channel .ch-go { grid-column: 2; grid-row: 1; }
  .channel .ch-body, .channel .ch-brands { grid-column: 1 / -1; }
}

/* Planta (sección oscura) */
.plant { background: var(--horno); color: var(--horno-ink); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.plant .statement { font-size: clamp(1.5rem, 3vw, 2.35rem); font-weight: 520; font-stretch: 104%; line-height: 1.25; letter-spacing: -0.012em; max-width: 30em; margin: 1.75rem 0 0; }
.plant .statement strong { font-weight: 720; color: var(--masa); }
.plant-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.plant-foot p { margin: 0; color: var(--horno-muted); }
.plant-foot p strong { color: var(--horno-ink); font-weight: 620; }
.plant .btn-line { color: var(--horno-ink); }
.plant .btn-line:hover { background: var(--horno-ink); color: var(--horno); border-color: var(--horno-ink); }

/* ── Inicio: foto aérea en la sección de planta ── */
.plant { padding-top: 0; }
.aerial { margin: 0 0 clamp(3rem, 6vw, 4.5rem); }
.aerial img { width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; object-position: 50% 62%; }

/* ── Sellos (máscaras de un solo color) ─── */
.mark { display: block; background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark-ifs { --m: url("img/ds-ifs.png"); height: 44px; aspect-ratio: 360 / 217; }
.mark-brc { --m: url("img/ds-brc.png"); height: 64px; aspect-ratio: 244 / 360; }
.mark-halal { --m: url("img/ds-halal.png"); height: 64px; aspect-ratio: 321 / 360; }
.mark-veg { --m: url("img/ds-veg.png"); height: 64px; aspect-ratio: 298 / 360; }
.mark-oleic { --m: url("img/ds-oleic.png"); height: 64px; aspect-ratio: 326 / 360; }
.cert-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.plant .cert-logos { color: var(--horno-ink); }
.two-col .cert-logos { margin-top: 2rem; color: var(--ink); }
.badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; align-items: center; color: var(--masa); }
.badges .mark { height: 56px; }

/* ── Ferias ─────────────────────────────── */
.fair-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.fair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 2fr); gap: 1rem 2.5rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.fair[hidden] { display: none; }
.fair-date, .fair-stand { margin: 0; }
.fair-date b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 760; font-stretch: 112%; line-height: 1; letter-spacing: -0.03em; }
.fair-date span, .fair-stand span { display: block; color: var(--muted); margin-top: .3rem; }
.fair h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.fair div p { margin: .35rem 0 0; color: var(--muted); }
.fair-stand b { display: block; font-weight: 700; font-stretch: 108%; font-size: 1.125rem; color: var(--teja-deep); }
@media (max-width: 760px) { .fair { grid-template-columns: 1fr; } }

/* Producción a medida + formularios */
.tailor { background: var(--teja); color: #FFFFFF; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.tailor-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tailor .lede { color: #FBEDEC; }
.tailor-contact { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .35); }
.tailor-contact p { margin: 0 0 .35rem; }
.tailor-contact a { color: #FFFFFF; font-weight: 620; text-underline-offset: .2em; }
@media (max-width: 900px) { .tailor-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--paper); color: var(--ink); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 6px; padding: .7rem .8rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.field .err { font-size: .875rem; color: #A12E2F; min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A12E2F; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .9375rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--teja); }
.consent a { color: var(--ink); }
.consent.has-error { color: #A12E2F; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .25rem; }
.form-foot small { color: var(--muted); font-size: .875rem; }
.form-done { padding: 1rem 0; }
.form-done h3 { font-size: 1.75rem; }
.form-done p { color: var(--muted); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Formularios: campo trampa para robots (oculto a personas y lectores de pantalla) y error de envío */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-fail { flex-basis: 100%; margin: .5rem 0 0; color: #A3261B; font-weight: 600; }

/* Empleo (teaser y página) */
.jobs-teaser { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.team-photo { margin: 0; max-width: 360px; }
.team-photo img { width: 100%; border-radius: 180px 180px 4px 4px; aspect-ratio: 300 / 366; object-fit: cover; }
.team-photo figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.perks { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.perks li { border-top: 2px solid var(--ink); padding-top: .9rem; }
.perks b { display: block; font-weight: 680; font-stretch: 106%; }
.perks span { display: block; margin-top: .35rem; color: var(--muted); font-size: .975rem; }
@media (max-width: 860px) { .jobs-teaser { grid-template-columns: 1fr; } .perks { grid-template-columns: 1fr; } }

/* Cabecera de páginas interiores */
.page-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 16ch; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.jump a { padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 560; }
.jump a:hover { border-color: var(--ink); }

.notfound { padding-block: 4rem; }

/* Productos */
.gama { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.gama-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.gama-intro { position: sticky; top: 110px; }
.gama-intro .plate { max-width: 300px; }
.gama-intro h2 { margin-top: 1.5rem; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.gama-intro p { margin: .75rem 0 0; color: var(--muted); }
.gama-intro .spec { color: var(--ink); font-weight: 560; }
.refs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ref-btn {
  width: 100%; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: .25rem 1.5rem; align-items: center;
  padding: 1.15rem 0; background: none; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.ref-btn .ref-d { font-size: 1.5rem; font-weight: 720; font-stretch: 110%; letter-spacing: -0.02em; white-space: nowrap; }
.ref-btn .ref-d small { font-size: .875rem; font-weight: 560; color: var(--muted); margin-left: .15rem; }
.ref-btn .ref-name { display: block; font-weight: 640; }
.ref-btn .ref-short { display: block; color: var(--muted); font-size: .975rem; margin-top: .1rem; }
.ref-btn .ref-open { font-size: .9375rem; font-weight: 620; color: var(--teja-deep); white-space: nowrap; }
.ref-btn:hover .ref-name { color: var(--teja-deep); }
.ref-btn:hover .ref-open { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 860px) {
  .gama-grid { grid-template-columns: 1fr; }
  .gama-intro { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 0 1.25rem; align-items: center; }
  .gama-intro .plate { grid-row: span 3; }
  .gama-intro h2 { margin-top: 0; }
}
@media (max-width: 560px) {
  .ref-btn { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .ref-btn .ref-open { grid-column: 2; }
  .gama-intro { grid-template-columns: 88px 1fr; }
}

/* ── Productos: familia sin referencias ── */

/* ── Trigo: filtro por variedad, grupos e indicador de color ── */
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); vertical-align: -1px; }
.sw-clasica { background: #EBD39A; }
.sw-integral { background: #A47852; }
.sw-lino { background: radial-gradient(circle at 35% 40%, #3D3A2A 0 12%, transparent 14%), radial-gradient(circle at 65% 62%, #3D3A2A 0 10%, transparent 12%), #C9C08D; }
.sw-maiz { background: #E7BE4F; }
.sw-tomate { background: #D0674C; }
.sw-protein { background: #C9B48F; }
.sw-esp { background: conic-gradient(#C9C08D 0 25%, #E7BE4F 0 50%, #D0674C 0 75%, #C9B48F 0); }
.var-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.var-chips button { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .45rem 1rem; font: inherit; font-weight: 600; font-size: .9375rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.var-chips button span { color: var(--muted); font-weight: 500; }
.var-chips button:hover { border-color: var(--ink); }
.var-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.var-chips button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.ref-grp + .ref-grp { margin-top: 2.25rem; }
.ref-grp-h { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin: 0; padding: .9rem 0 .7rem; border-top: 2px solid var(--ink); font-size: 1.25rem; font-weight: 700; font-stretch: 108%; }
.ref-grp-h .sw { width: 16px; height: 16px; }
.ref-grp-h span { flex-basis: 100%; font-size: .9375rem; font-weight: 500; font-stretch: 100%; color: var(--muted); padding-left: calc(16px + .65rem); }
@media (min-width: 700px) { .ref-grp-h span { flex-basis: auto; padding-left: .5rem; } }
.refs-in-grp { border-top: 1px solid var(--line); }
.ref-var { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .2rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.ref-name .sw { width: 11px; height: 11px; margin-right: .2rem; vertical-align: 0; }
.grant-list { list-style: none !important; padding: 0 !important; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.grant-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.grant-list b { display: block; font-weight: 640; line-height: 1.35; }
.grant-list span { display: block; margin-top: .3rem; color: var(--muted); font-size: .9375rem; }
.grant-list a { display: inline-block; margin-top: .4rem; font-size: .9375rem; font-weight: 600; }
.legal-doc .grant-list { max-width: 46rem; }

/* Ficha de producto */
dialog.ficha {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0;
  border: 0; border-radius: 8px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
dialog.ficha::backdrop { background: rgba(28, 22, 21, .55); }
.ficha-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.5rem 1.75rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.ficha-head p { margin: 0 0 .25rem; color: var(--teja-deep); font-weight: 600; font-size: .9375rem; }
.ficha-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ficha-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.ficha-close:hover { border-color: var(--ink); }
.ficha-close svg { width: 18px; height: 18px; }
.ficha-body { padding: 1.5rem 1.75rem 2rem; overflow-y: auto; }
.ficha-body > p { margin: 0 0 1.5rem; font-size: 1.125rem; }
.ficha-body h3 { font-size: 1.0625rem; margin: 1.75rem 0 .6rem; }
.ficha-body .ingr { margin: 0; color: var(--muted); }
.ficha-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.ficha table { width: 100%; border-collapse: collapse; font-size: .975rem; }
.ficha th, .ficha td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ficha th { font-weight: 500; color: var(--muted); padding-right: 1rem; }
.ficha td { font-weight: 600; text-align: right; white-space: nowrap; }
.ficha tr.sub th { padding-left: 1rem; }
.ficha caption { text-align: left; font-size: .875rem; color: var(--muted); padding-bottom: .35rem; caption-side: top; }
@media (max-width: 640px) { .ficha-cols { grid-template-columns: 1fr; } }

/* ── Recetas ────────────────────────────── */
.gama-rec { display: inline-block; margin-top: 1rem; font-weight: 620; color: var(--teja-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.gama-rec:hover { color: var(--ink); }
@media (max-width: 860px) { .gama-intro .gama-rec { grid-column: 2; margin-top: .5rem; } }
.ficha-rec { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.jump a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jump a span { color: var(--muted); font-weight: 500; margin-left: .15rem; }
.jump a[aria-current="true"] span { color: inherit; opacity: .75; }
.rec-note { margin: 1rem 0 0; padding: .6rem .9rem; border-radius: 6px; background: var(--steel); color: var(--muted); font-size: .9375rem; display: inline-block; }
.rec-list { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.rec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
@media (max-width: 960px) { .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rec-grid { grid-template-columns: 1fr; gap: 2rem; } }
.rec-card a { display: block; text-decoration: none; }
.rec-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--steel); }
.rec-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rec-card a:hover .rec-img img { transform: scale(1.04); }
.rec-meta { display: block; margin-top: 1rem; font-size: .875rem; color: var(--muted); }
.rec-card h3 { margin-top: .3rem; font-size: 1.3rem; }
.rec-card a:hover h3 { color: var(--teja-deep); }
.rec-prod { display: inline-block; margin-top: .6rem; font-size: .8125rem; font-weight: 620; color: var(--teja-deep); border: 1.5px solid currentColor; border-radius: 999px; padding: .15rem .6rem; }
.rec-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.rec-head-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rec-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); max-width: 15ch; }
.rec-photo { margin: 0; }
.rec-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.rec-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.rec-facts dt { font-size: .875rem; color: var(--muted); }
.rec-facts dd { margin: .15rem 0 0; font-weight: 700; font-stretch: 108%; font-size: 1.25rem; }
@media (max-width: 860px) { .rec-head-grid { grid-template-columns: 1fr; } .rec-photo { order: -1; } }
.rec-body { background: var(--steel); }
.rec-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .rec-cols { grid-template-columns: 1fr; } }
.rec-ingr { background: var(--paper); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); position: sticky; top: 110px; }
@media (max-width: 860px) { .rec-ingr { position: static; } }
.rec-cols h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.rec-ingr ul { list-style: none; margin: 0; padding: 0; }
.rec-ingr li { padding: .6rem 0; border-top: 1px solid var(--line); }
.rec-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.rec-steps li { counter-increment: paso; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); font-size: 1.0625rem; max-width: 46rem; }
.rec-steps li::before { content: counter(paso); font-size: 1.9rem; font-weight: 760; font-stretch: 112%; line-height: 1; color: var(--teja-deep); }
.rec-made { background: var(--teja); color: #FFFFFF; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.rec-made .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.rec-made p { margin: 0 0 .3rem; color: #FBEDEC; }
.rec-made h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.rec-teaser .rec-grid { margin-top: .5rem; }

/* Recetas sin foto: disco de tortilla dibujado */
.rec-nophoto { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; background-color: var(--steel);
  background-image:
    radial-gradient(circle at 42% 44%, rgba(150, 98, 40, .35) 0 1.2%, transparent 1.7%),
    radial-gradient(circle at 58% 38%, rgba(150, 98, 40, .28) 0 .9%, transparent 1.4%),
    radial-gradient(circle at 55% 60%, rgba(150, 98, 40, .32) 0 1.4%, transparent 1.9%),
    radial-gradient(circle at 44% 63%, rgba(150, 98, 40, .25) 0 1%, transparent 1.5%),
    radial-gradient(circle at 50% 50%, #EFDCAE 0 28%, #D7BC82 28.5% 29.5%, transparent 30%);
}
.rec-photo .rec-nophoto { aspect-ratio: 4 / 3; border-radius: 6px; }

/* Páginas de canal */
.chan-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.chan-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.chan-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); max-width: 14ch; }
.chan-hero figure { margin: 0; }
.chan-hero figure.team-photo { max-width: 320px; justify-self: end; }
.chan-hero .team-photo img { aspect-ratio: 298 / 364; border-radius: 160px 160px 4px 4px; }
@media (max-width: 860px) { .chan-hero figure.team-photo { justify-self: start; max-width: 260px; } }
.chan-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px 140px 4px 4px; }
@media (max-width: 860px) { .chan-hero-grid { grid-template-columns: 1fr; } }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.features li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.features b { display: block; font-size: 1.25rem; font-weight: 700; font-stretch: 108%; line-height: 1.2; letter-spacing: -0.01em; }
.features span { display: block; margin-top: .45rem; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.brand-block + .brand-block { margin-top: clamp(3.5rem, 7vw, 5rem); }
.brand-block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem 2rem; margin-bottom: 1.75rem; }
.brand-block-head h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 740; letter-spacing: -0.02em; }
.brand-block-head p { margin: .4rem 0 0; color: var(--muted); max-width: 34rem; }
.packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.25rem; }
.packs-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .packs-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .packs-7, .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pack figure { margin: 0; }
.pack .pack-img { position: relative; background: var(--pack); border-radius: 6px; aspect-ratio: 1; border: 1px solid var(--line); }
.pack .pack-img img { position: absolute; top: 8%; left: 8%; width: 84%; height: 84%; object-fit: contain; }
.pack figcaption { margin-top: .7rem; }
.pack figcaption b { display: block; font-weight: 640; font-size: .975rem; line-height: 1.3; }
.pack figcaption span { display: block; color: var(--muted); font-size: .9rem; margin-top: .15rem; }

.fs-band { background: var(--horno); color: var(--horno-ink); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.fs-band .brand-block-head p { color: var(--horno-muted); }
.fs-packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; align-items: end; }
.fs-packs figure { margin: 0; }
.fs-packs img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.fs-packs figcaption { margin-top: 1rem; }
.fs-packs b { display: block; font-size: 1.375rem; font-weight: 720; font-stretch: 110%; color: var(--masa); }
.fs-packs span { display: block; margin-top: .2rem; color: var(--horno-muted); font-size: .9375rem; }
@media (max-width: 860px) { .fs-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fs-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cta-band { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--steel); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.cta-band p { margin: .6rem 0 0; color: var(--muted); max-width: 34rem; }

/* ── Food service: tabla y usos ─────────── */
.fs-band .brand-block-head { align-items: center; }
.spec-wrap { margin-top: clamp(2.5rem, 5vw, 3.5rem); overflow-x: auto; }
.spec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.spec-table caption { text-align: left; color: var(--horno-muted); font-size: .9375rem; padding-bottom: .75rem; }
.spec-table th, .spec-table td { padding: .8rem 1rem .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); text-align: right; }
.spec-table thead th { color: var(--horno-muted); font-weight: 560; font-size: .875rem; vertical-align: bottom; }
.spec-table th:first-child { text-align: left; }
.spec-table tbody th { color: var(--masa); font-weight: 720; font-stretch: 110%; font-size: 1.125rem; }
.spec-table td { font-weight: 560; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.uses img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.uses span { display: block; margin-top: .75rem; font-weight: 640; text-align: center; }
@media (max-width: 860px) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Retail: avance de Deli Sun ─────────── */
.ds-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem 3rem; align-items: center; background: #FACF7F; color: #582D2A; border-radius: 8px; padding: clamp(1.75rem, 4vw, 3rem); }
.ds-teaser-logo { width: min(320px, 80%); }
.ds-teaser p { margin: 1.25rem 0 1.5rem; font-size: 1.0625rem; max-width: 30rem; }
.ds-teaser-packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.ds-teaser-packs img { width: 100%; filter: drop-shadow(0 14px 18px rgba(88, 45, 42, .28)); }
@media (max-width: 760px) { .ds-teaser { grid-template-columns: 1fr; } }

/* ── Envases enlazados a la tienda de Mercadona ── */
.pack-link { display: block; text-decoration: none; color: inherit; border-radius: 6px; }
.pack-link .pack-img { transition: border-color .15s ease, box-shadow .15s ease; }
.pack-link:hover .pack-img { border-color: var(--ink); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45); }
.pack-link:hover b { color: var(--teja-deep); }
.pack-ext { display: inline-flex !important; align-items: center; gap: .25rem; margin-top: .45rem !important; font-size: .8125rem !important; font-weight: 640; color: var(--teja-deep) !important; }
.pack-ext svg { width: 13px; height: 13px; }
.pack-link:hover .pack-ext { text-decoration: underline; text-underline-offset: .2em; }
.packs .pack { display: flex; }
.pack-link { display: flex; flex-direction: column; width: 100%; }
.pack-link figure { display: flex; flex-direction: column; flex: 1; }
.pack-link figcaption { display: flex; flex-direction: column; flex: 1; }
.pack-link .pack-ext { margin-top: auto !important; padding-top: .45rem; align-self: flex-start; }

/* ── Página Deli Sun: identidad propia de la marca ── */
.ds-page { --ds-peach: #FACF7F; --ds-brown: #582D2A; --ds-orange: #F5A85C; --ds-lilac: #E5ADDB; --ds-lime: #CBE375; --ds-green: #89BE6D; background: var(--ds-peach); color: var(--ds-brown); }
.ds-page .crumb { color: var(--ds-brown); opacity: .8; }

.ds-claim, .ds-h2, .ds-card h3, .ds-card h4 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-variation-settings: "SOFT" 100, "WONK" 0; font-stretch: 100%; letter-spacing: -0.01em; }
.ds-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.ds-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ds-logo { width: min(560px, 100%); margin-top: .5rem; }
.ds-claim { margin: 1.25rem 0 0; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.05; }
.ds-lede { margin: 1.25rem 0 0; font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: 34rem; }
.ds-btn { background: var(--ds-brown, #582D2A); color: #FACF7F; }
.ds-btn:hover { background: #3E1F1D; }
.ds-btn-line { border-color: #582D2A; color: #582D2A; background: transparent; }
.ds-btn-line:hover { background: #582D2A; color: #FACF7F; }
.ds-cover { margin: 0; position: relative; }
.ds-cover > img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(88, 45, 42, .6); }
.ds-mascot { position: absolute; width: clamp(110px, 14vw, 170px); left: -9%; bottom: 6%; transform: rotate(-6deg); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
@media (max-width: 860px) { .ds-hero-grid { grid-template-columns: 1fr; } .ds-mascot { left: auto; right: 4%; bottom: -6%; } }
.ds-badges-band { border-top: 2px solid #582D2A; border-bottom: 2px solid #582D2A; }
.ds-badges { list-style: none; margin: 0; padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; color: #582D2A; }
.ds-badges .mark { height: 72px; }
.ds-badges .mark-ifs { height: 50px; }
.ds-range { padding: clamp(3rem, 7vw, 5rem) 0; }
.ds-h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 600; line-height: 1.02; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }

.ds-cta { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--ds-orange); }
.ds-cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.ds-cta .ds-h2 { margin-bottom: .5rem; }
.ds-cta p { margin: 0; font-size: 1.125rem; }

.aerial img { object-position: 50% 82%; }
.fs-hero-fig img { aspect-ratio: 1 / 1 !important; object-position: 50% 45%; }
.plant .mark-ifs { height: 52px; } .plant .mark-brc, .plant .mark-halal { height: 74px; }
@media (max-width: 520px) { .ds-badges { justify-content: space-around; gap: 1rem; } .ds-badges .mark { height: 52px; } .ds-badges .mark-ifs { height: 36px; } }

/* ── Deli Sun: todas las referencias con el mismo peso ── */
.ds-range-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 3rem; align-items: end; margin-bottom: 1.75rem; }
.ds-range-head .ds-h2 { margin-bottom: 0; }
.ds-range-head p { margin: 0; font-size: 1.0625rem; max-width: 30rem; }
@media (max-width: 760px) { .ds-range-head { grid-template-columns: 1fr; } }
.ds-chips button { background: transparent; border-color: rgba(88, 45, 42, .35); color: #582D2A; }
.ds-chips button span { color: #582D2A; opacity: .7; }
.ds-chips button:hover { border-color: #582D2A; }
.ds-chips button[aria-pressed="true"] { background: #582D2A; border-color: #582D2A; color: #FACF7F; }
.ds-chips button[aria-pressed="true"] span { color: #FACF7F; }
.ds-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .ds-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ds-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; } }
.ds-item { display: flex; }
.ds-item-btn { width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 1.1rem 1.1rem 1rem; border: 0; border-radius: 20px; font: inherit; color: #582D2A; cursor: pointer; background: var(--ds-c, #F5A85C); transition: transform .15s ease, box-shadow .15s ease; }
.ds-item-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -18px rgba(88, 45, 42, .55); }
.ds-item-img { display: grid; place-items: center; width: 100%; height: 190px; margin-bottom: .9rem; }
.ds-item-img img { max-height: 100%; max-width: 78%; width: auto; filter: drop-shadow(0 12px 14px rgba(88, 45, 42, .3)); }
.ds-item-var { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.55rem; font-weight: 600; line-height: 1.05; }
.ds-item-d { margin-top: .35rem; font-size: 1.9rem; font-weight: 760; font-stretch: 110%; line-height: 1; letter-spacing: -0.02em; }
.ds-item-d small { font-size: .9rem; font-weight: 600; margin-left: .15rem; }
.ds-item-f { margin-top: .3rem; font-weight: 600; }
.ds-item-foot { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .9rem; font-size: .8125rem; opacity: .85; }
.ds-item-open { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; opacity: 1; }
.ds-v-trigo { --ds-c: #F5A85C; }
.ds-v-integral { --ds-c: #E5ADDB; }
.ds-v-tomate { --ds-c: #F29A9A; }
.ds-v-trigomaiz { --ds-c: #F3D34A; }
.ds-v-linochia { --ds-c: #CFC08A; }
.ds-v-protein { --ds-c: #BFC4B0; }
.ds-v-maiz { --ds-c: #89BE6D; }
.ds-v-pizza { --ds-c: #CBE375; }
@media (max-width: 520px) { .ds-item-img { height: 140px; } .ds-item-var { font-size: 1.25rem; } .ds-item-d { font-size: 1.5rem; } .ds-item-foot { flex-direction: column; } }
.ds-item-img { position: relative; display: block; }
.ds-item-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.grant-list h3 { font-size: 1.0625rem; font-weight: 680; font-stretch: 102%; line-height: 1.35; margin: 0; }
.grant-dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .7rem 0 0; font-size: .9375rem; }
.grant-dl dt { color: var(--muted); }
.grant-dl dd { margin: 0; font-weight: 560; }
@media (max-width: 560px) { .grant-dl { grid-template-columns: 1fr; gap: 0; } .grant-dl dd { margin-bottom: .35rem; } }
.grant-list li > p { margin: .6rem 0 0; font-size: .9375rem; color: var(--ink); }
.grant-poster { margin: .9rem 0 .2rem; max-width: 460px; }
.grant-poster img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #FFFFFF; }

.ds-item-foot { justify-content: flex-end; }

/* Empresa */
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.facts-row div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.facts-row dt { font-size: clamp(2rem, 4vw, 3rem); font-weight: 760; font-stretch: 112%; line-height: 1; letter-spacing: -0.03em; }
.facts-row dd { margin: .5rem 0 0; color: var(--muted); }
@media (max-width: 760px) { .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wide-photo { margin: 0; }
.wide-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; }
.wide-photo figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ── Empresa: fábricas ──────────────────── */
.factories { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.factories figure { margin: 0; }
.factories img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.factories figcaption { margin-top: .7rem; }
.factories b { display: block; font-weight: 680; }
.factories span { display: block; color: var(--muted); font-size: .9375rem; }
@media (max-width: 640px) { .factories { grid-template-columns: 1fr 1fr; } .factories li:last-child { grid-column: 1 / -1; } .factories li:last-child img { aspect-ratio: 16 / 10; } }

/* ── Textos legales ─────────────────────── */
.legal-date { margin: 1rem 0 0; color: var(--muted); font-size: .9375rem; }
.legal-doc { padding-bottom: clamp(4rem, 8vw, 6rem); }
.legal-doc > * { max-width: 54rem; }
.legal-pending { margin: 0 0 2rem; padding: .75rem 1rem; border-left: 4px solid var(--masa-edge); background: var(--steel); color: var(--muted); font-size: .9375rem; border-radius: 0 6px 6px 0; }
.legal-doc h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.legal-doc p, .legal-doc li { max-width: 46rem; }
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-doc li + li { margin-top: .4rem; }
.legal-doc a { color: var(--teja-deep); text-underline-offset: .2em; }
.legal-lead { font-size: 1.1875rem; line-height: 1.5; }
.legal-dl { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.legal-dl dt, .legal-dl dd { padding: .7rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.legal-dl dt { color: var(--muted); padding-right: 1.5rem; }
.legal-dl dd { font-weight: 500; }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; } .legal-dl dt { border-bottom: 0; padding-bottom: 0; } }
.legal-table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
.legal-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9375rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--line); }
.legal-table thead th { font-size: .8125rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.legal-table tbody th { font-weight: 680; }
.legal-table code { font-size: .875rem; }
mark.pend { background: var(--masa); color: #4A3A16; padding: .05rem .35rem; border-radius: 4px; font-weight: 600; }
.legal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.5rem 0 1rem; padding: 1.25rem 1.5rem; background: var(--steel); border-radius: 8px; }
.legal-cta p { margin: 0; color: var(--muted); font-size: .9375rem; }
.ethics-links { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ethics-links a { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ethics-links b { display: block; font-size: 1.1875rem; font-weight: 700; font-stretch: 106%; }
.ethics-links span { display: block; margin-top: .2rem; color: var(--muted); }
.ethics-links a:hover b { color: var(--teja-deep); text-decoration: underline; text-underline-offset: .2em; }
.legal-doc a.btn-primary { color: var(--teja-ink); text-decoration: none; }

/* Fondos europeos: emblema en Subvenciones.
   El texto junto al emblema va en una de las tipografías que admite el anexo IX del Reglamento (UE) 2021/1060. */
.eu-fig { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0; font-family: Arial, Helvetica, sans-serif; color: #003399; font-weight: 700; }
.eu-fig img { width: 60px; height: 40px; flex: none; }
/* Logo del Plan de Recuperación, junto al emblema en las ayudas NextGenerationEU (Orden HFP/1030/2021, art. 9) */
.eu-fig { flex-wrap: wrap; row-gap: 1rem; }
.eu-fig img.prtr-logo { width: auto; height: 48px; }

/* Pie */
.site-foot { background: var(--horno); color: var(--horno-ink); padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 2rem; }
.foot-grid img { height: 24px; width: auto; }
.foot-grid address { font-style: normal; margin-top: 1.25rem; color: var(--horno-muted); font-size: .975rem; max-width: 22rem; }
.foot-grid address a { color: var(--horno-ink); }
.foot-col h2 { font-size: .9375rem; font-weight: 640; font-stretch: 100%; letter-spacing: 0; color: var(--horno-muted); margin-bottom: .75rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li + li { margin-top: .45rem; }
.foot-col a { text-decoration: none; color: var(--horno-ink); }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--horno-muted); }
.foot-bottom a { color: var(--horno-ink); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
