/* TotalSwim Race Fuel — estilos. Móvil primero, claro y oscuro. */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --text: #0e1b33;
  --muted: #55637d;
  --border: #d9e2ef;
  --primary: #0b3a82;
  --primary-ink: #ffffff;
  --accent: #1e7fe0;
  --accent-soft: #e3f0ff;
  --alert: #d42e0c;
  --alert-bg: #ffece7;
  --good: #14785a;
  --good-bg: #e2f5ee;
  --warn: #8a5a00;
  --warn-bg: #fff3d6;
  --c-consenso-bg: #e3f0ff; --c-consenso: #0b4fa8;
  --c-limitada-bg: #fff3d6; --c-limitada: #8a5a00;
  --c-practica-bg: #eceff4; --c-practica: #44526b;
  --shadow: 0 1px 2px rgba(11, 58, 130, .06), 0 6px 18px rgba(11, 58, 130, .07);
  --radius: 16px;
  --tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1426; --surface: #101e38; --surface-2: #17294a; --text: #eaf0fa; --muted: #9db0cf;
    --border: #25395e; --primary: #7db6f7; --primary-ink: #06142b; --accent: #4c9af0; --accent-soft: #14305a;
    --alert: #ff7a5c; --alert-bg: #3a1a14; --good: #52d1a3; --good-bg: #0f2f26; --warn: #f1c36a; --warn-bg: #33270c;
    --c-consenso-bg: #14305a; --c-consenso: #9ccbff; --c-limitada-bg: #33270c; --c-limitada: #f1c36a;
    --c-practica-bg: #1b2a45; --c-practica: #b3c2dc;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #0a1426; --surface: #101e38; --surface-2: #17294a; --text: #eaf0fa; --muted: #9db0cf;
  --border: #25395e; --primary: #7db6f7; --primary-ink: #06142b; --accent: #4c9af0; --accent-soft: #14305a;
  --alert: #ff7a5c; --alert-bg: #3a1a14; --good: #52d1a3; --good-bg: #0f2f26; --warn: #f1c36a; --warn-bg: #33270c;
  --c-consenso-bg: #14305a; --c-consenso: #9ccbff; --c-limitada-bg: #33270c; --c-limitada: #f1c36a;
  --c-practica-bg: #1b2a45; --c-practica: #b3c2dc;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
a { color: var(--accent); }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- estructura ---------- */
.app-shell { max-width: 640px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar h1 { font-size: 1.15rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-chip { width: 40px; height: 40px; border-radius: 12px; background: #0b3a82; display: grid; place-items: center; box-shadow: var(--shadow); flex: none; overflow: hidden; }
.brand-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text); flex: none; }
main { flex: 1; padding: 8px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
main.no-tabs { padding-bottom: 32px; }
.stack > * + * { margin-top: 14px; }
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 640px; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tab-h);
  color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; text-align: center;
}
.tabbar a[aria-current="page"] { color: var(--primary); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.4; }
svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.sm { width: 18px; height: 18px; }

/* ---------- componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2, .card h3 { margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px;
  border: 1.5px solid transparent; font-weight: 650; text-decoration: none; background: var(--primary); color: var(--primary-ink);
}
.btn:active { transform: translateY(1px); }
.btn.block { display: flex; width: 100%; }
.btn.secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.danger { background: var(--surface); color: var(--alert); border-color: var(--alert); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.consenso { background: var(--c-consenso-bg); color: var(--c-consenso); }
.badge.limitada { background: var(--c-limitada-bg); color: var(--c-limitada); }
.badge.practica { background: var(--c-practica-bg); color: var(--c-practica); }
.badge.opt { background: transparent; border: 1px dashed var(--border); color: var(--muted); }
.badge.opt::before { display: none; }
.badge.plain::before { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; font-weight: 600; }
.chip.carb { background: var(--accent-soft); color: var(--primary); }
.chip.fluid { background: var(--accent-soft); color: var(--primary); }

.field { display: block; }
.field > span.lbl { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; }
.field .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=number], input[type=time], input[type=date], input[type=search], select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
}
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input { border-color: var(--alert); }
.err { color: var(--alert); font-size: .84rem; margin-top: 4px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: .92rem;
}
.seg input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg input:disabled + span { opacity: .5; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); min-height: 44px; }
.checks input { width: 20px; height: 20px; accent-color: var(--primary); }

.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; color: var(--primary); border-radius: 12px; }
.stepper button[disabled] { opacity: .3; }
.stepper output { min-width: 34px; text-align: center; font-weight: 750; font-size: 1.1rem; }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: .92rem; align-items: flex-start; }
.alert svg { margin-top: 2px; }
.alert.warn { background: var(--alert-bg); color: var(--alert); }
.alert.info { background: var(--accent-soft); color: var(--primary); }
.alert.good { background: var(--good-bg); color: var(--good); }
.alert strong { font-weight: 700; }
.alert.mid { background: var(--warn-bg); color: var(--warn); }

.hero { text-align: center; padding: 12px 0 4px; }
.hero .logo-card { background: #fff; border-radius: 22px; padding: 18px; display: inline-block; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero .logo-card img { width: min(300px, 74vw); display: block; }
.hero h1 { font-size: 1.7rem; margin-bottom: 8px; }
.hero p { color: var(--muted); max-width: 34ch; margin-left: auto; margin-right: auto; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points .pic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; flex: none; }

.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- pasos del asistente ---------- */
.steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--border); }
.steps i.on { background: var(--accent); }
.jcard { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.jcard + .jcard { margin-top: 12px; }
.ev { border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; }
.ev:first-of-type { border-top: 0; padding-top: 0; margin-top: 10px; }
.total-pill { display: inline-flex; background: var(--accent-soft); color: var(--primary); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .85rem; }

/* ---------- resumen ---------- */
.day-card { display: block; text-decoration: none; color: inherit; }
.day-card .dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dot-tag { font-size: .78rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.dot-tag.v { background: #e6f4ea; color: #1d6b3c; }
.dot-tag.m { background: var(--accent-soft); color: var(--primary); }
.dot-tag.f { background: #ffe9e3; color: #b32a0f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dot-tag.v { background: #123223; color: #7fd7a3; }
  :root:not([data-theme="light"]) .dot-tag.f { background: #3a1a14; color: #ff9d85; }
}
:root[data-theme="dark"] .dot-tag.v { background: #123223; color: #7fd7a3; }
:root[data-theme="dark"] .dot-tag.f { background: #3a1a14; color: #ff9d85; }

/* ---------- línea de tiempo ---------- */
.daytabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.daytabs::-webkit-scrollbar { display: none; }
.daytabs a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 650; font-size: .92rem; }
.daytabs a[aria-current="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: .85rem; }
.filters button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--primary); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 1.15rem; }
.stat span { font-size: .75rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { display: grid; grid-template-columns: 74px 22px 1fr; gap: 8px; position: relative; padding-bottom: 14px; }
.tl-time { white-space: nowrap; font-size: .76rem; font-weight: 700; color: var(--muted); text-align: right; padding-top: 14px; line-height: 1.25; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: -14px; width: 2px; background: var(--border); }
.tl-item:last-child .tl-rail::before { bottom: 50%; }
.tl-dot { position: relative; z-index: 1; margin-top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.tl-item.k-evento .tl-dot { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.tl-item.k-calentamiento .tl-dot { background: var(--surface-2); box-shadow: 0 0 0 2px var(--primary); }
.tl-item.optional .tl-dot { background: var(--surface); box-shadow: 0 0 0 2px var(--muted); }
.tl-item.done .tl-dot { background: var(--good); box-shadow: 0 0 0 2px var(--good); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: stretch; overflow: hidden; min-width: 0; }
.tl-item.alertish .tl-card { border-color: var(--alert); }
.tl-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 12px 6px 12px 14px; display: block; }
.tl-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; }
.tl-title svg { color: var(--primary); }
.tl-sub { display: block; color: var(--muted); font-size: .82rem; margin: 2px 0 8px; }
.tl-item.k-evento .tl-card, .tl-item.k-calentamiento .tl-card { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: none; }
.tl-item.k-evento .tl-title svg, .tl-item.k-calentamiento .tl-title svg { color: var(--primary-ink); }
.tl-item.k-evento .tl-sub, .tl-item.k-calentamiento .tl-sub { color: color-mix(in srgb, var(--primary-ink) 80%, transparent); margin-bottom: 0; }
.tl-item.k-calentamiento .tl-card { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.tl-item.k-calentamiento .tl-title svg { color: var(--primary); }
.tl-item.k-calentamiento .tl-sub { color: var(--muted); }
.tl-item.k-evento .tl-main, .tl-item.k-calentamiento .tl-main { cursor: default; }
.tl-item.done .tl-title span.t { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .7; }
.tl-check { width: 52px; border: 0; border-left: 1px solid var(--border); background: transparent; display: grid; place-items: center; color: var(--muted); }
.tl-check span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; }
.tl-item.done .tl-check span { background: var(--good); border-color: var(--good); color: #fff; }
.tl-check svg { width: 16px; height: 16px; opacity: 0; }
.tl-item.done .tl-check svg { opacity: 1; stroke-width: 3; }
.tl-alert { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; background: var(--alert-bg); color: var(--alert); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.tl-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---------- hoja de detalle ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5, 12, 28, .55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet {
  width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: rise .24s cubic-bezier(.2, .8, .2, 1);
}
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: var(--border); margin: 0 auto 14px; }
.sheet h2 { font-size: 1.3rem; }
.sheet section { margin-top: 18px; }
.sheet section > h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.amounts { display: grid; gap: 8px; }
.amount { display: flex; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.amount b { font-size: 1.05rem; }
.opt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt-list li { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.opt-list .sum { color: var(--muted); font-size: .8rem; display: block; margin-top: 2px; }
.why-list { padding-left: 18px; margin: 0; display: grid; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

/* ---------- hidratación ---------- */
.urine { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 8px 0; }
.urine i { height: 34px; border-radius: 8px; display: block; border: 1px solid rgba(0, 0, 0, .08); }
.result-card { border-radius: var(--radius); padding: 16px; }
.result-card.ok { background: var(--good-bg); color: var(--good); }
.result-card.mid { background: var(--warn-bg); color: var(--warn); }
.result-card.severe, .result-card.gain { background: var(--alert-bg); color: var(--alert); }
.result-card .big { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 10px; font-size: .92rem; }
.kv b { text-align: right; }

/* ---------- biblioteca ---------- */
.tabs2 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.tabs2 a { text-align: center; padding: 10px 6px; border-radius: 11px; text-decoration: none; color: var(--muted); font-weight: 650; font-size: .9rem; }
.tabs2 a[aria-current="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.search input { padding-left: 44px; }
.lib-card { display: block; text-decoration: none; color: inherit; }
.lib-card h3 { margin: 6px 0 4px; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.tag.mito { color: var(--alert); }
.article h1 { font-size: 1.5rem; margin: 6px 0 10px; }
.article h2 { font-size: 1.05rem; margin: 20px 0 6px; color: var(--primary); }
.article ul { padding-left: 20px; margin: 0 0 .8em; }
.article li { margin-bottom: 6px; }
.sources-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sources-list a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); }
.sources-list small { color: var(--muted); display: block; }
.tag-mito-banner { background: var(--alert-bg); color: var(--alert); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: .85rem; display: inline-block; }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow);
}
.disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 20px; }

@media (min-width: 700px) {
  .app-shell { padding-top: 12px; }
  .overlay { align-items: center; }
  .sheet { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  .tabbar, .topbar .icon-btn, .tl-check { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- compras ---------- */
.card h3.cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; }
.shop-list { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 6px; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; min-height: 48px; background: var(--surface); cursor: pointer; }
.shop-row input { width: 22px; height: 22px; accent-color: var(--good); flex: none; }
.shop-name { flex: 1; min-width: 0; }
.shop-qty { font-weight: 700; white-space: nowrap; color: var(--primary); }
.shop-row.done { background: var(--surface-2); }
.shop-row.done .shop-name { text-decoration: line-through; opacity: .6; }
.when { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--primary); margin-bottom: 8px; }
.when.fresh { background: var(--good-bg); color: var(--good); }

/* ---------- marca ---------- */
.hero .brand-card { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.brand-mark { width: 104px; height: 104px; border-radius: 26px; box-shadow: var(--shadow); display: block; margin-bottom: 8px; }
.wordmark { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.wordmark .w1 { color: var(--text); }
.wordmark .w2 { color: var(--accent); }
.tagline { font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.credit { text-align: center; font-size: .75rem; color: var(--muted); margin: 8px 0 0; letter-spacing: .02em; }

/* ---------- acceso ---------- */
.code-input { text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: .5em; padding-left: .5em; }
/* campos: texto siempre legible (también con autocompletar del navegador) */
input::placeholder { color: var(--muted); opacity: 1; }
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; transition: background-color 9999s;
}

/* ---------- administración ---------- */
.adm-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.adm-tile { display: grid; gap: 2px; padding: 12px 14px; }
.adm-tile b { font-size: 1.5rem; }
.adm-email { overflow-wrap: anywhere; }
.badge.bad { background: color-mix(in srgb, var(--alert) 16%, transparent); color: var(--alert); }
