:root {
  --green-dark: #14532d;
  --green: #2f6b3f;
  --green-mid: #4d8b57;
  --green-light: #a9cf8c;
  --cream: #fbfaf6;
  --white: #ffffff;
  --ink: #182319;
  --muted: #5c6b60;
  --border: #e3e6de;
  --shadow: 0 10px 30px -12px rgba(20, 60, 35, 0.18);
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--green-dark); text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { height: 30px; width: auto; }
.brand-mark.small { height: 22px; }

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--green-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--green-dark);
  border: 1.5px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-icon:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 85% 0%, rgba(169, 207, 140, 0.25), transparent 55%),
    var(--cream);
}

.hero-inner { max-width: 760px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  color: var(--green-dark);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 620px;
}

.hero-sub strong { color: var(--ink); }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }

.section-lead {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 40px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 12px;
}

.card p { margin-bottom: 0; font-size: 0.96rem; }

/* Product photo */
.product-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
}

.product-photo.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at 30% 20%, rgba(169, 207, 140, 0.4), transparent 60%), var(--cream);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-photo.img-missing::after {
  content: "Foto del frasco de BAMAX (próximamente)";
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-light);
  margin-bottom: 10px;
}

.step p { font-size: 0.96rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card { text-align: center; }

.team-photo-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
}

.team-photo-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.team-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.team-photo-link:hover .team-photo { transform: scale(1.05); }

.team-linkedin-badge {
  position: absolute;
  bottom: 14px;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.team-photo-wrap:hover .team-linkedin-badge {
  opacity: 1;
  transform: scale(1);
}

.team-card h3 { margin-bottom: 4px; }

.team-role {
  display: block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.team-card p { font-size: 0.92rem; margin: 0; }

/* Allies */
.logo-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.logo-list li {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-dark);
}

/* News */
.news-follow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.news-follow p { margin: 0; }

/* CTA */
.cta-section { background: var(--white); }

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.cta-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cta-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 10px;
}

.cta-card h3 { color: var(--ink); margin-bottom: 14px; }

.cta-link { font-weight: 700; color: var(--green-dark); }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-brand img { filter: brightness(0) invert(1); }

.footer-info {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.footer-info a { color: var(--white); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 16px;
  }

  .card-grid, .card-grid.two, .steps, .team-grid, .cta-grid {
    grid-template-columns: 1fr;
  }

  .news-follow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
  .product-photo { aspect-ratio: 4 / 3; }
}
