/* NudoCard v0.1 — sistema visual
   Móvil primero · fondos claros · negro/grafito · dorado moderado */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #141416;
  --graphite: #2A2C31;
  --text: #1E1F23;
  --muted: #696C74;
  --line: #E7E4DE;
  --line-2: #F1EFEA;
  --gold: #C39A4B;
  --gold-deep: #8A6827;
  --gold-soft: #F7F0E2;
  --gold-grad: linear-gradient(135deg, #EDCF8C 0%, #C99C47 48%, #8C6A2A 100%);
  --wa: #12823F;
  --wa-hover: #0E6E35;
  --danger: #B42318;
  --ok: #157F3D;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, .05);
  --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 10px 30px rgba(20, 20, 22, .07);
  --shadow-lg: 0 2px 6px rgba(20, 20, 22, .05), 0 24px 60px rgba(20, 20, 22, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --gutter: 16px;
  --tabbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(138, 104, 39, .45); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line-2); padding: 1px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { width: 20px; height: 20px; flex: none; }
.h2 { font-size: clamp(28px, 6vw, 44px); }
.h3 { font-size: clamp(22px, 4.5vw, 28px); }
.h4 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.h4 .ic { color: var(--gold-deep); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 250, 248, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; }
.site-header--app, .site-header--profile { border-bottom-color: var(--line-2); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-knot { width: 36px; height: 36px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand-nudo { color: var(--ink); }
.brand-card { color: var(--gold); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 500; }
.brand-sm .brand-knot { width: 30px; height: 30px; }
.brand-sm .brand-word { font-size: 19px; }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 24px; }
.btn-block { display: flex; width: 100%; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(20, 20, 22, .18); }
.btn-dark:hover { background: var(--graphite); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--line-2); color: var(--ink); }
.btn-light:hover { background: #E9E6E0; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-gold { background: var(--gold-grad); color: #1B1407; box-shadow: 0 6px 18px rgba(140, 106, 42, .25); }
.btn-gold:hover { color: #1B1407; filter: brightness(1.04); }
.btn-gold-outline { background: var(--gold-soft); color: var(--gold-deep); border-color: #E6D3AC; }
.btn-gold-outline:hover { border-color: var(--gold); color: #6E521C; }
.btn-gold-outline.is-done { background: var(--surface); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(18, 130, 63, .25); }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn.is-fav { color: var(--gold-deep); background: var(--gold-soft); border-color: #E6D3AC; }
.icon-btn.is-fav svg { fill: currentColor; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-row > :only-child { grid-column: 1 / -1; }

/* ---------- Mensajes ---------- */
.flashes { padding-top: 12px; display: grid; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 15px; border: 1px solid; margin-bottom: 12px; }
.flashes .flash { margin: 0; }
.flash .ic { margin-top: 1px; }
.flash-success { background: #EEF8F1; border-color: #CBE8D4; color: #0F5A2C; }
.flash-error { background: #FDF0EE; border-color: #F4CFC9; color: #8A1C12; }
.flash-info { background: var(--gold-soft); border-color: #EAD9B6; color: #5E4615; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-warn { background: #FDF0EE; color: #8A1C12; }
.notice-demo { background: var(--line-2); color: var(--graphite); }
.notice-gold { background: var(--gold-soft); color: #5E4615; }
.badge-demo { display: inline-block; font: 700 10px/1 var(--font); letter-spacing: .08em; padding: 4px 6px; border-radius: 6px; background: var(--ink); color: #F1D79E; vertical-align: middle; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 15px; max-width: calc(100% - 32px); }
.has-appnav .toast { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); }

/* ---------- Landing ---------- */
.hero { padding: 28px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 680px; height: 680px; background: radial-gradient(closest-side, rgba(201, 156, 71, .16), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: 40px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 4px rgba(195, 154, 75, .15); }
.display { font-size: clamp(40px, 10.5vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin: 0; font-weight: 600; }
.display-sub { font-family: var(--display); font-size: clamp(30px, 7.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; color: var(--graphite); font-weight: 400; margin: 6px 0 18px; }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: #45474E; max-width: 560px; }
.lead-sm { font-size: 17px; color: #4A4C53; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.cta-row .btn { flex: 1 1 220px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { width: 16px; height: 16px; color: var(--gold-deep); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.phone { width: 282px; border-radius: 42px; background: #0E0E10; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2B2C30; position: relative; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #0E0E10; border-radius: 0 0 14px 14px; z-index: 2; }
.mock-profile { background: var(--bg); border-radius: 32px; overflow: hidden; padding: 0 18px 22px; text-align: center; }
.mock-cover { height: 92px; margin: 0 -18px; background: linear-gradient(160deg, #1C1D21, #34363C); position: relative; }
.mock-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); }
.mock-avatar { margin: -40px auto 10px; position: relative; border: 4px solid var(--bg); }
.mock-name { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); margin: 0; }
.mock-role { font-size: 13px; color: var(--gold-deep); font-weight: 600; margin: 2px 0 2px; }
.mock-city { font-size: 12px; color: var(--muted); display: flex; justify-content: center; gap: 4px; align-items: center; margin-bottom: 14px; }
.mock-city .ic { width: 13px; height: 13px; }
.mock-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 11px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.mock-btn .ic { width: 16px; height: 16px; }
.mock-btn-wa { background: var(--wa); color: #fff; }
.mock-btn-dark { background: var(--ink); color: #fff; }
.mock-btn-light { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.mock-btn-gold { background: var(--gold-soft); color: var(--gold-deep); border: 1px solid #E6D3AC; margin: 0; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nfc-card {
  position: absolute; right: 50%; margin-right: -210px; bottom: 0; width: 196px; height: 120px; border-radius: 16px;
  background: linear-gradient(145deg, #1A1B1F 0%, #2D2F35 55%, #17181B 100%); box-shadow: var(--shadow-lg);
  padding: 16px; transform: rotate(-8deg); border: 1px solid #3A3B40; display: flex; flex-direction: column; justify-content: space-between;
}
.nfc-card img { width: 34px; height: 34px; }
.nfc-card-word { font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; }
.nfc-card-word span { color: #fff; }
.nfc-card-word { background: none; }
.nfc-card-waves { position: absolute; right: 14px; top: 14px; color: #D9B56C; }

.section { padding: 64px 0; }
.section-tint { background: linear-gradient(180deg, #F4F2EE, var(--bg)); }
.section-dark { background: radial-gradient(1200px 400px at 50% -10%, #2C2E34, #121214 70%); color: #D7D8DC; }
.on-dark { color: #fff; }
.eyebrow.on-dark { color: #E1C17E; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 22px; }
.step p { color: #4D4F56; margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #F1D79E; font-family: var(--display); font-weight: 700; margin-bottom: 14px; }
.split { display: grid; gap: 32px; align-items: center; }
.compare { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare li { border-radius: var(--r); padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.compare p { margin: 8px 0 0; color: #4D4F56; }
.compare-old { opacity: .78; }
.compare-new { border-color: #E6D3AC !important; box-shadow: 0 10px 30px rgba(140, 106, 42, .12); }
.compare-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare-tag.gold { color: var(--gold-deep); }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.center-chips { justify-content: center; }
.chip { padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.demo-strip { margin-top: 32px; }
.demo-cards { display: grid; gap: 10px; margin-top: 10px; }
.demo-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; box-shadow: var(--shadow-sm); }
.demo-card:hover { border-color: #E6D3AC; color: inherit; }
.demo-card > span:nth-child(2) { flex: 1; display: grid; }
.demo-card small { color: var(--muted); }
.tiles { display: grid; gap: 14px; margin-top: 32px; }
.tile { border-radius: var(--r-lg); padding: 24px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.tile h3 { color: #fff; font-size: 22px; }
.tile p { margin: 0; color: #B9BBC1; }
.tile-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(225, 193, 126, .12); color: #E1C17E; margin-bottom: 14px; }
.tile-ic .ic { width: 24px; height: 24px; }
.cardholder-mock { background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line-2); order: 2; }
.ch-search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--line-2); color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.ch-search .ic { width: 18px; height: 18px; }
.ch-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line-2); }
.ch-row:last-child { border-bottom: 0; }
.ch-txt { display: grid; flex: 1; min-width: 0; }
.ch-txt small { color: var(--muted); font-size: 13px; }
.ch-fav { color: var(--gold); }
.ch-fav svg { fill: currentColor; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticks .ic { color: var(--gold-deep); }
.cta-band { text-align: center; padding: 44px 22px; border-radius: 28px; background: linear-gradient(180deg, #FFFFFF, #F6F2EA); border: 1px solid #EDE3CF; box-shadow: var(--shadow); }
.cta-band img { margin: 0 auto 10px; width: 88px; height: 88px; }
.cta-band .h2 { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding: 36px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; gap: 22px; }
.footer-brand p { margin: 8px 0 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--graphite); }
.footer-legal { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- Avatares ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--line-2); flex: none; }
.avatar-sm { width: 44px; height: 44px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 84px; height: 84px; }
.avatar-xl { width: 124px; height: 124px; }
.avatar-initials { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 600; color: #F1D79E; background: linear-gradient(145deg, #1B1C20, #3A3C42); letter-spacing: .02em; }
.avatar-sm.avatar-initials { font-size: 16px; }
.avatar-md.avatar-initials { font-size: 20px; }
.avatar-lg.avatar-initials { font-size: 28px; }
.avatar-xl.avatar-initials { font-size: 40px; }

/* ---------- Perfil público ---------- */
.page-profile { background: linear-gradient(180deg, #F3F1EC 0, var(--bg) 340px); }
.profile-page { max-width: 520px; margin: 0 auto; padding: 14px var(--gutter) 28px; }
.owner-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--ink); color: #fff; margin-bottom: 12px; font-size: 14px; }
.owner-bar span { display: inline-flex; gap: 8px; align-items: center; }
.ask-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #EAD9B6; margin-bottom: 12px; }
.ask-save p { margin: 0; font-size: 15px; }
.pcard { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line-2); }
.pcard-cover { height: 118px; background: linear-gradient(160deg, #18191C 0%, #2E3036 60%, #1C1D21 100%); position: relative; overflow: hidden; }
.pcard-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad); }
.pcard-knot { position: absolute; right: -24px; top: -18px; width: 140px; height: 140px; opacity: .22; }
.pcard-body { padding: 0 20px 22px; text-align: center; }
.pcard-avatar { margin: -64px auto 12px; width: max-content; border-radius: 50%; padding: 5px; background: var(--surface); position: relative; box-shadow: 0 6px 20px rgba(20, 20, 22, .14); }
.pcard-name { font-size: clamp(26px, 7vw, 32px); margin-bottom: 4px; }
.pcard-role { font-weight: 600; color: var(--graphite); margin-bottom: 8px; font-size: 16px; }
.pcard-spec { color: var(--gold-deep); }
.sep { color: var(--gold); padding: 0 2px; }
.pcard-meta { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.pcard-meta li { display: inline-flex; gap: 6px; align-items: center; }
.pcard-meta .ic { width: 16px; height: 16px; }
.pcard-bio { color: #46484F; font-size: 15.5px; line-height: 1.6; margin: 0 auto 20px; max-width: 420px; }
.pcard-actions { display: grid; gap: 10px; text-align: left; }
.pcard-actions form { margin: 0; }
.plinks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; text-align: left; }
.plinks a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; }
.plinks a:hover { border-color: var(--ink); color: var(--ink); }
.plinks a > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plinks .ic { color: var(--gold-deep); }
.plinks .ic-go { color: var(--muted); width: 18px; height: 18px; }
.profile-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 8px; }
.profile-footer-brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--display); font-weight: 600; color: var(--graphite); font-size: 15px; }
.profile-footer-brand b { color: var(--gold-deep); font-weight: 500; }
.profile-footer-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.profile-footer-cta .ic { width: 16px; height: 16px; }

/* ---------- Diálogo ---------- */
.dialog { border: 0; padding: 0; border-radius: 24px; box-shadow: var(--shadow-lg); width: min(360px, calc(100% - 32px)); background: var(--surface); color: var(--text); }
.dialog::backdrop { background: rgba(14, 14, 16, .55); backdrop-filter: blur(3px); }
.dialog-body { padding: 26px 22px 22px; text-align: center; position: relative; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--line-2); display: grid; place-items: center; cursor: pointer; }
.qr-img { width: 100%; max-width: 280px; height: auto; margin: 10px auto 12px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; }

/* ---------- Autenticación ---------- */
.auth-wrap { padding: 28px var(--gutter) 56px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-lg); padding: 28px 22px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.auth-card.center { text-align: center; }
.auth-card.center > img, .auth-card.center > .avatar { margin: 0 auto 14px; }
.auth-card .btn-block + .btn-block { margin-top: 10px; }
.auth-card form .btn { margin-top: 6px; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.auth-alt a { color: var(--ink); font-weight: 600; }
.big-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--gold-soft); color: var(--gold-deep); margin: 0 auto 14px; }
.big-ic .ic { width: 30px; height: 30px; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--graphite); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], input[type=url], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195, 154, 75, .16); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.error { font-size: 13px; color: var(--danger); margin: 6px 0 0; font-weight: 500; }
.check label, .check-inline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--text); }
.check input, .check-inline input, .switch input { width: 20px; height: 20px; accent-color: var(--ink); margin: 2px 0 0; flex: none; }
.check-inline { margin-top: 8px; align-items: center; }
.grid-2 { display: grid; gap: 0 14px; }
.with-vis { display: grid; grid-template-columns: 1fr 118px; gap: 8px; }
.slug-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.slug-input span { padding: 0 2px 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.slug-input input { border: 0; min-height: 48px; padding-left: 2px; box-shadow: none !important; }
.slug-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195, 154, 75, .16); }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.photo-field { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.photo-preview img, .photo-preview .avatar { width: 84px; height: 84px; }
fieldset.card { margin: 0; min-width: 0; }
fieldset.card legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; }
fieldset.card legend + * { clear: both; }
.form-stack { display: grid; gap: 14px; }
.sticky-save { position: sticky; bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom)); z-index: 5; padding: 8px 0 0; }
.inline-form { display: grid; gap: 0 12px; align-items: end; }
.inline-form .btn { margin-bottom: 16px; }
.mini-form { display: flex; gap: 6px; }
.mini-form input { min-height: 38px; padding: 6px 10px; font-size: 14px; min-width: 150px; }

/* ---------- Área privada ---------- */
.has-appnav { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.app-topnav { display: none; }
.app-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
}
.app-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--muted); }
.app-tabbar a.is-active { color: var(--ink); }
.app-tabbar a.is-active .ic { color: var(--gold-deep); }
.app-wrap { max-width: 640px; margin: 0 auto; padding: 18px var(--gutter) 32px; display: grid; gap: 14px; }
.app-wrap > form { margin: 0; }
.app-wide { max-width: 1160px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head h1 { margin: 0; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.app-hello { display: flex; align-items: center; gap: 14px; }
.app-hello h1 { margin: 0; }
.app-hello p { margin: 0; }
.link-card { display: grid; gap: 12px; background: linear-gradient(180deg, #fff, #FBF8F2); }
.link-card p { margin: 0; }
.link-big { font-family: var(--display); font-size: 22px; word-break: break-all; }
.link-big span { color: var(--muted); font-weight: 400; }
.link-big strong { color: var(--ink); font-weight: 600; }
.small-link { font-size: 18px; margin: 4px 0 6px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.progress-head strong { color: var(--gold-deep); font-family: var(--display); font-size: 20px; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin: 6px 0 14px; }
.progress-bar { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }
.w-0 { width: 0 } .w-5 { width: 5% } .w-10 { width: 10% } .w-15 { width: 15% } .w-20 { width: 20% } .w-25 { width: 25% } .w-30 { width: 30% } .w-35 { width: 35% } .w-40 { width: 40% } .w-45 { width: 45% } .w-50 { width: 50% } .w-55 { width: 55% } .w-60 { width: 60% } .w-65 { width: 65% } .w-70 { width: 70% } .w-75 { width: 75% } .w-80 { width: 80% } .w-85 { width: 85% } .w-90 { width: 90% } .w-95 { width: 95% } .w-100 { width: 100% }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; color: var(--graphite); font-size: 15px; }
.checklist li .ic { width: 18px; height: 18px; color: var(--muted); }
.checklist li.ok { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .2); }
.checklist li.ok .ic { color: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 10px; text-align: center; display: grid; gap: 2px; }
.stat strong { font-family: var(--display); font-size: 26px; color: var(--ink); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 500; }
.stats-6 { grid-template-columns: repeat(2, 1fr); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-item { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 600; text-align: center; }
.quick-item .ic { width: 24px; height: 24px; color: var(--gold-deep); }
.quick-item small { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 99px; background: var(--line-2); font-size: 12px; margin-left: 2px; }
.qr-card { display: grid; gap: 10px; }
.qr-card .qr-img { margin: 0 auto; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.search .ic { color: var(--muted); }
.search input { border: 0; padding-left: 0; box-shadow: none !important; background: transparent; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195, 154, 75, .16); }
.tabs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs a, .tab-soon { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs .ic { width: 16px; height: 16px; }
.tab-soon { color: var(--muted); border-style: dashed; font-weight: 500; }
.empty { display: grid; justify-items: center; padding: 34px 22px; }
.ch-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ch-item { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 10px 10px 12px; box-shadow: var(--shadow-sm); }
.ch-item.is-off { opacity: .55; }
.ch-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.ch-main .ch-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-main .ch-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-actions { display: flex; gap: 6px; }
.ch-actions form { margin: 0; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.admin-nav a { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.admin-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card.table-wrap { padding: 6px 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table form { margin: 0; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pill-on { background: #EEF8F1; color: #0F5A2C; }
.pill-off { background: var(--line-2); color: var(--muted); }

/* ---------- Texto legal ---------- */
.prose { max-width: 720px; }
.prose p { color: #3F4148; }
.prose h2 { margin-top: 1.6em; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 380px) {
  .hide-xs { display: none; }
  .action-row { grid-template-columns: 1fr; }
  .btn { padding: 0 14px; }
}
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .demo-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-6 { grid-template-columns: repeat(3, 1fr); }
  .inline-form { grid-template-columns: 140px 1fr auto; }
  .auth-card { padding: 34px 32px; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 768px) {
  .hero { padding: 56px 0 84px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .cardholder-mock { order: 0; }
  .section { padding: 92px 0; }
  .demo-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero-visual { padding: 0 0 40px; }
  .cta-row .btn { flex: 0 0 auto; }
  .has-appnav { padding-bottom: 0; }
  .app-tabbar { display: none; }
  .app-topnav { display: flex; gap: 4px; }
  .app-topnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
  .app-topnav a:hover { background: var(--line-2); color: var(--ink); }
  .app-topnav a.is-active { color: var(--ink); background: var(--line-2); }
  .app-topnav a.is-active .ic { color: var(--gold-deep); }
  .app-topnav .ic { width: 18px; height: 18px; }
  .sticky-save { bottom: 12px; }
  .has-appnav .toast { bottom: 24px; }
  .stats-6 { grid-template-columns: repeat(6, 1fr); }
  .page-profile .profile-page { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }
.photo-preview { flex: none; }
.photo-preview img { object-fit: cover; border-radius: 50%; }
fieldset.card legend.h4 { font-family: var(--display); font-weight: 600; font-size: 19px; }

/* ---------- v0.1.1: beta ---------- */
.quick-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .quick-4 { grid-template-columns: repeat(4, 1fr); } }
.metrics { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; }
.metrics li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.metrics li:last-child { border-bottom: 0; }
.metrics strong { font-family: var(--display); font-size: 18px; color: var(--ink); }
.toggles { display: grid; gap: 14px; margin: 4px 0 20px; }
.mini-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.link-action { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: none; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--graphite); text-decoration: none; cursor: pointer; }
.link-action:hover { background: var(--line-2); color: var(--ink); }
.link-action .ic { width: 18px; height: 18px; color: var(--gold-deep); }
.nfc-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nfc-link > span { flex: 1; display: grid; }
.nfc-link .ic { color: var(--gold-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8F1B12; color: #fff; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--danger); min-height: 28px; }
.danger-zone[open] summary { margin-bottom: 12px; }
.draft-banner { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 8px 12px; border-radius: 10px; background: #FDF0EE; color: #8A1C12; border: 1px solid #F4CFC9; margin-bottom: 18px; }
.legal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px 22px; box-shadow: var(--shadow-sm); }
.prose .ticks { margin: 18px 0; }
.prose .ticks li { align-items: flex-start; font-weight: 400; }
.prose .ticks .ic { margin-top: 3px; }
.ch-item[hidden] { display: none; }
.tabs a, .tab-soon, .admin-nav a { min-height: 40px; }
.action-row > * { min-width: 0; }
.action-row .btn { padding: 0 10px; white-space: normal; text-align: center; line-height: 1.15; }
.action-row form .btn { width: 100%; }
