/* Layout concept: a sunny pasture opens the page and doubles as navigation;
   below it, calm white bands with one colour per species; sun-yellow is reserved for "Pedir presupuesto". */
:root {
  --ink: #173A2A;          /* text, outlines */
  --ink-soft: #4E6A5B;     /* secondary text */
  --paper: #FFFFFF;
  --meadow: #F2F9EC;       /* soft green band */
  --grass: #2E9E4F;
  --forest: #0F3A27;       /* dark band, footer */
  --sun: #FFC83D;          /* primary action */
  --sun-deep: #F2A900;
  --sky: #CDEBFF;
  --line: #D9E8D6;
  --on-dark: #EAF6E4;
  --on-dark-soft: #A9C7B2;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-0: .875rem; --fs-1: 1rem; --fs-2: 1.125rem; --fs-3: 1.375rem;
  --fs-4: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-5: clamp(2.2rem, 1.4rem + 3.6vw, 4.25rem);
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --wrap: 1200px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-1); line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: var(--fs-5); font-weight: 800; }
h2 { font-size: var(--fs-4); font-weight: 800; }
h3 { font-size: var(--fs-3); font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-meadow { background: var(--meadow); }
.band-dark { background: var(--forest); color: var(--on-dark); }
.band-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.band-head p { color: var(--ink-soft); font-size: var(--fs-2); }
.band-dark .band-head p { color: var(--on-dark-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2.5px solid var(--ink);
  font-weight: 700; text-decoration: none; cursor: pointer; background: var(--paper); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-sun { background: var(--sun); }
.btn-ghost { border-color: transparent; background: transparent; padding-inline: 10px; }
.btn-ghost:hover { box-shadow: none; text-decoration: underline; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
.band-dark .btn { border-color: var(--on-dark); }
.band-dark .btn:hover { box-shadow: 0 4px 0 var(--on-dark); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.logo-mark { width: 38px; height: 38px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  border: 0; background: none; text-decoration: none; font-weight: 600; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--meadow); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.has-mega { position: relative; }
.mega {
  position: absolute; left: -12px; top: calc(100% + 10px); width: min(560px, 90vw);
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 8px 0 var(--ink); padding: 14px; display: none;
  grid-template-columns: 1fr 1fr; gap: 6px;
}
.mega.open { display: grid; }
.mega a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-m); text-decoration: none; }
.mega a:hover { background: var(--tint, var(--meadow)); }
.mega .ico { width: 52px; height: 46px; flex: none; border-radius: 14px; background: var(--tint); display: grid; place-items: center; }
.mega .ico svg { width: 44px; height: 38px; }
.mega strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.mega small { color: var(--ink-soft); font-size: var(--fs-0); line-height: 1.3; display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: var(--fs-0); cursor: pointer; color: var(--ink-soft); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.head-phone { font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; padding-inline: 6px; }
.quote-count[data-n="0"] { display: none; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #E9F7FF 62%, #F4FBFF 100%); position: relative; overflow: hidden; }
.hero-copy { padding-block: clamp(36px, 6vw, 72px) 0; display: grid; gap: 20px; max-width: 760px; position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.4rem); letter-spacing: -.035em; line-height: .98; }
.hero-copy p { font-size: var(--fs-2); max-width: 560px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scene { position: relative; height: clamp(240px, 35.4vw, 820px); margin-top: clamp(-70px, -4vw, -12px); }
.landscape { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-sun { position: absolute; top: 4%; right: 8%; width: clamp(80px, 11vw, 190px); aspect-ratio: 1; border-radius: 50%; background: #FFD43B; box-shadow: 0 0 0 clamp(14px, 2vw, 34px) rgba(255,212,59,.25); }
.hero-animal { cursor: pointer; }
.hero-animal .bob { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3,1.6,.5,1); animation: pop .7s cubic-bezier(.2,1.5,.4,1) backwards; animation-delay: var(--d); }
.hero-animal:hover .bob, .hero-animal:focus-visible .bob { transform: translateY(-10px) rotate(-3deg); }
.hero-animal:focus-visible { outline: none; }
.hero-animal:focus-visible .hero-label rect { stroke: var(--grass); stroke-width: 4; }
.hero-label { transition: transform .2s; }
@keyframes pop { from { transform: translateY(26px) scale(.55); } }
.hero-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; background: rgba(255,255,255,.92); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: var(--fs-0); white-space: nowrap; }

/* Species tiles */
.species-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sp-tile {
  --c: var(--grass); background: var(--tint); border: 2.5px solid var(--ink); border-radius: var(--r-l);
  padding: 18px 18px 20px; text-decoration: none; display: grid; gap: 6px; align-content: start;
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.sp-tile:hover { transform: translateY(-4px); box-shadow: 0 6px 0 var(--ink); }
.sp-tile svg { width: 100%; height: 110px; margin-bottom: 6px; }
.sp-tile strong { font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.sp-tile span { color: var(--ink-soft); font-size: var(--fs-0); line-height: 1.35; }
.sp-tile .count { position: absolute; top: 14px; right: 14px; background: var(--c); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 2px 10px; }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.problem { padding: 24px 24px 24px 0; border-bottom: 1.5px solid var(--line); display: grid; gap: 8px; align-content: start; }
.problem:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1.5px solid var(--line); }
.problem h3 { font-size: 1.25rem; display: flex; gap: 10px; align-items: center; }
.problem .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); flex: none; }
.problem p { color: var(--ink-soft); }
.problem a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }

/* Product cards */
.prod-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.prod-card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-l); padding: 18px;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; scroll-snap-align: start; min-width: 0;
  transition: border-color .2s;
}
.prod-card:hover { border-color: var(--ink); }
.prod-card .pack-wrap { background: var(--tint); border-radius: var(--r-m); display: grid; place-items: center; padding: 14px 0 6px; text-decoration: none; }
.prod-card .pack { width: 120px; height: 150px; }
.prod-card h3 { font-size: 1.3rem; }
.prod-card h3 a { text-decoration: none; }
.prod-card p { color: var(--ink-soft); font-size: .95rem; }
.prod-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px 3px 4px; background: var(--tint); }
.chip svg { width: 22px; height: 18px; }
.chip-plain { padding: 3px 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: st; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(st); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); border: 2.5px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.4rem;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-soft); }

/* Science band */
.science { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.science h2 { color: #fff; }
.science-text { display: grid; gap: 18px; }
.science-text p { color: var(--on-dark-soft); font-size: var(--fs-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(255,255,255,.12); border-radius: var(--r-l); overflow: hidden; }
.fact { background: var(--forest); padding: 22px; display: grid; gap: 2px; }
.fact b { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #B5E57A; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--on-dark-soft); font-size: var(--fs-0); }
.cert-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cert { border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: var(--fs-0); }

/* Docs */
.doc-list { display: grid; border-top: 2px solid var(--ink); }
.doc { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.doc-ico { width: 48px; height: 56px; border: 2.5px solid var(--ink); border-radius: 8px 16px 8px 8px; display: grid; place-items: end center; padding-bottom: 6px; font-size: .62rem; font-weight: 800; background: var(--paper); }
.doc-ico[data-t="ficha"] { background: #E3F5E6; } .doc-ico[data-t="estudio"] { background: #E1EDFF; }
.doc-ico[data-t="certificado"] { background: #FFF0D9; } .doc-ico[data-t="catalogo"] { background: #FFE6EC; }
.doc-title { font-weight: 700; display: block; }
.doc-meta { color: var(--ink-soft); font-size: var(--fs-0); }
.doc-actions { display: flex; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; align-items: end; }
.field-inline { display: grid; gap: 4px; font-size: var(--fs-0); font-weight: 700; }
.field-inline select { min-height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--paper); min-width: 170px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 2px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--meadow); display: grid; place-items: center; font-size: 1.3rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--sun); }
.faq details p { padding: 0 20px 20px; color: var(--ink-soft); max-width: 70ch; }

/* Quote band and forms */
.quote-band { background: var(--sun); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-side { display: grid; gap: 16px; }
.quote-side p { font-size: var(--fs-2); }
.contact-lines { display: grid; gap: 10px; margin-top: 8px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-lines svg { width: 22px; height: 22px; flex: none; }
.form { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-l); padding: clamp(18px, 3vw, 30px); display: grid; gap: 14px; box-shadow: 0 8px 0 var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: var(--fs-0); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border: 2px solid #C9D9C7; border-radius: 12px; padding: 10px 14px; background: #FCFEFB;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--grass); outline: none; box-shadow: 0 0 0 3px rgba(46,158,79,.2); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #D2402F; }
.err { color: #B4271A; font-size: .82rem; font-weight: 600; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-0); color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--grass); flex: none; }
.check a { color: var(--ink); }
.check.invalid { color: #B4271A; }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 160px; overflow: auto; padding: 4px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: inline-block; padding: 6px 12px; border: 2px solid #C9D9C7; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick input:focus-visible + span { outline: 3px solid var(--grass); outline-offset: 2px; }
.form-note { font-size: .8rem; color: var(--ink-soft); }
.success { display: grid; gap: 12px; justify-items: start; padding: 10px 0; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--grass); display: grid; place-items: center; border: 2.5px solid var(--ink); }
.success .tick svg { width: 32px; height: 32px; }
.demo-note { background: var(--meadow); border-radius: 12px; padding: 10px 14px; font-size: .85rem; color: var(--ink-soft); }

/* Species page */
.sp-hero { background: var(--tint); border-bottom: 2.5px solid var(--ink); overflow: hidden; }
.sp-hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding-block: clamp(28px, 5vw, 56px); }
.sp-hero-in > div { display: grid; gap: 16px; min-width: 0; }
.sp-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.sp-hero p { font-size: var(--fs-2); color: var(--ink-soft); max-width: 52ch; }
.sp-hero .big-art { width: 100%; max-width: 440px; justify-self: center; filter: drop-shadow(0 10px 0 rgba(23,58,42,.08)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-0); color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 700; }
.filter-bar { display: grid; gap: 12px; margin-bottom: 26px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-group b { font-size: var(--fs-0); margin-right: 4px; }
.fbtn { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; font-size: .9rem; }
.fbtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 28px; border: 2px dashed var(--line); border-radius: var(--r-l); text-align: center; color: var(--ink-soft); display: grid; gap: 12px; justify-items: center; }

/* Product page */
.pd-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(24px, 4vw, 48px); }
.pd-visual { background: var(--tint); border: 2.5px solid var(--ink); border-radius: var(--r-l); display: grid; place-items: center; padding: 32px 0; position: relative; }
.pd-visual .pack { width: min(260px, 70%); height: auto; }
.pd-visual .peek { position: absolute; right: 14px; bottom: 10px; width: 110px; }
.pd-info { display: grid; gap: 16px; min-width: 0; }
.pd-info h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }
.pd-info .lead { font-size: var(--fs-2); color: var(--ink-soft); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.points li::before { content: ""; width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 26px; scrollbar-width: none; }
.tab { border: 0; background: none; padding: 12px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; border-bottom: 4px solid transparent; margin-bottom: -2px; color: var(--ink-soft); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--grass); }
.tab-panel { max-width: 820px; display: grid; gap: 16px; }
.tab-panel p { font-size: 1.05rem; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 12px 10px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--ink-soft); font-weight: 600; }
.calc { background: var(--meadow); border-radius: var(--r-l); padding: 22px; display: grid; gap: 16px; }
.calc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.calc-out b { font-family: var(--display); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* Company / contact */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.prose { display: grid; gap: 14px; max-width: 64ch; }
.prose p { font-size: 1.05rem; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 3px solid var(--grass); }
.timeline li { padding: 0 0 22px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--ink); }
.timeline b { font-family: var(--display); font-size: 1.3rem; display: block; }
.timeline span { color: var(--ink-soft); }
.map-ph { aspect-ratio: 4 / 3; max-width: 100%; border: 2.5px solid var(--ink); border-radius: var(--r-l); background: var(--meadow); position: relative; overflow: hidden; display: grid; place-items: center; }
.map-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-ph a { position: relative; z-index: 1; }
.page-head { padding-block: clamp(32px, 5vw, 60px) 0; display: grid; gap: 14px; }
.page-head p { font-size: var(--fs-2); color: var(--ink-soft); max-width: 60ch; }

/* Footer */
.site-footer { background: var(--forest); color: var(--on-dark); position: relative; margin-top: 0; }
.footer-wave { display: block; width: 100%; height: 48px; background: var(--paper); }
.footer-wave.on-meadow { background: var(--meadow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 40px 28px; }
.footer-grid h4 { font-size: 1.05rem; margin-bottom: 12px; color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--on-dark-soft); text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: var(--on-dark-soft); font-size: var(--fs-0); max-width: 34ch; }
.news { display: grid; gap: 8px; }
.news-row { display: flex; gap: 8px; }
.news input[type=email] { flex: 1; min-width: 0; min-height: 46px; border-radius: 999px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; padding: 8px 16px; }
.news input::placeholder { color: var(--on-dark-soft); }
.news .check { color: var(--on-dark-soft); font-size: .78rem; }
.news .check a { color: var(--on-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 18px calc(18px + var(--bar-h, 0px)); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .82rem; color: var(--on-dark-soft); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--on-dark-soft); }

/* Floating + mobile bar */
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; border: 2.5px solid var(--ink);
  display: grid; place-items: center; box-shadow: 0 5px 0 var(--ink); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 30px; height: 30px; }
.mbar { display: none; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
.modal::backdrop { background: rgba(15,58,39,.55); backdrop-filter: blur(3px); }
.modal .form { max-height: calc(100dvh - 40px); overflow: auto; box-shadow: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1.4rem; line-height: 1; flex: none; }

/* Toast + cookies */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--bar-h, 0px) + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 90; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cookie {
  position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + var(--bar-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: min(440px, calc(100vw - 32px)); background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-l);
  padding: 20px; display: grid; gap: 12px; box-shadow: 0 6px 0 var(--ink);
}
.cookie p { font-size: .9rem; color: var(--ink-soft); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-prefs { display: grid; gap: 8px; }

/* Responsive */
@media (max-width: 1080px) {
  .species-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .head-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: inline-grid; place-items: center; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: calc(72px + env(safe-area-inset-top, 0px)); bottom: 0; margin: 0;
    background: var(--paper); flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px var(--gut-r) 120px var(--gut-l); overflow-y: auto; display: none; z-index: 49;
  }
  .main-nav.open { display: flex; }
  .nav-link { font-size: 1.15rem; padding: 14px 12px; justify-content: space-between; }
  .mega { position: static; width: 100%; box-shadow: none; border-width: 2px; grid-template-columns: 1fr; margin: 4px 0 10px; }
  .header-actions .btn-sun .lbl { display: none; }
  .problems { grid-template-columns: 1fr 1fr; }
  .problem:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .problem:nth-child(even) { padding-left: 20px; border-left: 1.5px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .science, .quote-grid, .two-col, .pd-top, .sp-hero-in { grid-template-columns: 1fr; }
  .sp-hero .big-art { max-width: 300px; order: -1; }
}
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .header-in { min-height: 64px; gap: 10px; }
  .main-nav { top: calc(64px + env(safe-area-inset-top, 0px)); }
  .logo { font-size: 1.25rem; }
  .logo-mark { width: 32px; height: 32px; }
  .header-actions .btn-sun { display: none; }
  .hero-label, .hero-hint { display: none; }
  .species-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .species-grid .sp-tile:last-child { grid-column: 1 / -1; }
  .sp-tile { padding: 14px; }
  .sp-tile svg { height: 84px; }
  .sp-tile strong { font-size: 1.15rem; }
  .problems { grid-template-columns: 1fr; }
  .problem, .problem:nth-child(even) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .form-row, .calc-row { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 40px minmax(0, 1fr); }
  .doc-ico { width: 40px; height: 48px; }
  .doc-actions { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 8px var(--gut-r) calc(8px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
    background: var(--paper); border-top: 2px solid var(--ink);
  }
  .mbar a, .mbar button { min-height: 48px; border-radius: 14px; border: 2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; text-decoration: none; background: var(--paper); font-size: .9rem; cursor: pointer; }
  .mbar svg { width: 20px; height: 20px; }
  .mbar .wa { background: #25D366; }
  .mbar .q { background: var(--sun); }
  .prod-row { grid-auto-columns: 78%; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- WordPress theme additions ---------- */
.lang a { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: var(--fs-0); color: var(--ink-soft); text-decoration: none; line-height: 1.5; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang a:hover:not([aria-current]) { background: var(--meadow); }
.mega a[aria-current="page"] { background: var(--tint, var(--meadow)); }
.link-btn { color: inherit; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eb-ts:not(:empty) { min-height: 65px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--on-dark); }
.socials a:hover { background: rgba(255,255,255,.18); }
.socials svg { width: 20px; height: 20px; }
.map-ph { gap: 10px; align-content: center; }
.map-ph .map-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.map-ph .form-note { position: relative; z-index: 1; background: rgba(255,255,255,.85); padding: 2px 10px; border-radius: 999px; margin: 0; }
.map-ph iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
img.pack { object-fit: contain; }
.prod-card img.pack { width: 140px; height: 150px; }
.pd-visual img.pack { width: min(320px, 80%); height: auto; max-height: 360px; }
img.sp-icon { object-fit: contain; }
.chip img.sp-icon { width: 22px; height: 18px; }
.mega .ico img { width: 44px; height: 38px; }
.sp-tile img.sp-icon { width: 100%; height: 110px; margin-bottom: 6px; }
.sp-hero img.big-art { max-height: 360px; }
.faq details > div { padding: 0 20px 20px; color: var(--ink-soft); max-width: 70ch; }
.faq details > div p { padding: 0; }
.prose table, .dosage table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink-soft); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.tab-panel.prose { max-width: none; }
.form .err:empty { display: none; }
.form-error { background: #FDECEC; color: #8A1F1F; border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 640px) {
  .prose table, .dosage table { display: block; overflow-x: auto; }
}
.site-footer .news .check a { color: var(--grass); }
