:root {
  --navy-900: #0a1730; --navy-800: #102244; --navy-700: #17305c; --navy: #12264a;
  --teal: #12a39b; --teal-600: #0e8a83; --teal-soft: #e5f6f5; --teal-line: #b6e4e1;
  --red: #d8222b; --gold: #b7882a;
  --bg: #f3f6fb; --card: #ffffff; --text: #16233b; --muted: #61708a; --line: #e2e8f2;
  --warn-bg: #fff7e5; --warn-line: #efd28a; --bad-bg: #fff0f0; --bad-line: #f0b4b4;
  --radius: 18px; --shadow: 0 1px 2px rgba(16,34,68,.06), 0 8px 28px rgba(16,34,68,.07);
  --shadow-lg: 0 2px 4px rgba(16,34,68,.08), 0 18px 48px rgba(16,34,68,.14);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.has-wm::before { content: ""; position: fixed; right: -120px; bottom: -80px; width: 640px; height: 620px; background: url(/img/marca-agua.png) no-repeat center / contain; opacity: .5; pointer-events: none; z-index: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(18,163,155,.45); outline-offset: 2px; }

/* ---------- Encabezado ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: #fff; color: var(--navy); box-shadow: 0 2px 14px rgba(16,34,68,.08); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0 22%, var(--teal) 22% 100%); opacity: .95; }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.topbar img.logo { height: 46px; display: block; }
.topbar .sp { flex: 1; }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--teal-soft); color: var(--teal-600); border: 1px solid var(--teal-line); padding: 5px 12px; border-radius: 99px; }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Estructura ---------- */
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 24px 20px 120px; }
.page-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; color: var(--navy); }
.page-title p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.layout { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .layout { grid-template-columns: 430px 1fr; } .results-col { position: sticky; top: 92px; } }

/* ---------- Formulario ---------- */
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--teal)); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.step-h h2 { margin: 0; font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.step-h small { color: var(--muted); font-size: 13px; margin-left: auto; }
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
select, input[type=number], input[type=text], input[type=password] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; color: var(--text); font-family: inherit; transition: .15s; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2361708a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
select:hover, input:hover { border-color: #c8d2e3; }
select:focus, input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18,163,155,.14); }
.reveal { animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.person { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; background: #f8fafd; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; animation: fadeUp .25s ease both; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-600); display: grid; place-items: center; }
.person.titular .avatar { background: var(--navy); color: #fff; }
.p-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-role { font-weight: 700; font-size: 14px; color: var(--navy); min-width: 70px; }
.person .p-age { width: 84px; padding: 9px 10px; font-size: 16px; text-align: center; }
.p-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #b0392f; font-size: 22px; cursor: pointer; line-height: 1; }
.p-x:hover { background: #fdecea; }
.seg { display: inline-flex; background: #e9eef6; border-radius: 11px; padding: 3px; gap: 2px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .15s; user-select: none; }
.seg input:checked + label { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16,34,68,.16); }
.seg input:focus-visible + label { outline: 3px solid rgba(18,163,155,.45); }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip-btn { background: #fff; border: 1.5px dashed var(--teal); color: var(--teal-600); font-weight: 650; font-size: 14px; padding: 8px 14px; border-radius: 99px; cursor: pointer; transition: .15s; }
.chip-btn:hover:not(:disabled) { background: var(--teal-soft); }
.chip-btn:disabled { opacity: .4; cursor: not-allowed; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .opt { display: block; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; height: 100%; transition: .15s; }
.choice .opt small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.choice input:checked + .opt { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px rgba(18,163,155,.15); }
.choice input:focus-visible + .opt { outline: 3px solid rgba(18,163,155,.45); }

.switch { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-of-type { border-top: 0; }
.switch .tx { flex: 1; font-size: 14.5px; }
.switch .tx small { display: block; color: var(--muted); font-size: 12.5px; }
.switch input { position: absolute; opacity: 0; }
.switch .tg { width: 44px; height: 26px; border-radius: 99px; background: #cdd6e4; position: relative; transition: .18s; flex: none; }
.switch .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .18s; }
.switch input:checked + .tg { background: var(--teal); }
.switch input:checked + .tg::after { transform: translateX(18px); }
.switch input:focus-visible + .tg { outline: 3px solid rgba(18,163,155,.45); outline-offset: 2px; }

.conds-h { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 650; color: var(--navy); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.conds-h .count { background: var(--red); color: #fff; font-size: 12px; border-radius: 99px; padding: 1px 8px; margin-left: 8px; }
.conds { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
@media (min-width: 520px) { .conds { grid-template-columns: 1fr 1fr; } }
.cond { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; transition: .12s; }
.cond input { accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.cond:has(input:checked) { border-color: #e9a3a3; background: var(--bad-bg); }

.error { background: var(--bad-bg); border: 1px solid var(--bad-line); color: #8a2323; padding: 11px 14px; border-radius: 12px; margin: 12px 0 0; font-size: 14px; }
.cta { position: relative; width: 100%; margin-top: 6px; border: 0; border-radius: 14px; padding: 15px 18px; font-size: 17px; font-weight: 700; letter-spacing: .01em; color: #fff; cursor: pointer; background: linear-gradient(100deg, var(--teal-600), var(--teal) 60%, #28bdb4); box-shadow: 0 8px 22px rgba(18,163,155,.35); transition: transform .12s, box-shadow .12s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(18,163,155,.42); }
.cta:active { transform: translateY(0); }
.cta[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 979px) { .cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(243,246,251,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); } .cta-bar .cta { margin: 0; } }

/* ---------- Resultados ---------- */
.empty { text-align: center; background: var(--card); border: 1.5px dashed #cbd6e8; border-radius: var(--radius); padding: 48px 24px; color: var(--muted); }
.empty img { width: 96px; opacity: .9; margin-bottom: 10px; }
.empty h3 { margin: 4px 0 6px; color: var(--navy); font-size: 19px; }
.empty ul { list-style: none; padding: 0; margin: 14px auto 0; display: inline-grid; gap: 6px; text-align: left; font-size: 14px; }
.empty li::before { content: "\2713"; color: var(--teal); font-weight: 800; margin-right: 8px; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--navy); box-shadow: 0 1px 2px rgba(16,34,68,.05); }
.tag.ok { background: var(--teal-soft); border-color: var(--teal-line); color: var(--teal-600); }
.tag.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #7a5a10; }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; animation: fadeUp .4s ease both; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #c1cbdc; }
.card.t-aca::before { background: linear-gradient(var(--navy-700), var(--navy)); }
.card.t-presidio::before { background: linear-gradient(var(--teal), var(--teal-600)); }
.card.t-tele::before { background: linear-gradient(#8a7bd8, #5b4fb3); }
.card.t-no::before { background: #d7dce6; }
.card.first { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,163,155,.14), var(--shadow-lg); }
.card.no { background: #fafbfd; box-shadow: none; }
.card-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.t-aca .ico { background: linear-gradient(135deg, var(--navy-700), var(--navy)); }
.t-presidio .ico { background: linear-gradient(135deg, var(--teal), var(--teal-600)); }
.t-tele .ico { background: linear-gradient(135deg, #8a7bd8, #5b4fb3); }
.t-no .ico { background: #b9c2d3; }
.card-h h3 { margin: 0; font-size: 19px; color: var(--navy); letter-spacing: -.01em; }
.card-h .sub { color: var(--muted); font-size: 13.5px; }
.badge { margin-left: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; background: #e9eef6; color: var(--muted); }
.badge.first { background: linear-gradient(100deg, var(--teal-600), var(--teal)); color: #fff; box-shadow: 0 4px 12px rgba(18,163,155,.35); }
.badge.no { background: #fde8e8; color: #9b2b2b; }
.lead { color: var(--muted); font-size: 14.5px; margin: 12px 0 4px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 6px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; text-align: center; background: #f6f9fd; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 8px 12px; cursor: pointer; transition: .15s; font-family: inherit; color: inherit; }
.tile:hover { border-color: var(--teal-line); transform: translateY(-2px); }
.tile .amt { display: block; font-size: 23px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.tile .amt i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.tile .lab { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tile .lab b { color: var(--navy); }
.tile.sel { background: var(--teal-soft); border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,163,155,.16); }
.tile.sel::after { content: "\2713"; position: absolute; top: 6px; right: 9px; color: var(--teal-600); font-weight: 900; font-size: 14px; }
.tile .tag-mini { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--teal-600); }
.plan .nm { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan.silver .nm { color: #6d7787; } .plan.gold .nm { color: var(--gold); } .plan.platinum .nm { color: #4a6280; } .plan.titanium .nm { color: var(--navy); }
.plan .first-m { font-size: 12px; color: var(--muted); margin-top: 3px; display: block; }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #6d5210; border-radius: 12px; padding: 9px 12px; margin-top: 10px; font-size: 13.5px; }
.note.bad { background: var(--bad-bg); border-color: var(--bad-line); color: #8a2323; }
.note.info { background: var(--teal-soft); border-color: var(--teal-line); color: #0c6b66; }
a.go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: linear-gradient(100deg, var(--navy-800), var(--navy-700)); color: #fff; text-decoration: none; padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: 15.5px; box-shadow: 0 8px 20px rgba(16,34,68,.25); transition: .15s; }
a.go:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16,34,68,.3); }
details.more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--teal-600); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "\25B8  "; }
details.more[open] summary::before { content: "\25BE  "; }
table.det { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
table.det td, table.det th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.plan-desc { font-size: 13.5px; color: var(--muted); margin: 8px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-out { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 12px; cursor: pointer; transition: .15s; }
.btn-out:hover { background: var(--navy); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--navy-900); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 26px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr; position: relative; z-index: 1; }
@media (min-width: 900px) { .login { grid-template-columns: 1.05fr 1fr; } }
.login-hero { position: relative; overflow: hidden; color: #fff; padding: 36px 32px 44px; background: radial-gradient(900px 500px at 10% 0%, #1d4a8a 0%, transparent 60%), linear-gradient(150deg, var(--navy-900), var(--navy-700)); display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.login-hero::before { content: ""; position: absolute; right: -140px; bottom: -150px; width: 560px; height: 560px; background: url(/img/emblema.png) no-repeat center / contain; opacity: .09; filter: grayscale(1) brightness(3); }
.login-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 22%, var(--teal) 22% 100%); }
.login-hero .plate { align-self: flex-start; background: #fff; border-radius: 18px; padding: 12px 20px; margin-bottom: 34px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.login-hero .plate img { width: 250px; max-width: 62vw; display: block; }
.login-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.03em; position: relative; }
.login-hero h1 span { background: linear-gradient(100deg, #7be3dc, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero p { color: #b9c7e2; max-width: 440px; margin: 0 0 22px; font-size: 16px; position: relative; }
.feats { display: grid; gap: 10px; position: relative; }
.feat { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.feat .d { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
@media (max-width: 899px) { .feats, .login-hero p { display: none; } .login-hero { padding: 26px 24px; min-height: 0; } .login-hero .plate { margin-bottom: 14px; padding: 8px 14px; } .login-hero .plate img { width: 170px; } .login-hero h1 { font-size: 24px; margin: 0; } }
.login-form { display: grid; place-items: center; padding: 28px 20px 48px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px 26px; box-shadow: var(--shadow-lg); animation: fadeUp .4s ease both; }
.login-card .em { width: 54px; margin-bottom: 8px; }
.login-card h2 { margin: 0 0 4px; font-size: 24px; color: var(--navy); letter-spacing: -.02em; }
.login-card .muted { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.pw button:hover { background: #eef2f8; }
.pw input { padding-right: 76px; }
.login-card .cta { margin-top: 18px; }
.secure { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); }

[hidden] { display: none !important; }
a.btn-out { display: inline-flex; align-items: center; text-decoration: none; }
.alt-links { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.alt-links a { color: var(--teal-600); font-weight: 650; text-decoration: none; }
.alt-links a:hover { text-decoration: underline; }
.tile .med { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.35; color: var(--text); text-align: left; }

/* ---------- Telemedicina: formulario, firma y lista ---------- */
.wrap.narrow { max-width: 760px; }
.nav-link { color: var(--navy); font-weight: 650; font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: 9px; }
.nav-link:hover { background: var(--teal-soft); color: var(--teal-600); }
@media (max-width: 640px) { .topbar-in { flex-wrap: wrap; } .topbar img.logo { height: 38px; } .nav-link { padding: 6px 8px; font-size: 13px; } }
textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; font-family: inherit; color: var(--text); background: #fff; resize: vertical; transition: .15s; }
textarea:focus, input[type=date]:focus, input[type=email]:focus, input[type=tel]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18,163,155,.14); }
input[type=date], input[type=email], input[type=tel] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; color: var(--text); font-family: inherit; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.grid3 select { margin-top: 0; }
.addr .lbl { margin-top: 12px; }
.muted-s { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.conds-title { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--navy); }
.conds-title .count, .count { background: var(--red); color: #fff; font-size: 12px; border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt .po { display: flex; flex-direction: column; gap: 2px; height: 100%; text-align: center; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: .15s; }
.plan-opt .po b { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.plan-opt .po.gold b { color: var(--gold); } .plan-opt .po.silver b { color: #6d7787; } .plan-opt .po.platinum b { color: #4a6280; }
.plan-opt .pp { font-size: 19px; font-weight: 800; color: var(--navy); }
.plan-opt .po small { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.plan-opt input:checked + .po { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px rgba(18,163,155,.16); }
.plan-opt input:focus-visible + .po { outline: 3px solid rgba(18,163,155,.45); }
.price-line { margin: 12px 0 4px; padding: 10px 12px; background: #f6f9fd; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--navy); font-weight: 600; }
.step.done { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,163,155,.14), var(--shadow-lg); }
.step-n.ok { background: var(--teal); }
#enlace { font-size: 14px; background: #f6f9fd; }
.tile .pick { display: block; margin-top: 10px; padding: 8px 6px; border-radius: 10px; background: linear-gradient(100deg, var(--teal-600), var(--teal)); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.tile .pick:hover { filter: brightness(1.05); }
button.secundario { background: #fff; border: 1.5px solid var(--teal); color: var(--teal-600); border-radius: 10px; font-weight: 650; cursor: pointer; }
.kv { display: grid; grid-template-columns: 1fr; margin: 0; }
.kv dt { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.kv dd { margin: 2px 0 0; font-size: 15px; color: var(--text); white-space: pre-wrap; }
@media (min-width: 560px) { .kv { grid-template-columns: 190px 1fr; } .kv dt { margin-top: 0; padding: 8px 0; border-top: 1px solid var(--line); } .kv dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); } .kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; } }
.legal p { font-size: 14.5px; color: var(--text); margin: 0 0 10px; }
.sigwrap { position: relative; border: 2px dashed #b9c6dc; border-radius: 14px; background: #fff; }
.sigwrap canvas { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; border-radius: 12px; }
.sig-hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #b4bfd1; font-size: 18px; pointer-events: none; }
.row-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 16px 18px; }
.row-card h3 { margin: 0; font-size: 17px; color: var(--navy); }
.row-card .sub { color: var(--muted); font-size: 13.5px; }
.row-card .actions { grid-column: 1 / -1; }
.row-card .badge { margin-left: 0; }
.person-card { background: #f8fafd; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin-top: 12px; animation: fadeUp .25s ease both; }
.pc-h { display: flex; align-items: center; justify-content: space-between; color: var(--navy); }
.person-card .lbl { margin-top: 10px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type=text] { flex: 1; min-width: 220px; }
.tag.bad { background: #fde8e8; border-color: #f0b4b4; color: #9b2b2b; }
.row-card.alerta { border-color: #e9c46a; box-shadow: 0 0 0 3px rgba(233,196,106,.25), var(--shadow); }
.mini { font-size: 13px; font-weight: 600; color: var(--muted); }
.row-card .rc-main h3 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
