/* NutrIA — tema claro (UX inspirado en Welmi), mobile-first */
:root {
  --bg: #f4f6f5;
  --card: #ffffff;
  --card-border: #eceff0;
  --shadow: 0 2px 14px rgba(23, 37, 31, 0.06);
  --txt: #17251f;
  --muted: #7d8c85;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #e7f7f1;
  --lime: #84cc16;
  --amber: #f59e0b;
  --amber-soft: #fdf3e3;
  --red: #ef4444;
  --blue: #3b82f6;
  --blue-soft: #eaf2fe;
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  overscroll-behavior-y: none;
}
.hidden { display: none !important; }
.screen { min-height: 100dvh; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ── ICONOS ── */
.ic { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; }
.ic svg { display: block; width: 100%; height: 100%; }
.ti { display: inline-flex; width: 22px; height: 22px; }
.ti svg { display: block; width: 100%; height: 100%; }
.fab .ti { width: 25px; height: 25px; color: #fff; }
.tab-btn .ti { color: #9aa8a1; }
.tab-btn.active .ti { color: var(--green-dark); }
.brand-logo { border-radius: 22px; box-shadow: 0 10px 26px rgba(16, 185, 129, 0.25); margin-bottom: 10px; }

/* ── AUTH ── */
.auth-hero { position: relative; text-align: center; padding: 60px 24px 24px; overflow: hidden; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; }
.orb-a { width: 260px; height: 260px; background: #6ee7b7; top: -120px; right: -60px; }
.orb-b { width: 200px; height: 200px; background: #d9f99d; bottom: -80px; left: -60px; }
.brand { font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.brand span { background: linear-gradient(90deg, var(--green-dark), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); margin-top: 8px; font-size: 15.5px; line-height: 1.5; }
.auth-card { margin: 8px 20px 40px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 440px; }
@media (min-width: 480px) { .auth-card { margin-inline: auto; } }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: #eef1f0; border-radius: 14px; padding: 4px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: transparent; color: var(--muted); border-radius: 11px; font-size: 15px; font-weight: 600; }
.auth-tab.active { background: #fff; color: var(--green-dark); box-shadow: 0 1px 6px rgba(0,0,0,0.07); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--card-border);
  background: #fafbfb; color: var(--txt); font-size: 16px; outline: none;
}
.field input:focus { border-color: var(--green); background: #fff; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--green); }
.btn-primary {
  width: 100%; padding: 16px; border: none; border-radius: 16px; font-size: 17px; font-weight: 700;
  background: linear-gradient(90deg, var(--green-dark), var(--green)); color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); transition: transform 0.15s;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.55; }
.btn-ghost { width: 100%; padding: 14px; border-radius: 16px; font-size: 15px; font-weight: 600; background: #f0f3f2; color: var(--txt); border: 1px solid var(--card-border); }
.auth-error { color: var(--red); font-size: 14px; margin-top: 10px; text-align: center; min-height: 18px; }
.legal { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; line-height: 1.5; }

/* ── ONBOARDING ── */
.ob-progress { position: sticky; top: 0; height: 4px; background: #e5e9e7; z-index: 5; }
#ob-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green-dark), var(--lime)); transition: width 0.3s; }
.ob-step { padding: 40px 24px 32px; max-width: 480px; margin: 0 auto; animation: fadeUp 0.3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ob-step h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; line-height: 1.25; }
.ob-step .sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.opt-grid { display: grid; gap: 10px; margin-bottom: 20px; }
.opt-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  padding: 16px; border-radius: 16px; border: 1.5px solid var(--card-border); background: var(--card);
  color: var(--txt); font-size: 15.5px; font-weight: 600; text-align: left; display: flex; gap: 10px; align-items: center;
  box-shadow: var(--shadow);
}
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.opt.sel { border-color: var(--green); background: var(--green-soft); }
.ob-nav { display: flex; gap: 10px; margin-top: 8px; }
.num-row { display: flex; gap: 12px; margin-bottom: 20px; }
.num-row .field { flex: 1; margin-bottom: 0; }
.result-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 20px; box-shadow: var(--shadow); }
.result-kcal { font-size: 52px; font-weight: 800; background: linear-gradient(90deg, var(--green-dark), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.macro-pills { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.macro-pill { padding: 8px 14px; border-radius: 999px; background: #f0f3f2; font-size: 13.5px; font-weight: 600; }
.macro-pill b { display: block; font-size: 16px; }
.safety-note { background: var(--amber-soft); border: 1px solid #f5d9a8; color: #92600a; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }

/* ── MAIN / TABS ── */
#tab-content { padding: 18px 16px calc(120px + var(--safe-b)); max-width: 520px; margin: 0 auto; }
.tabbar {
  position: fixed; bottom: calc(12px + var(--safe-b)); left: 14px; right: 88px; z-index: 30;
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 10px;
  background: #fff; border: 1px solid var(--card-border); border-radius: 999px;
  box-shadow: 0 8px 28px rgba(23, 37, 31, 0.12);
  max-width: 420px;
}
@media (min-width: 560px) { .tabbar { left: 50%; transform: translateX(calc(-50% - 37px)); width: 400px; } }
.tab-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none; color: #9aa8a1; font-size: 10.5px; font-weight: 600; padding: 6px 10px; border-radius: 14px; }
.tab-btn.active { color: var(--green-dark); }
.tab-btn.active { background: var(--green-soft); }
.fab {
  position: fixed; right: 14px; bottom: calc(12px + var(--safe-b)); z-index: 31;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
}
@media (min-width: 560px) { .fab { right: calc(50% - 260px + 14px); } }
.fab:active { transform: scale(0.94); }

/* ── HOY (estilo Welmi) ── */
.day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.day-head h1 { font-size: 22px; font-weight: 800; }
.day-head .date { color: var(--muted); font-size: 13px; font-weight: 500; text-transform: capitalize; }
.scan-pill { font-size: 12px; color: var(--green-dark); background: var(--green-soft); padding: 7px 11px; border-radius: 999px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.streak-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--amber-soft); color: #b45309; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.obj-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.obj-title { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.obj-nums { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.obj-nums .big { font-size: 34px; font-weight: 800; }
.obj-nums .big small { font-size: 16px; color: var(--muted); font-weight: 600; }
.obj-nums .rest { font-size: 14px; color: var(--muted); font-weight: 600; }
.obj-bar { height: 10px; border-radius: 99px; background: #eef1f0; overflow: hidden; margin-bottom: 12px; }
.obj-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-dark), var(--lime)); transition: width 0.4s; }
.obj-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.obj-chip { font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.obj-chip.burn { background: var(--amber-soft); color: #b45309; }
.obj-chip.goal { background: var(--green-soft); color: var(--green-dark); }

.meal-circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.meal-circle { background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; }
.mc-ring { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--green-dark); }
.mc-ring .ic { width: 24px; height: 24px; }
.mc-plus { position: absolute; bottom: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--txt); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.meal-circle span { font-size: 12px; font-weight: 700; }
.meal-circle small { font-size: 11px; color: var(--muted); font-weight: 600; }

.card-sec { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card-sec h3 { font-size: 15px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.macro-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.macro-row .mdot { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mdot.p { background: var(--green-soft); color: var(--green-dark); }
.mdot.c { background: var(--amber-soft); color: #b45309; }
.mdot.g { background: var(--blue-soft); color: var(--blue); }
.macro-row .mr-body { flex: 1; }
.macro-row .lbl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.macro-row .lbl span { color: var(--muted); }
.bar { height: 7px; border-radius: 99px; background: #eef1f0; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width 0.4s; }
.bar .p { background: var(--green); } .bar .c { background: var(--amber); } .bar .g { background: var(--blue); }

.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quick-btn { padding: 12px 4px; border-radius: 16px; border: 1px solid var(--card-border); background: var(--card); color: var(--txt); font-size: 11.5px; font-weight: 600; display: flex; flex-direction: column; gap: 5px; align-items: center; box-shadow: var(--shadow); }
.quick-btn .ic { width: 20px; height: 20px; color: var(--green-dark); }

.water-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; box-shadow: var(--shadow); gap: 10px; }
.water-cups { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cup { border: none; background: none; padding: 2px; color: #dbe4e0; width: 26px; height: 26px; }
.cup svg { width: 100%; height: 100%; }
.cup.full { color: var(--blue); }

.exer-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.exer-head { display: flex; justify-content: space-between; align-items: center; }
.exer-head b { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.exer-head .ic { color: var(--amber); }
.exer-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f3f2; font-size: 13.5px; }
.exer-item:last-of-type { border-bottom: none; }
.exer-item .ex-sub { color: var(--muted); font-size: 12px; }

.coach-card { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25); }
.coach-card h3 { font-size: 15px; font-weight: 700; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.coach-card .chips { display: flex; flex-direction: column; gap: 8px; }
.coach-card .chips button { text-align: left; padding: 11px 14px; border: none; border-radius: 12px; background: rgba(255,255,255,0.16); color: #fff; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(4px); }

.franja { margin-bottom: 14px; }
.franja-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 0 4px; }
.franja-head h3 { font-size: 15px; font-weight: 700; display: flex; gap: 7px; align-items: center; }
.franja-head h3 .ic { color: var(--green-dark); }
.franja-head .kc { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.meal-item { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.meal-item .mi-body { flex: 1; min-width: 0; }
.meal-item .mi-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal-item .mi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.meal-item .mi-kcal { font-weight: 800; font-size: 15px; white-space: nowrap; }
.meal-item .mi-del { background: none; border: none; color: #b6c2bc; font-size: 15px; padding: 4px; }
.mi-icon { width: 40px; height: 40px; border-radius: 13px; background: var(--green-soft); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.franja-add { width: 100%; padding: 11px; border-radius: 14px; border: 1.5px dashed #d7dedb; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ── SHEET ── */
#sheet-backdrop { position: fixed; inset: 0; background: rgba(23, 37, 31, 0.45); z-index: 40; backdrop-filter: blur(3px); }
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 92dvh; overflow-y: auto;
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(24px + var(--safe-b)); animation: sheetUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-width: 560px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(23,37,31,0.18);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 42px; height: 4px; border-radius: 99px; background: #dbe1de; margin: 4px auto 14px; }
.sheet-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.sheet-title .ic { color: var(--green-dark); }
.scan-opts { display: grid; gap: 10px; }
.scan-opt { display: flex; gap: 14px; align-items: center; padding: 15px; border-radius: 16px; border: 1px solid var(--card-border); background: #fafbfb; color: var(--txt); text-align: left; }
.scan-opt .so-ic { display: flex; width: 38px; height: 38px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); align-items: center; justify-content: center; flex-shrink: 0; }
.scan-opt .so-ic .ic { width: 20px; height: 20px; }
.scan-opt b { font-size: 15.5px; display: block; }
.scan-opt small { color: var(--muted); font-size: 12.5px; }
.analyzing { text-align: center; padding: 30px 10px; }
.analyzing img { width: 130px; height: 130px; object-fit: cover; border-radius: 20px; margin-bottom: 18px; }
.spinner { width: 34px; height: 34px; border: 3px solid #d9efe6; border-top-color: var(--green); border-radius: 50%; margin: 0 auto 14px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing p { color: var(--muted); font-size: 14px; }
.confirm-item { background: #fafbfb; border: 1px solid var(--card-border); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.ci-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ci-head b { font-size: 15px; }
.ci-conf { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; white-space: nowrap; }
.ci-conf.low { background: var(--amber-soft); color: #b45309; }
.ci-macros { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ci-portion { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ci-portion input[type=range] { flex: 1; accent-color: var(--green); }
.ci-portion .grams { font-size: 13px; font-weight: 700; min-width: 52px; text-align: right; }
.ci-del { background: none; border: none; color: #b6c2bc; font-size: 15px; }
.search-input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--card-border); background: #fafbfb; color: var(--txt); font-size: 16px; outline: none; margin-bottom: 12px; }
.search-input:focus { border-color: var(--green); background: #fff; }
.food-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 6px; border-bottom: 1px solid #f0f3f2; }
.food-row .fr-name { font-size: 14.5px; font-weight: 600; }
.food-row .fr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.food-row button { background: var(--green-soft); color: var(--green-dark); border: none; border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.portion-opts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.portion-opt { padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--card-border); background: #fafbfb; color: var(--txt); font-size: 13.5px; font-weight: 600; }
.portion-opt.sel { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }

/* ── DIARIO ── */
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-nav button { background: var(--card); border: 1px solid var(--card-border); color: var(--txt); width: 38px; height: 38px; border-radius: 12px; font-size: 16px; box-shadow: var(--shadow); }
.cal-nav h2 { font-size: 17px; font-weight: 700; text-transform: capitalize; }
.day-summary { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; display: flex; justify-content: space-around; text-align: center; box-shadow: var(--shadow); }
.day-summary b { display: block; font-size: 20px; font-weight: 800; }
.day-summary span { font-size: 11.5px; color: var(--muted); }

/* ── COACH ── */
.coach-wrap { display: flex; flex-direction: column; min-height: calc(100dvh - 220px); }
.coach-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 95px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; animation: fadeUp 0.25s; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border-bottom-right-radius: 6px; }
.msg.coach { align-self: flex-start; background: var(--card); border: 1px solid var(--card-border); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.coach.typing::after { content: "▍"; animation: blink 0.9s infinite; color: var(--green); }
@keyframes blink { 50% { opacity: 0; } }
.coach-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; justify-content: center; }
.chip { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--card); color: var(--txt); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.coach-inputbar {
  position: fixed; left: 0; right: 0; bottom: calc(84px + var(--safe-b)); z-index: 25;
  display: flex; gap: 8px; padding: 10px 14px; max-width: 520px; margin: 0 auto;
  background: rgba(244, 246, 245, 0.92); backdrop-filter: blur(14px);
}
.coach-inputbar input { flex: 1; padding: 13px 16px; border-radius: 999px; border: 1.5px solid var(--card-border); background: #fff; color: var(--txt); font-size: 15px; outline: none; box-shadow: var(--shadow); }
.coach-inputbar button { width: 46px; height: 46px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coach-inputbar button .ic { width: 19px; height: 19px; }
.coach-inputbar button:disabled { opacity: 0.45; }
.coach-quota { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 6px; }

/* ── TRIAL / PAYWALL / INSTALL ── */
.notice-card { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.55; display: flex; gap: 12px; align-items: center; }
.notice-card .nc-ic { display: flex; width: 34px; height: 34px; border-radius: 11px; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,0.7); }
.notice-trial { background: var(--blue-soft); border: 1px solid #c8ddfb; color: #1d4ed8; }
.notice-pay { background: var(--amber-soft); border: 1px solid #f5d9a8; color: #92600a; }
.notice-install { background: var(--green-soft); border: 1px solid #bfe9da; color: var(--green-dark); }
.notice-card button { margin-left: auto; flex-shrink: 0; padding: 9px 14px; border-radius: 12px; border: none; background: linear-gradient(90deg, var(--green-dark), var(--green)); color: #fff; font-weight: 700; font-size: 13px; }
.pay-price { text-align: center; margin: 10px 0 4px; }
.pay-price b { font-size: 44px; font-weight: 800; background: linear-gradient(90deg, var(--green-dark), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-list { list-style: none; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.pay-list li { font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.pay-list li .ic { color: var(--green-dark); margin-top: 2px; }
.ios-steps { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 18px; }
.ios-steps div { display: flex; gap: 12px; align-items: center; font-size: 14.5px; background: #fafbfb; border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; }
.ios-steps span { font-size: 22px; }

/* ── PROGRESO ── */
.chart-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.chart-card h3 { font-size: 16px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.chart-card h3 .ic { color: var(--green-dark); }
.chart-card svg { width: 100%; height: auto; }
.week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-tile { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.stat-tile b { font-size: 22px; font-weight: 800; display: block; }
.stat-tile span { font-size: 12px; color: var(--muted); }

/* ── PERFIL ── */
.profile-sec { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.profile-sec h3 { font-size: 15px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.profile-sec h3 .ic { color: var(--green-dark); }
.prow { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f3f2; font-size: 14.5px; }
.prow:last-child { border: none; }
.prow span { color: var(--muted); }
.danger { color: var(--red) !important; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }

/* ── TOAST / EMPTY ── */
#toast {
  position: fixed; bottom: calc(120px + var(--safe-b)); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--txt); color: #fff;
  padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 90; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 24px rgba(23,37,31,0.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty-state { text-align: center; color: var(--muted); padding: 26px 20px; font-size: 14px; line-height: 1.6; }
.empty-state .big { font-size: 40px; margin-bottom: 8px; color: #c3cec8; }
.empty-state .big .ic { width: 44px; height: 44px; }
