/* =========================================================
   Bicarbonato Bioactivo
   Dark premium default · Mobile-first · 50+ friendly
   ========================================================= */

:root {
  --bg: #0d0a09;
  --bg-elev: #12100e;
  --card: #161210;
  --card-2: #1c1712;
  --line: rgba(232, 184, 109, 0.12);
  --line-strong: rgba(232, 184, 109, 0.28);
  --text: #f7f0e6;
  --text-soft: #e8dcc8;
  --text-muted: #c4b49a;
  --text-faint: #9a8a72;
  --gold: #e8b86d;
  --gold-soft: #f0d19a;
  --gold-dim: rgba(232, 184, 109, 0.14);
  --gold-grad: linear-gradient(135deg, #f0d19a 0%, #e8b86d 45%, #c4923e 100%);
  --success: #6bcf8e;
  --success-bg: rgba(107, 207, 142, 0.14);
  --danger: #f97066;
  --danger-bg: rgba(249, 112, 102, 0.12);
  --warn: #f0b429;
  --nav-bg: rgba(13, 10, 9, 0.92);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --touch: 52px;
  --header-h: 64px;
  --nav-h: 72px;
  --max: 480px;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

[data-theme="light"] {
  --bg: #f6f0e8;
  --bg-elev: #fffdf9;
  --card: #ffffff;
  --card-2: #faf6f0;
  --line: rgba(90, 61, 18, 0.12);
  --line-strong: rgba(90, 61, 18, 0.22);
  --text: #1a140c;
  --text-soft: #3a2e1c;
  --text-muted: #5c4c36;
  --text-faint: #8a7558;
  --gold: #b8842f;
  --gold-soft: #8a6420;
  --gold-dim: rgba(184, 132, 47, 0.12);
  --gold-grad: linear-gradient(135deg, #f0d19a 0%, #e0a84a 45%, #b8842f 100%);
  --nav-bg: rgba(246, 240, 232, 0.94);
  --shadow: 0 12px 32px rgba(90, 61, 18, 0.1);
  --success: #2f9e5f;
  --success-bg: rgba(47, 158, 95, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { font-weight: 700; }
.hidden { display: none !important; }

/* ---------- Screens ---------- */
.screen {
  display: none;
  min-height: 100dvh;
  min-height: 100svh;
  flex-direction: column;
  width: 100%;
}
.screen.active {
  display: flex;
  animation: fadeIn 0.35s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 109, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(232, 184, 109, 0); }
}

/* ---------- Theme FAB ---------- */
.theme-fab {
  position: fixed;
  top: calc(12px + var(--safe-t));
  right: calc(12px + var(--safe-r));
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
}
.theme-fab:active { transform: scale(0.94); }

/* ---------- Splash ---------- */
.splash {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(24px + var(--safe-t)) 22px calc(28px + var(--safe-b));
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 18%, rgba(232, 184, 109, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(196, 146, 62, 0.12), transparent 50%),
    linear-gradient(180deg, #1a1410 0%, #0d0a09 55%, #0a0806 100%);
}
.splash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(232, 184, 109, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 70%, rgba(40, 28, 16, 0.9) 0%, transparent 55%);
  pointer-events: none;
}
.splash-bg::after {
  content: "";
  position: absolute;
  bottom: 22%;
  left: 18%;
  right: 18%;
  height: 26%;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, rgba(232, 184, 109, 0.25), rgba(196, 146, 62, 0.4));
  filter: blur(18px);
  opacity: 0.85;
}
.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 10, 9, 0.15) 0%, rgba(13, 10, 9, 0.55) 45%, rgba(13, 10, 9, 0.96) 100%);
  pointer-events: none;
}
.splash-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 0.7s var(--ease) both;
}
.splash-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.splash-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 9.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff8ec, #e8b86d 60%, #c4923e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.splash-sub {
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  color: var(--text-soft);
  line-height: 1.45;
  max-width: 30ch;
  margin-bottom: 28px;
}
.splash-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
[data-theme="light"] .splash {
  background:
    radial-gradient(ellipse 90% 60% at 50% 20%, rgba(232, 184, 109, 0.35), transparent 60%),
    linear-gradient(180deg, #f0e4d4 0%, #f6f0e8 55%, #efe6da 100%);
}
[data-theme="light"] .splash-overlay {
  background: linear-gradient(180deg, rgba(246, 240, 232, 0.2) 0%, rgba(246, 240, 232, 0.55) 50%, rgba(246, 240, 232, 0.95) 100%);
}
[data-theme="light"] .splash-title {
  background: linear-gradient(135deg, #5a3d12, #b8842f 50%, #8a6420);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--touch);
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, opacity 0.18s, background 0.18s;
  text-align: center;
  border: 1.5px solid transparent;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-xl {
  min-height: 58px;
  font-size: 1.12rem;
  border-radius: 18px;
  padding: 16px 24px;
}
.btn-gold {
  background: var(--gold-grad);
  color: #1a1208;
  box-shadow: 0 10px 28px rgba(232, 184, 109, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(232, 184, 109, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-soft);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-soft);
}
.btn-danger-ghost {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(249, 112, 102, 0.3);
}

/* ---------- Quiz ---------- */
.quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: calc(16px + var(--safe-t)) 20px calc(16px + var(--safe-b));
  min-height: 0;
}
.quiz-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 52px;
  flex-shrink: 0;
}
.quiz-back {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--text-soft);
  flex-shrink: 0;
  padding: 0;
}
.progress-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}
.progress-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.25s, transform 0.25s;
}
.progress-dots .dot.on {
  background: var(--gold);
  transform: scale(1.15);
}
.progress-dots .dot.done {
  background: var(--gold-soft);
}
.quiz-step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 3.2em;
  text-align: right;
}
.quiz-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 8px 0 12px;
}
.q-card {
  display: none;
  animation: fadeUp 0.35s var(--ease) both;
}
.q-card.active { display: block; }
.q-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.q-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text);
}
.q-sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.45;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text-soft);
}
.field-input {
  width: 100%;
  min-height: var(--touch);
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input::placeholder { color: var(--text-faint); font-weight: 500; }
.field-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a8a72' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.quiz-footer {
  flex-shrink: 0;
  padding-top: 8px;
}
.field-error {
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

/* ---------- Processing ---------- */
.processing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px calc(32px + var(--safe-b));
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.proc-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
  margin-bottom: 28px;
  position: relative;
}
.proc-core {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--gold-dim);
  animation: pulse-gold 1.6s ease infinite;
}
.proc-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  margin-bottom: 10px;
}
.proc-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 28ch;
  min-height: 3em;
}
.proc-steps {
  margin-top: 28px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proc-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-faint);
  opacity: 0.45;
  transition: opacity 0.3s, color 0.3s, border-color 0.3s;
}
.proc-steps li::before {
  content: "○";
  color: var(--text-faint);
  font-weight: 700;
  width: 1.2em;
}
.proc-steps li.on {
  opacity: 1;
  color: var(--text-soft);
  border-color: var(--line-strong);
}
.proc-steps li.on::before { content: "◎"; color: var(--gold); }
.proc-steps li.done {
  opacity: 1;
  color: var(--gold-soft);
  border-color: rgba(232, 184, 109, 0.35);
}
.proc-steps li.done::before { content: "✓"; color: var(--gold); }

/* ---------- App shell ---------- */
#screen-app {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  position: relative;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(var(--header-h) + var(--safe-t));
  padding: var(--safe-t) 16px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.app-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-right: 52px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.app-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-grad);
  color: #1a1208;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(232, 184, 109, 0.3);
}
.app-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.app-brand-text strong {
  font-size: clamp(0.82rem, 3.5vw, 1.02rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-brand-text .brand-name-short { display: none; }
.app-brand-text span {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 400px) {
  .app-brand-text .brand-name-full { display: none; }
  .app-brand-text .brand-name-short { display: block; font-size: 1.02rem; }
}

.app-main {
  flex: 1;
  padding: 16px 16px 24px;
  width: 100%;
}
.tab-panel {
  display: none;
  animation: fadeUp 0.32s var(--ease) both;
}
.tab-panel.active { display: block; }

/* ---------- Cards & sections ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.section-head {
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}
.section-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.stack-gap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0 16px;
}

/* ---------- Hoy ---------- */
.hero-goal {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(232, 184, 109, 0.16), transparent 60%),
    var(--card);
  border-color: var(--line-strong);
  padding: 22px 16px 20px;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.hero-num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.hero-num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 14vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.hero-unit {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-soft);
}
.hero-caption {
  color: var(--text-muted);
  font-size: 1rem;
}
.hero-caption strong { color: var(--text-soft); }

.progress-card { padding: 16px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.progress-meta strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.progress-meta span {
  font-size: 0.92rem;
  color: var(--text-faint);
  font-weight: 700;
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold-grad);
  transition: width 0.45s var(--ease);
  box-shadow: 0 0 12px rgba(232, 184, 109, 0.35);
}

.day-status-card { padding: 16px; }
.day-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.day-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.day-state {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-faint);
}
.day-state.is-done { color: var(--success); }
.day-motivation {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.tip-mini strong {
  display: block;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tip-mini p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* ---------- Receta / ingredientes ---------- */
.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.ing-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 72px;
}
.ing-card.is-star {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(232, 184, 109, 0.1), transparent 55%),
    var(--card);
}
.ing-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-dim);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ing-body {
  flex: 1;
  min-width: 0;
}
.ing-body strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
  line-height: 1.25;
}
.ing-body span {
  font-size: 0.9rem;
  color: var(--text-faint);
  font-weight: 600;
}
.ing-qty {
  flex-shrink: 0;
  text-align: right;
  max-width: 42%;
}
.ing-qty .qty-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ing-qty .qty-note {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 600;
  margin-top: 2px;
}

.help-card {
  text-align: center;
  border-color: var(--line-strong);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232, 184, 109, 0.12), transparent 55%),
    var(--card);
}
.help-card .help-ico {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.prep-steps {
  counter-reset: prep;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prep-steps li {
  counter-increment: prep;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.prep-steps li::before {
  content: counter(prep);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.why-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.why-item strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.why-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tips-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.tips-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---------- Días ---------- */
.days-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
}
.days-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.leg-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card);
  display: inline-block;
}
.leg-dot.done {
  background: var(--success-bg);
  border-color: var(--success);
}
.leg-dot.current {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.day-cell {
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  padding: 4px;
}
.day-cell:active { transform: scale(0.94); }
.day-cell .day-n { line-height: 1; }
.day-cell .day-check {
  font-size: 0.7rem;
  line-height: 1;
  color: var(--success);
  opacity: 0;
}
.day-cell.done {
  background: var(--success-bg);
  border-color: rgba(107, 207, 142, 0.45);
  color: var(--success);
}
.day-cell.done .day-check { opacity: 1; }
.day-cell.current {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 184, 109, 0.2);
}
.day-cell.selected:not(.current) {
  border-color: var(--line-strong);
  color: var(--text);
}

/* ---------- Más / contacts / academy / bonus ---------- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  min-height: var(--touch);
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: var(--line-strong); }
.contact-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-dim);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-meta {
  flex: 1;
  min-width: 0;
}
.contact-meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.contact-meta span {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
}
.contact-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.module-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.module-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.module-body strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 3px;
  line-height: 1.3;
}
.module-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bonus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bonus-item {
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 184, 109, 0.08), transparent 50%),
    var(--card-2);
  border: 1px solid var(--line-strong);
}
.bonus-item .bonus-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.bonus-item strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.bonus-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.circle-box {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232, 184, 109, 0.12), transparent 55%),
    var(--card);
}
.circle-box .ci-ico {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max);
  z-index: 50;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 0 4px var(--safe-b);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--nav-h);
  min-width: 0;
  padding: 8px 4px;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  transition: color 0.2s;
}
.bnav-item .bico {
  font-size: 1.28rem;
  line-height: 1;
}
.bnav-item .blabel {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.bnav-item.active {
  color: var(--gold);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 650;
  font-size: 0.98rem;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success {
  border-color: rgba(107, 207, 142, 0.4);
  background: var(--success-bg);
  color: var(--success);
}

/* ---------- Responsive ---------- */
@media (max-width: 360px) {
  body { font-size: 16px; }
  .app-main { padding: 12px 12px 20px; }
  .days-grid { gap: 6px; }
  .bnav-item { font-size: 0.7rem; }
  .bnav-item .bico { font-size: 1.15rem; }
  .hero-num { font-size: 2.8rem; }
  .q-title { font-size: 1.35rem; }
  .splash { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 320px) {
  .days-grid { gap: 5px; }
  .day-cell { border-radius: 10px; font-size: 0.85rem; min-height: 40px; }
}

@media (min-width: 640px) {
  .hero-goal { padding: 28px 20px; }
}

@media (max-width: 360px) {
  .ing-qty .qty-main { font-size: 1rem; }
  .ing-card { padding: 12px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
