/* ============================================================
   Nutrimetría · home.css
   Landing page (index.html) — header, hero, secciones, footer
   ============================================================ */

body.home { background: var(--canvas); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246,251,250,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-brand { display: flex; align-items: center; gap: 11px; }
.site-brand img { width: 34px; height: 34px; }
.site-brand span { font-family: var(--font-slab); font-size: 19px; font-weight: 800; color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); border-color: var(--coral); }

.site-header .menu-toggle { display: none; margin-left: auto; }

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { width: 100%; padding: 10px 4px; }
  .site-header .menu-toggle { display: flex; }
  .site-header .btn { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-slab);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 18px;
}
.hero p {
  font-size: 15.5px;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 26px;
}
.hero .btn-row { margin-bottom: 30px; }

.feature-strip { display: flex; flex-wrap: wrap; gap: 22px; }
.feature-strip .fs-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--text-sec); }
.feature-strip .fs-item i { color: var(--green-dark); font-size: 14px; }

/* Panel decorativo (sin depender de imágenes externas) */
.hero-visual {
  position: relative;
  background: linear-gradient(155deg, var(--green-light) 0%, var(--cream-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px;
  width: 100%;
  max-width: 340px;
}
.hero-visual-card .hv-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-visual-card .hv-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; flex-shrink: 0;
}
.hero-visual-card .hv-bar { flex: 1; height: 9px; border-radius: 5px; background: var(--border); overflow: hidden; }
.hero-visual-card .hv-bar span { display: block; height: 100%; background: var(--green); border-radius: 5px; }
.hero-visual-badge {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 22px rgba(232,111,141,.32);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-visual { min-height: 260px; order: -1; }
  .hero h1 { font-size: 32px; }
}

/* ── Secciones ──────────────────────────────────────────── */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 32px;
}
.section-head { text-align: center; max-width: 560px; margin: 0 auto 34px; }
.section-head .eyebrow { color: var(--coral); margin-bottom: 8px; }
.section-head h2 { font-family: var(--font-slab); font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.section-head p { font-size: 14.5px; color: var(--text-sec); line-height: 1.6; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-container); }
.cat-card .cc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--green-light); color: var(--green-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 14px;
}
.cat-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.cat-card p { font-size: 12.5px; color: var(--text-sec); line-height: 1.5; margin-bottom: 12px; }
.cat-card .cc-link { font-size: 12.5px; font-weight: 600; color: var(--green-dark); display: inline-flex; align-items: center; gap: 6px; }
.cat-card.is-empty { opacity: .6; }

/* ── Contacto ───────────────────────────────────────────── */
.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
}
.contact-card h2 { font-family: var(--font-slab); font-size: 25px; font-weight: 800; margin-bottom: 10px; }
.contact-card p { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.6; max-width: 420px; }
.contact-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; }
.contact-box .cb-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-box .cb-row:last-child { margin-bottom: 0; }
.contact-box .cb-row i { color: var(--coral); width: 18px; text-align: center; }
.contact-box .cb-row a, .contact-box .cb-row span { font-size: 13.5px; color: #fff; }

@media (max-width: 760px) {
  .contact-card { grid-template-columns: 1fr; padding: 26px; }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--label);
}
