/* ============================================================
   SECTIONS — layout & components
   ============================================================ */

/* ---------- HEADER ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.hdr.scrolled { border-color: var(--line); box-shadow: 0 2px 20px rgba(29,40,30,0.05); }
.hdr-in { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px; height: 42px; flex: none; display: block;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; font-weight: 800; letter-spacing: 0.02em; font-size: 17px; }
.brand-text small { font-weight: 500; font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-faint); text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--agave); border-radius: 2px; transition: width .25s ease; }
.nav a:hover::after { width: 100%; }
.nav a.nav-accent { color: var(--terra); font-weight: 600; }
.nav a.nav-accent::after { background: var(--terra); }

.hdr-right { display: flex; align-items: center; gap: 18px; }
.hdr-phone { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.hdr-cta { padding: 11px 20px; font-size: 14px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(28px, 5vw, 60px); padding-bottom: 0; overflow: hidden; }
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(62% 55% at 80% 12%, rgba(231,185,85,0.22), transparent 70%),
    radial-gradient(50% 55% at 8% 88%, rgba(47,107,79,0.10), transparent 72%);
}
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 70px);
  align-items: center; padding-bottom: clamp(40px, 5vw, 70px);
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .serif-accent { color: var(--agave); font-size: 1.02em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 38px; }
.hero-stats { list-style: none; margin: 0; padding: 26px 0 0; display: flex; gap: clamp(20px,3vw,40px); border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; gap: 3px; }
.hero-stats b { font-size: clamp(22px,2.4vw,30px); font-weight: 700; letter-spacing: -0.03em; color: var(--agave-deep); }
.hero-stats span { font-size: 12.5px; color: var(--ink-faint); max-width: 14ch; line-height: 1.3; }

.hero-visual { position: relative; }
.hero-img { width: 100%; aspect-ratio: 3/2; border-radius: 26px; box-shadow: var(--shadow-lg); background: var(--surface-2); object-fit: cover; display: block; }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: var(--surface); padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line-soft);
}
.hero-badge b { font-size: 14px; display: block; }
.hero-badge small { font-size: 11.5px; color: var(--ink-faint); }
.hb-mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; font-size: 15px; }
.badge-organic { top: 22px; left: -26px; }
.badge-organic .hb-mark { background: var(--agave-soft); color: var(--agave-deep); }
.badge-leaf { bottom: 26px; right: -24px; }
.badge-leaf .hb-mark { background: var(--gold-soft); color: var(--gold); }

.hero-marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 26px; padding: 15px 0; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft); text-transform: uppercase; }
.marquee-track span:nth-child(even) { color: var(--gold-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- generic block ---------- */
.block { padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--line); }
#products { border-top: 0; }
.block-head { max-width: 720px; margin-bottom: clamp(36px,5vw,58px); }
.block-head .eyebrow { margin-bottom: 18px; }
.block-head h2 { margin-bottom: 18px; }

/* ---------- PRODUCTS ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,28px); }
.prod-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-img { width: 100%; aspect-ratio: 4/3; background: radial-gradient(70% 70% at 50% 46%, #fffdf8 0%, var(--surface-2) 100%); border: none; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; display: block; }
.prod-body { padding: 24px 24px 28px; }
.prod-tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); padding: 5px 11px; border-radius: 100px; margin-bottom: 14px; }
.prod-body h3 { font-size: 24px; margin-bottom: 10px; }
.prod-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 18px; }
.prod-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--agave); }
.prod-link:hover { color: var(--agave-deep); }

/* ---------- APPLICATIONS ---------- */
.apply { background: var(--bg-2); }
.apply-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.apply-cell { background: var(--surface); border-radius: var(--r-md); padding: 24px 22px; border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.apply-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--agave-line); }
.ac-img { width: 54px; height: 54px; margin-bottom: 14px; display: block; transition: transform .25s ease; }
.apply-cell:hover .ac-img { transform: scale(1.06) rotate(-3deg); }
.apply-cell b { font-size: 16px; }
.apply-cell small { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- ADVANTAGES ---------- */
.adv-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,5vw,70px); align-items: start; }
.adv-left .eyebrow { margin-bottom: 18px; }
.adv-left h2 { margin-bottom: 20px; }
.adv-left .serif-accent { color: var(--terra); }
.adv-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag-line { font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--agave-line); color: var(--agave-deep); background: var(--agave-soft); }
.adv-right { display: grid; gap: 12px; }
.why-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); padding: 22px 24px; border-radius: var(--r-md); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.why-num { font-family: var(--font-serif); font-style: italic; font-size: 30px; font-weight: 600; color: var(--gold); line-height: 1; min-width: 40px; }
.why-card b { font-size: 17px; display: block; margin-bottom: 5px; }
.why-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- CARLOS / CHAT ---------- */
.carlos { background: var(--agave-deep); color: #f3f0e6; padding: clamp(64px,8vw,120px) 0; position: relative; overflow: hidden; }
.carlos::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 55% at 85% 12%, rgba(189,138,62,0.18), transparent 70%), radial-gradient(45% 50% at 8% 95%, rgba(143,184,154,0.16), transparent 70%); pointer-events: none; }
.carlos-in { position: relative; display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(26px,4vw,56px); align-items: stretch; }

.carlos-profile { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.carlos-photo { width: 100%; aspect-ratio: 355 / 158; margin-bottom: 20px; background: #285340; border-radius: 20px; object-fit: cover; display: block; }
.cp-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #a9d8b6; }
.cp-status i { width: 8px; height: 8px; border-radius: 50%; background: #6ee49a; box-shadow: 0 0 0 0 rgba(110,228,154,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(110,228,154,0); } 100% { box-shadow: 0 0 0 0 rgba(110,228,154,0); } }
.cp-name h3 { font-size: 26px; margin: 10px 0 4px; color: #fff; }
.cp-role { font-size: 14px; color: #c8d8c9; }
.cp-bio { font-size: 14px; line-height: 1.55; color: rgba(243,240,230,0.82); margin: 18px 0; }
.cp-facts { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: flex; gap: 26px; border-top: 1px solid rgba(255,255,255,0.12); }
.cp-facts b { display: block; font-size: 18px; color: var(--gold-soft); letter-spacing: -0.02em; }
.cp-facts span { font-size: 12px; color: #b7c8b8; }

.chat { background: var(--surface); border-radius: var(--r-lg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; min-height: 540px; }
.chat-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat-id { display: flex; align-items: center; gap: 12px; }
.chat-ava { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--agave); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; letter-spacing: 0.02em; }
.chat-id b { font-size: 15px; color: var(--ink); display: block; }
.chat-id small { font-size: 12.5px; color: var(--ink-faint); }
.chat-reset { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); padding: 7px 13px; border-radius: 100px; transition: .2s; }
.chat-reset:hover { background: var(--bg); color: var(--ink); }

.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--agave-soft); color: #1c3327; border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--terra); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot strong { color: var(--agave-deep); }
.msg-typing { display: inline-flex; gap: 4px; align-self: flex-start; background: var(--agave-soft); padding: 15px 18px; border-radius: 16px; border-bottom-left-radius: 5px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--agave); opacity: .5; animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2){ animation-delay: .2s; } .msg-typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-4px); opacity:1 } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 4px; }
.sug { font-size: 13px; font-weight: 500; color: var(--agave-deep); background: var(--surface); border: 1px solid var(--agave-line); padding: 8px 13px; border-radius: 100px; transition: .2s; }
.sug:hover { background: var(--agave-soft); transform: translateY(-1px); }

.chat-form { display: flex; gap: 10px; padding: 16px 20px 8px; }
.chat-form input { flex: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 100px; padding: 14px 18px; font-size: 14.5px; font-family: inherit; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.chat-form input:focus { border-color: var(--agave); box-shadow: 0 0 0 3px rgba(47,107,79,0.12); }
.chat-send { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--agave); color: #fff; font-size: 20px; display: grid; place-items: center; transition: .2s; }
.chat-send:hover { background: var(--agave-deep); transform: translateY(-1px); }
.chat-send:disabled { opacity: .5; cursor: default; transform: none; }
.chat-note { font-size: 11.5px; color: var(--ink-faint); padding: 0 22px 16px; }

/* ---------- TRUST ---------- */
.trust-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.trust-card .eyebrow { margin-bottom: 16px; }
.trust-card h2 { margin-bottom: 16px; }
.cert-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.cert-chip { font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.trust-photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3.5; }
.trust-photo img { width: 100%; height: 100%; object-fit: cover; }
.trust-photo-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.trust-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 24px; display: flex; flex-direction: column; gap: 7px; color: #fff; background: linear-gradient(transparent, rgba(18,32,24,0.18) 40%, rgba(18,32,24,0.82)); }
.tp-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #cfe3d4; }
.trust-photo figcaption b { font-size: 19px; letter-spacing: -0.01em; }

/* ---------- CONTACT ---------- */
.contact { background: var(--agave); color: #fff; padding: clamp(64px,8vw,120px) 0; }
.contact-in { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(30px,5vw,68px); align-items: start; }
.contact-copy h2 { margin: 16px 0; color: #fff; }
.contact-list { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.contact-list span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }
.contact-list a, .contact-list p { font-size: 17px; font-weight: 600; color: #fff; }
.contact-soc { display: flex; flex-wrap: wrap; gap: 12px; }
.soc { padding: 11px 20px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.3); font-size: 14px; font-weight: 600; transition: .2s; }
.soc:hover { background: rgba(255,255,255,0.12); }

.contact-form { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px,3vw,38px); box-shadow: var(--shadow-lg); }
.amo-embed { min-height: 220px; align-self: start; }
.amo-embed noscript { display: block; color: rgba(255,255,255,0.88); font-size: 14.5px; line-height: 1.5; }
.amo-embed noscript a { text-decoration: underline; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field i { color: var(--terra); font-style: normal; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--agave); box-shadow: 0 0 0 3px rgba(47,107,79,0.12); background: var(--surface); }
.field input.invalid, .field select.invalid { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(192,87,58,0.12); }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 20px; cursor: pointer; }
.check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--agave); flex: none; }
.check span { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.cf-submit { width: 100%; }
.cf-status { font-size: 14px; font-weight: 600; margin-top: 14px; text-align: center; min-height: 20px; }
.cf-status.ok { color: var(--agave); }
.cf-status.err { color: var(--terra); }

/* ---------- FOOTER ---------- */
.ftr { background: var(--ink); color: #cdcec4; padding: clamp(50px,6vw,80px) 0 40px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; }
.ftr-brand .brand-mark { width: 48px; height: 48px; }
.ftr-brand .brand-text { color: #fff; margin: 14px 0; }
.ftr-brand .brand-text small { color: #8b8d80; }
.ftr-legal { font-size: 13px; color: #8b8d80; line-height: 1.6; }
.ftr-col { display: flex; flex-direction: column; gap: 11px; }
.ftr-col b { color: #fff; font-size: 14px; margin-bottom: 5px; }
.ftr-col a, .ftr-col p { font-size: 13.5px; color: #b3b4aa; line-height: 1.5; transition: color .2s; }
.ftr-col a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav, .hdr-phone { display: none; }
  .burger { display: flex; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 8px auto 0; }
  .badge-organic { left: 0; } .badge-leaf { right: 0; }
  .prod-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .apply-grid { grid-template-columns: repeat(2,1fr); }
  .adv-in, .carlos-in, .trust-in, .contact-in { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .apply-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; }
  .hdr-cta { display: none; }
}

/* mobile nav drawer */
.nav.open { display: flex; position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); padding: 10px var(--pad) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
.nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- FLOATING CONTACT (FAB) ---------- */
.fab { position: fixed; right: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-menu { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96); transform-origin: bottom right; transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.fab.open .fab-menu { opacity: 1; visibility: visible; transform: none; }
.fab-item { display: inline-flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 7px 18px 7px 7px; box-shadow: var(--shadow-md); font-size: 14.5px; font-weight: 600; color: var(--ink); transition: transform .18s ease, box-shadow .2s; }
.fab-item:hover { transform: translateX(-3px); box-shadow: var(--shadow-lg); }
.fab-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fab-ic.ph { background: var(--agave); }
.fab-ic.wa { background: #25d366; }
.fab-ic.tg { background: #2aabee; }
.fab-ic.mx { background: #5b6cf0; font-weight: 800; font-size: 12px; letter-spacing: .01em; }
.fab-ic svg { width: 20px; height: 20px; display: block; fill: #fff; }
.fab-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--agave); color: #fff; box-shadow: 0 8px 24px rgba(31,74,55,.34); display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, background .2s; position: relative; }
.fab-btn:hover { background: var(--agave-deep); transform: translateY(-2px); }
.fab-btn svg { width: 26px; height: 26px; fill: #fff; grid-area: 1 / 1; transition: opacity .25s, transform .3s; }
.fab-btn .ic-close { opacity: 0; transform: rotate(-90deg); }
.fab.open .fab-btn { background: var(--agave-deep); }
.fab.open .fab-btn .ic-open { opacity: 0; transform: rotate(90deg); }
.fab.open .fab-btn .ic-close { opacity: 1; transform: rotate(0); }
.fab-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(47,107,79,.5); animation: fabpulse 2.6s infinite; pointer-events: none; }
.fab.open .fab-pulse { animation: none; }
@keyframes fabpulse { 70% { box-shadow: 0 0 0 14px rgba(47,107,79,0); } 100% { box-shadow: 0 0 0 0 rgba(47,107,79,0); } }
@media (max-width: 560px) { .fab-btn { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .fab-pulse { animation: none; } }
