:root {
  --paper:#f1f2ed; --white:#fff; --ink:#17251d; --night:#142c22;
  --fern:#256047; --leaf:#e8eee7; --line:#d3ded4;
  --title:Arial,Helvetica,sans-serif;
}
h1,h2,h3 {font-weight:600; letter-spacing:-.045em}
h1 {font-size:clamp(2.5rem,5.5vw,5.1rem)}
h2 {font-size:clamp(1.9rem,3.4vw,3.3rem)}
h3 {font-size:clamp(1.25rem,2.2vw,2rem)}
.top-inner {min-height:76px}
.top {background:#fffffff7}
.btn {padding-inline:1.2rem; border-radius:4px}
.hero-v5 {position:relative; isolation:isolate; display:grid; min-height:calc(100svh - 76px); color:white; background:#152d22}
.hero-image,.hero-v5::after {position:absolute; inset:0; width:100%; height:100%}
.hero-image {object-fit:cover; object-position:center; z-index:-2}
.hero-v5::after {content:""; z-index:-1; background:linear-gradient(90deg,#0a1715bd,#0e1e197a 54%,#0b18192f),linear-gradient(0deg,#0a1715cb,transparent 38%)}
.hero-layout {display:grid; grid-template-rows:1fr auto; align-items:center; position:relative}
.hero-copy {max-width:810px; padding:clamp(54px,11vh,140px) 0; animation:appear .5s ease-out both}
.hero-brand {font-size:clamp(.76rem,1.3vw,1rem); font-weight:700; letter-spacing:.22em; text-transform:uppercase; margin:0 0 1.35rem}
.hero-copy h1 {font-size:clamp(3rem,7.5vw,7.6rem); line-height:.93; max-width:12ch; letter-spacing:-.065em}
.hero-copy .intro {color:#f3f7f1; margin-top:1.35rem; font-size:clamp(1.05rem,2vw,1.4rem)}
.hero-copy .btn.ghost:hover {background:#ffffff28}
.photo-choices {display:flex; flex-wrap:wrap; gap:.65rem 1.4rem; padding:0 0 1.6rem}
.photo-choices button {color:inherit; min-height:44px; font-weight:700; background:transparent; border:0; border-top:2px solid #ffffff75; padding:.45rem .25rem 0; text-align:left}
.photo-choices button[aria-pressed="true"] {border-color:var(--gold); color:var(--gold)}
.photo-choices button:hover {border-color:#fff}
.hero-status {position:absolute; bottom:.1rem; margin:0; font-size:.85rem}
.gateway {background:#164936; padding-block:1rem}
.gate-grid strong {font-size:clamp(1.05rem,1.8vw,1.35rem); font-weight:700; letter-spacing:-.03em}
.subhead {background:linear-gradient(112deg,#d9e6de,#f2f5ef); padding-block:clamp(38px,6vw,82px)}
[data-page="almendro"] .subhead {background:#e9e3d9}
[data-page="obtentores"] .subhead {background:#14382c;color:white}
[data-page="obtentores"] .subhead .kicker::before {background:var(--gold)}
.home-technical {background:#dbe6e1}
.home-technical .feature {background:#173c39}
.feature,.group,.card {border-radius:7px}
.feature-copy {max-width:65ch}
.cards .card {transition:border-color .2s,box-shadow .2s}
.cards .card:hover {border-color:#749886;box-shadow:0 5px 20px #1e37201a}
.production-gallery figure:first-child {border-radius:7px 0 0 7px}
.production-gallery figure:not(:first-child) {border-radius:0 7px 7px 0}
.chart .bar {height:12px}
.chart:is([data-tipologia="ciruela-amarilla"], [data-tipologia="pavia"]) .bar {
  box-shadow:0 0 0 1px #705300;
}
.table th,.table td {padding:.85rem 1rem}
.table tbody tr:hover td {background:#e0ede6!important}
.table tbody th {color:#214a3a}
.partners-band {background:#e5ece7;border-block:1px solid #d4ded7}
.partners-grid {grid-template-columns:1fr;gap:2.1rem}
.partners-grid .logo-wall {grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr)); gap:.6rem;background:transparent}
.logo-wall li {background:#fff; padding:0; border:1px solid #d7e0da;border-radius:6px;overflow:hidden}
.logo-wall li > * {display:grid;place-items:center;min-height:95px;padding:.85rem;text-align:center;font-weight:600}
.logo-wall img,.programme-logo img {width:100%;height:64px;object-fit:contain}
.logo-wall a:hover {background:#edf5ef}
.programme-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:2rem}
.programme {display:grid;grid-template-columns: minmax(135px,.65fr) minmax(0,1fr);background:#e2ece5;border-radius:7px;overflow:hidden;min-height:160px}
.programme-logo {background:#fff;display:grid;place-items:center;padding:clamp(.8rem,2vw,2rem);text-align:center}
.programme-logo img {height:85px}
.programme-copy {display:grid;gap:.65rem;align-content:center;padding:clamp(.85rem,2vw,1.7rem)}
.programme-copy .text-link {justify-self:start}
.programme-copy .stamp {font-size:.72rem;color:#37634d}
.viverall {border-top:1px solid var(--line)}
@media(max-width:900px) {.programme-grid {grid-template-columns:1fr}}
@media(max-width:700px) {.hero-v5 {min-height:calc(100svh - 68px)}.hero-v5::after {background:linear-gradient(90deg,#0a1715bc,#101c1974),linear-gradient(0deg,#0a1715ad,transparent 37%)}.production-gallery figure {border-radius:5px!important}}
@media(max-width:440px) {.hero-copy {padding-block:56px}.photo-choices {gap:.35rem .65rem}.photo-choices button {font-size:.82rem}.programme {grid-template-columns:minmax(96px,.5fr) minmax(0,1fr)}.programme-logo img {height:59px}.partners-grid .logo-wall {grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Both images sit under the fixed text during the crossfade. */
.hero-image-enter {animation:hero-dissolve .85s ease both}
@keyframes hero-dissolve {from{opacity:0}to{opacity:1}}
.hero-v5::after {background:linear-gradient(90deg,#0a1715b8,#0e1e1966 51%,#0b181912),linear-gradient(0deg,#0a1715bb,transparent 34%)}
#hero-toggle {border:1px solid #ffffff96;border-radius:4px;padding:.25rem .7rem}
.hero-v5 :focus-visible {outline-color:var(--gold)}
.hero-status {clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
@media(prefers-reduced-motion:reduce) {.hero-image-enter {animation:none}}

.chart-date {display:block;font-size:.78rem;color:var(--muted)}

.dwarf-feature {margin-bottom: 2rem}
.dwarf-feature .feature-photo {object-fit: contain; background: var(--night)}
.dwarf-gallery {display: grid; grid-template-columns: minmax(0,16fr) minmax(0,9fr); gap: 1rem}
.dwarf-gallery figure {margin: 0}
.dwarf-gallery img {display: block; width: 100%; height: auto; border-radius: 7px}
.dwarf-gallery figcaption {margin-top: .5rem; color: var(--muted)}
@media(max-width:700px) {
  .dwarf-gallery {grid-template-columns: 1fr}
  .dwarf-feature .feature-photo {aspect-ratio: auto}
}
