/* ─────────────────────────────────────────────
   NUTRITION — Seguimiento nutricional
   ───────────────────────────────────────────── */

/* ── Base ─────────────────────────────────────── */
.nut {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ── Shared buttons ───────────────────────────── */
.nut__back-dark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,.1);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-bottom: 20px;
  color: #f5f0e8;
}

.nut__back-light {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: #f0ece4;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #6b6157;
}

.nut__link-btn {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--color-brand-primary);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nut__primary-btn {
  width: 100%;
  height: 54px;
  background: var(--color-brand-primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: transform .15s;
}
.nut__primary-btn:active { transform: scale(.98); }

.nut__outline-btn {
  width: 100%;
  height: 54px;
  background: var(--color-bg-elevated);
  color: var(--color-brand-primary);
  border: 2px solid #3d5a40;
  border-radius: 16px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: transform .15s;
}
.nut__outline-btn:active { transform: scale(.98); }

.nut__info-box {
  background: #f0ece4;
  border-radius: 14px;
  padding: 14px;
}
.nut__info-text {
  font-size: 12px;
  line-height: 1.55;
  color: #6b6157;
}

.nut__sec-label {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 12px;
}

.nut__section-label {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

/* ── Light header (Goals / Prefs / Daily / Weekly) */
.nut--light { background: var(--color-bg-base); }

.nut__light-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 52px 20px 20px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid #f0ece4;
}

.nut__light-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 3px;
}

.nut__light-sub {
  font-size: 13px;
  color: var(--color-text-subtle);
}

.nut__scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 32px;
}

/* ═══════════════════════════════════════════════
   HOME
   ═══════════════════════════════════════════════ */
.nut--home { background: var(--color-bg-base); }

.nut__hero {
  flex-shrink: 0;
  background: linear-gradient(150deg,#1a2e20 0%,#2d5240 55%,#4a7a60 100%);
  padding: 56px 24px 36px;
  position: relative;
  overflow: hidden;
}

.nut__hero-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.nut__hero-bubble--1 { width:160px;height:160px;background:rgba(255,255,255,.04);top:-30px;right:-30px; }
.nut__hero-bubble--2 { width:120px;height:120px;background:rgba(212,168,48,.06);bottom:-40px;left:20px; }

.nut__hero-tag {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: rgba(138,167,133,.7);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.nut__hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.nut__active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,168,48,.18);
  border: 1px solid rgba(212,168,48,.3);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-ai-golden);
}
.nut__active-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d4a830;
  flex-shrink: 0;
}

/* Body */
.nut__body {
  flex: 1;
  padding: 20px;
}

/* Grid 2x2 */
.nut__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.nut__grid-card {
  background: var(--color-bg-elevated);
  border-radius: 16px;
  padding: 14px;
  border: none;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .15s;
}
.nut__grid-card:active { transform: scale(.96); }

.nut__grid-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

.nut__grid-label {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.nut__grid-sub {
  font-size: 11px;
  color: var(--color-text-subtle);
}

/* Balance card */
.nut__card {
  background: var(--color-bg-elevated);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.nut__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nut__card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.nut__bars-list { display: flex; flex-direction: column; gap: 10px; }

.nut__bar-row {}
.nut__bar-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.nut__bar-key { font-size: 12px; font-weight: var(--fw-medium); color: #6b6157; }
.nut__bar-val { font-size: 12px; font-weight: var(--fw-semibold); }

.nut__bar-track {
  height: 6px;
  background: #f0ece4;
  border-radius: 999px;
  overflow: hidden;
}
.nut__bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .5s ease;
  min-width: 4px;
}

/* Suggestions */
.nut__suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.nut__suggest-card {
  background: var(--color-bg-elevated);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  border-left: 3px solid #ccc;
}

.nut__suggest-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nut__suggest-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nut__suggest-body { flex: 1; }

.nut__suggest-title {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.nut__suggest-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted, #7a6f62);
}

.nut__suggest-cta {
  margin-top: 10px;
  background: var(--color-accent-terracotta-soft);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--color-accent-terracotta);
  cursor: pointer;
}

/* Progress CTA banner */
.nut__progress-cta {
  width: 100%;
  background: linear-gradient(135deg,#2a4030,#3d5a40);
  border: none;
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .15s;
}
.nut__progress-cta:active { transform: scale(.98); }

.nut__progress-cta-tag {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: rgba(138,167,133,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.nut__progress-cta-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
}
.nut__progress-cta-sub {
  font-size: 13px;
  color: rgba(245,240,232,.65);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════
   GOALS
   ═══════════════════════════════════════════════ */
.nut__goal-item {
  width: 100%;
  background: var(--color-bg-elevated);
  border-radius: 18px;
  padding: 16px;
  border: 2px solid #f0ece4;
  cursor: pointer;
  text-align: left;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s;
}
.nut__goal-item--active { border-color: #3d5a40; }
.nut__goal-item:active { transform: scale(.98); }

.nut__goal-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nut__goal-info { flex: 1; min-width: 0; }

.nut__goal-name {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 3px;
}
.nut__goal-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted, #7a6f62);
}

.nut__goal-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   PREFS
   ═══════════════════════════════════════════════ */
.nut__style-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.nut__style-item {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e8e0d5;
  background: var(--color-bg-elevated);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color .2s;
}
.nut__style-item--active { border-color: #3d5a40; background: var(--color-brand-primary-soft); }

.nut__style-label {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.nut__style-desc {
  font-size: 12px;
  color: var(--color-text-muted, #7a6f62);
}

.nut__chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.nut__chip {
  padding: 9px 14px;
  border-radius: 50px;
  border: 1.5px solid #e8e0d5;
  background: var(--color-bg-elevated);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: #6b6157;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.nut__chip--green {
  border-color: #3d5a40;
  background: var(--color-brand-primary-soft);
  color: var(--color-brand-primary);
}
.nut__chip--terra {
  border-color: #c96f4a;
  background: var(--color-accent-terracotta-soft);
  color: var(--color-accent-terracotta);
}

/* ═══════════════════════════════════════════════
   DAILY
   ═══════════════════════════════════════════════ */
.nut__meal-card {
  background: var(--color-bg-elevated);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.nut__meal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.nut__meal-icon {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

.nut__meal-type {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: #6b6157;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.nut__meal-time {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-text-subtle);
}

.nut__meal-recipe {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.nut__meal-adjust {
  background: var(--color-ai-golden-soft);
  border-radius: 12px;
  padding: 10px 12px;
  border-left: 2.5px solid #d4a830;
  margin: 8px 0;
}
.nut__meal-adjust p {
  font-size: 12px;
  line-height: 1.4;
  color: #7a5c0a;
  font-weight: var(--fw-medium);
}

.nut__meal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.nut__meal-meta {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--color-text-subtle);
}

.nut__hydration-tip {
  background: var(--color-brand-primary-soft);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.nut__hydration-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-brand-primary);
}

/* ═══════════════════════════════════════════════
   ADAPT
   ═══════════════════════════════════════════════ */
.nut--adapt { background: var(--color-bg-base); }

.nut__adapt-hero {
  flex-shrink: 0;
  background: linear-gradient(145deg,#2d5240,#1a2e20);
  padding: 56px 20px 28px;
  position: relative;
  overflow: hidden;
}

.nut__adapt-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.nut__adapt-sub {
  font-size: 13px;
  color: rgba(245,240,232,.6);
}

.nut__compare-card {
  background: var(--color-bg-elevated);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 14px;
}

.nut__compare-from {
  padding: 14px 16px;
  background: var(--color-bg-muted);
  border-bottom: 1px solid #ede8e0;
}
.nut__compare-to {
  padding: 14px 16px;
  background: var(--color-brand-primary-soft);
}
.nut__compare-tag {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}
.nut__compare-text {
  font-size: 14px;
  color: var(--color-text-primary);
}
.nut__compare-arrow {
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nut__adapt-detail {
  background: var(--color-bg-elevated);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nut__adapt-detail-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nut__adapt-detail-label {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.nut__adapt-detail-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-primary);
}

/* ═══════════════════════════════════════════════
   WEEKLY
   ═══════════════════════════════════════════════ */
.nut__week-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.nut__wday {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.nut__wday-label {
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--color-text-subtle);
}

.nut__wday-circle {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}

.nut__week-hint {
  font-size: 11px;
  color: var(--color-text-subtle);
  text-align: center;
  margin-bottom: 20px;
}

.nut__insight-card {
  background: var(--color-bg-elevated);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nut__insight-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nut__insight-title {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.nut__insight-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted, #7a6f62);
}

/* ═══════════════════════════════════════════════
   COACH
   ═══════════════════════════════════════════════ */
.nut--coach { background: var(--color-bg-base); }

.nut__coach-hero {
  flex-shrink: 0;
  background: linear-gradient(150deg,#1a2e18 0%,#2d5038 55%,#4a7850 100%);
  padding: 56px 24px 32px;
  position: relative;
  overflow: hidden;
}

.nut__coach-star {
  position: absolute;
  top: 20%; right: 8%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(212,168,48,.6);
  pointer-events: none;
}

.nut__coach-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nut__coach-section { margin-bottom: 24px; }

.nut__coach-card {
  background: var(--color-bg-elevated);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.nut__coach-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.nut__coach-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nut__coach-title { /* re-used selector override — use element */ }
.nut__coach-text { flex: 1; }

.nut__coach-card .nut__coach-text p:first-child {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.nut__coach-card .nut__coach-text p:last-child {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted, #7a6f62);
}

.nut__coach-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f0ece4;
}

.nut__coach-diff {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--color-text-subtle);
}

.nut__coach-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   PROGRESS
   ═══════════════════════════════════════════════ */
.nut--progress { background: var(--color-bg-base); }

.nut__progress-hero {
  flex-shrink: 0;
  background: linear-gradient(150deg,#1a2e20 0%,#2d5240 60%,#4a7060 100%);
  padding: 56px 24px 40px;
  position: relative;
  overflow: hidden;
}

.nut__progress-bubble {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(212,168,48,.07);
  bottom: -20px; right: -20px;
  pointer-events: none;
}

.nut__progress-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nut__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.nut__stat-card {
  background: var(--color-bg-elevated);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.nut__stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-bold);
  line-height: 1;
  margin-bottom: 6px;
}

.nut__stat-label {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.nut__stat-sub {
  font-size: 11px;
  color: var(--color-text-subtle);
}

.nut__discoveries {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.nut__discovery-card {
  background: var(--color-bg-elevated);
  border-radius: 14px;
  padding: 14px 16px;
  border-left: 3px solid #ccc;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

.nut__discovery-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-primary);
}
