/* ==========================================================
   nav.css — navbar "liquid glass" (todas las páginas)
   Cargar al final. Usa clases propias (lg-*) para no chocar con estilos viejos.
   ========================================================== */
.topbar { display: none !important; }

header.lg {
  position: fixed; z-index: 900; top: 14px; left: 0; right: 0;
  display: flex; justify-content: center; padding: 0 14px;
  pointer-events: none;
  font-family: "Outfit", system-ui, sans-serif;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
header.lg.is-hidden:not(.nav-open) { transform: translateY(-140%); opacity: 0; }
header.lg *, header.lg *::before, header.lg *::after { box-sizing: border-box; }

.lg-bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 6px;
  width: 100%; max-width: 1080px; height: 64px; padding: 0 8px 0 8px;
  border-radius: 999px; isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, rgba(74, 170, 70, .90) 0%, rgba(50, 138, 50, .93) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 18px 40px -18px rgba(20, 70, 22, .55),
    0 2px 6px rgba(4, 28, 14, .12),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    inset 0 0 0 1px rgba(255, 255, 255, .10);
  transition: box-shadow .4s ease, background .4s ease, height .4s ease;
}
/* brillo especular del vidrio */
.lg-bar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 140% at 12% -40%, rgba(255, 255, 255, .26), transparent 46%),
    radial-gradient(80% 120% at 92% 140%, rgba(108, 194, 74, .22), transparent 55%);
}
.lg-bar::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, .35) 30%, transparent 52%) top / 100% 1px no-repeat;
  opacity: .7;
}
header.lg.is-scrolled .lg-bar { background: linear-gradient(180deg, rgba(70, 164, 66, .93) 0%, rgba(46, 132, 47, .95) 100%); }

/* ---- logo ---- */
.lg-brand { display: flex; align-items: center; gap: 10px; padding-right: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.lg-logo {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 14px -6px rgba(0, 0, 0, .45);
  transition: transform .7s cubic-bezier(.22, 1.35, .36, 1), box-shadow .5s ease;
  will-change: transform;
}
.lg-logo img { width: 42px; height: 42px; border-radius: 50%; display: block; transition: transform .9s cubic-bezier(.22, 1.35, .36, 1); will-change: transform; }
.lg-logo::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(108, 194, 74, .0);
  transform: scale(.85); opacity: 0;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, border-color .5s ease;
}
.lg-brand:hover .lg-logo { transform: scale(1.06); box-shadow: inset 0 0 0 1px #fff, 0 10px 22px -8px rgba(108, 194, 74, .65); }
.lg-brand:hover .lg-logo img { transform: rotate(-14deg); }
.lg-brand:hover .lg-logo::after { transform: scale(1); opacity: 1; border-color: rgba(108, 194, 74, .7); }
.lg-name { display: flex; flex-direction: column; line-height: 1; }
.lg-name strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.lg-name small { margin-top: 4px; font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }

/* ---- links ---- */
.lg-links { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.lg-links a {
  position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(10, 50, 15, .25);
  padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .005em;
  color: rgba(255, 255, 255, .88); text-decoration: none; white-space: nowrap;
  transition: color .3s ease;
}
.lg-links a:hover, .lg-links a.active { color: #fff; }
/* gota de vidrio que se desliza entre links */
.lg-blob {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 40px; width: 0; margin-top: -20px;
  border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 6px 16px -8px rgba(0, 0, 0, .4);
  transition: transform .55s cubic-bezier(.34, 1.36, .5, 1), width .55s cubic-bezier(.34, 1.36, .5, 1), opacity .3s ease;
  will-change: transform, width;
}
.lg-blob.on { opacity: 1; }
/* al sacar el mouse, la gota vuelve a su lugar más despacio */
.lg-blob.back { transition: transform 1.1s cubic-bezier(.25, 1.15, .35, 1), width 1.1s cubic-bezier(.25, 1.15, .35, 1), opacity .6s ease; }

/* ---- botón derecho (WhatsApp) ---- */
.lg-cta {
  color: #2f8530 !important;
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 48px; padding: 0 18px 0 8px; border-radius: 999px;
  background: #fff; color: #0c3a21; text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(12, 58, 33, .08), 0 8px 18px -10px rgba(0, 0, 0, .5);
  transition: transform .45s cubic-bezier(.34, 1.36, .5, 1), box-shadow .4s ease;
}
.lg-cta .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #4aaa46, #2f8530); color: #fff; }
.lg-cta .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-cta:hover { transform: translateY(-1px) scale(1.02); box-shadow: inset 0 -2px 0 rgba(12, 58, 33, .08), 0 14px 26px -12px rgba(108, 194, 74, .8); }

/* ---- botón menú (celular) ---- */
.lg-burger {
  display: none; position: relative; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background .3s ease, transform .4s cubic-bezier(.34, 1.36, .5, 1);
}
.lg-burger:active { transform: scale(.94); }
.lg-burger i { position: absolute; left: 15px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s cubic-bezier(.34, 1.36, .5, 1), width .3s ease; }
.lg-burger i:first-child { top: 19px; }
.lg-burger i:last-child { top: 27px; width: 12px; }
header.lg.nav-open .lg-burger { background: rgba(255, 255, 255, .22); }
header.lg.nav-open .lg-burger i:first-child { transform: translateY(4px) rotate(45deg); }
header.lg.nav-open .lg-burger i:last-child { width: 18px; transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1120px) {
  .lg-links a { padding: 10px 11px; font-size: 14px; }
  .lg-cta span { display: none; }
  .lg-cta { padding: 0 7px; }
}
@media (max-width: 960px) {
  .lg-bar { height: 60px; padding: 0 6px; justify-content: space-between; }
  .lg-burger { display: block; }
  .lg-cta { order: 2; margin-left: auto; height: 46px; }
  .lg-burger { order: 3; }
  .lg-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(66, 160, 63, .98), rgba(44, 128, 45, .99));
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 30px 60px -24px rgba(4, 28, 14, .6), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: top center;
    transition: opacity .3s ease, transform .5s cubic-bezier(.34, 1.3, .5, 1), visibility 0s linear .5s;
  }
  header.lg.nav-open .lg-links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .5s cubic-bezier(.34, 1.3, .5, 1), visibility 0s; }
  .lg-links a { padding: 14px 18px; font-size: 16.5px; border-radius: 18px; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.3, .5, 1), background .25s ease, color .25s ease; }
  header.lg.nav-open .lg-links a { opacity: 1; transform: none; }
  header.lg.nav-open .lg-links a:nth-of-type(2) { transition-delay: .03s; }
  header.lg.nav-open .lg-links a:nth-of-type(3) { transition-delay: .06s; }
  header.lg.nav-open .lg-links a:nth-of-type(4) { transition-delay: .09s; }
  header.lg.nav-open .lg-links a:nth-of-type(5) { transition-delay: .12s; }
  header.lg.nav-open .lg-links a:nth-of-type(6) { transition-delay: .15s; }
  header.lg.nav-open .lg-links a:nth-of-type(7) { transition-delay: .18s; }
  .lg-links a:hover, .lg-links a.active { background: rgba(255, 255, 255, .12); }
  .lg-blob { display: none; }
}
@media (max-width: 420px) {
  header.lg { top: 10px; padding: 0 10px; }
  .lg-name strong { font-size: 15px; }
  .lg-name small { letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  header.lg, .lg-blob, .lg-logo, .lg-logo img, .lg-links, .lg-links a { transition: none !important; }
}

/* ---- sin barritas antes de los títulos chicos ---- */
.hm-eyebrow::before, .v-eyebrow::before, .eyebrow::before, .eyebrow:before { content: none !important; display: none !important; }

/* ---- botones verde oscuro → verde de marca (todas las páginas) ---- */
.v-btn:not(.ghost):not(.lime) { background: linear-gradient(180deg, #45a843, #2f8530) !important; color: #fff !important; }
.v-btn:not(.ghost):not(.lime):hover { background: linear-gradient(180deg, #4db44a, #348f35) !important; }

/* Barra de scroll de la página: estándar (la dibuja el navegador en su propio hilo).
   La versión con ::-webkit-scrollbar se pinta en el hilo principal y hacía que
   arrastrar la barrita laguee aunque la ruedita anduviera bien. */
html { scrollbar-color: #3a9a3e #eef3ee; scrollbar-width: auto; }
@media (prefers-color-scheme: dark) { html::after { transform: translateZ(0); } }
