/* ─────────────────────────────────────────────
   NUTRIRME · tokens + base compartida
   Cargado por: /index.html, /inbody-la-plata/, /tienda/
   ───────────────────────────────────────────── */

:root {
  /* Paleta — manual de marca */
  --teal:   #225164;
  --teal-d: #1a3f50;
  --green:  #88b15f;
  --coral:  #ec7761;
  --yellow: #f8d82c;
  --grey:   #dedfe4;

  --bg:    #f8f7f3;
  --white: #ffffff;
  --text:  #1a2a32;
  --muted: #526672;

  --font-body:    'Nunito', sans-serif;
  --font-display: 'DonJose', sans-serif;

  --radius:    16px;
  --shadow:    0 4px 24px rgba(34,81,100,.10);
  --shadow-lg: 0 24px 60px -24px rgba(34,81,100,.40);

  /* Escala de espaciado vertical de sección */
  --sp-lg: 128px;  /* secciones protagonistas */
  --sp-md: 96px;   /* secciones normales */
  --sp-sm: 64px;   /* franjas de servicio / CTA */

  --nav-h: 72px;
}

@media (max-width: 768px) {
  :root { --sp-lg: 80px; --sp-md: 64px; --sp-sm: 48px; }
}

@font-face {
  font-family: 'DonJose';
  src: url('../fonts/DonJose_Black.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--green); color: #fff; }

a { color: var(--teal); }
a:hover { color: var(--teal-d); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── UTILIDADES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 40px; }

.tag {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--coral);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 50px; font-family: var(--font-body);
  font-size: 15px; font-weight: 800; cursor: pointer; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--teal-d); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,81,100,.28); }
.btn-secondary { background: transparent; color: var(--teal); border-color: rgba(34,81,100,.28); }
.btn-secondary:hover:not(:disabled) { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(236,119,97,.32); }
.btn-coral:hover:not(:disabled) { background: #df6450; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(236,119,97,.42); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover:not(:disabled) { background: #1fbb59; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.4); }
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Botón outline sobre fondo oscuro */
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-on-dark:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; transform: translateY(-2px); }

/* ─── ANIMACIÓN DE ENTRADA ─── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.stagger.visible > * { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: .07s; }
.stagger.visible > *:nth-child(3) { transition-delay: .14s; }
.stagger.visible > *:nth-child(4) { transition-delay: .21s; }
.stagger.visible > *:nth-child(5) { transition-delay: .28s; }
.stagger.visible > *:nth-child(6) { transition-delay: .35s; }
.stagger.visible > *:nth-child(7) { transition-delay: .42s; }

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,81,100,.08);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 2px 16px rgba(34,81,100,.10); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.hamburger span { display: block; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid rgba(34,81,100,.10);
  box-shadow: 0 12px 28px rgba(34,81,100,.12);
  display: flex; flex-direction: column; padding: 8px 20px 20px;
  transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
}
.nav-drawer.open { transform: translateY(0); visibility: visible; }
.drawer-link {
  padding: 15px 4px; font-weight: 700; font-size: 16px; color: var(--text);
  text-decoration: none; border-bottom: 1px solid rgba(34,81,100,.08);
}
.drawer-actions { display: flex; gap: 10px; margin-top: 18px; }
.drawer-actions .btn { flex: 1; }

@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
}
@media (max-width: 900px) {
  .container, .container-md, .container-sm { padding: 0 20px; }
}

/* ─── STICKY CTA (mobile) ─── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; display: none; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(34,81,100,.12); box-shadow: 0 -6px 22px rgba(34,81,100,.14);
}
.sticky-cta .btn { flex: 1; padding: 14px 12px; font-size: 14.5px; }
@media (max-width: 980px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* ─── FOOTER ─── */
footer { background: #131e24; color: rgba(255,255,255,.65); padding: 52px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start;
}
.footer-logo img { height: 46px; display: block; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.footer-contact a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 700; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact span { color: rgba(255,255,255,.55); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
