/* Identidad del programa: navy + naranja + celeste ASADI sobre blanco, motivo de circuitos. */
:root {
  --navy: #16245c;
  --navy-2: #0f1b48;
  --orange: #f36f21;
  --orange-2: #e25a0c;
  --sky: #1fb5e8;
  --bg: #f4f5f9;
  --card: #ffffff;
  --ink: #1d2340;
  --muted: #687089;
  --line: #e1e4ee;
  --ok: #138a52;
  --ok-bg: #e5f6ee;
  --warn-bg: #fff3e9;
  --bad: #c0362c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 36, 92, .06), 0 8px 24px rgba(22, 36, 92, .07);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; color: var(--navy); }
a { color: var(--navy); }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }

/* Botones y campos */
.btn {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 15px/1 inherit; font-family: inherit; padding: 14px 22px;
  background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--orange-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.sm { padding: 9px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { background: var(--bad); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 36, 92, .12); }
textarea { resize: vertical; min-height: 96px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); margin: 1px 0 0; flex: none; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day-opt { position: relative; }
.day-opt input { position: absolute; opacity: 0; }
.day-opt span {
  display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff;
  font-weight: 600; color: var(--navy); font-size: 14px;
}
.day-opt span small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.day-opt input:checked + span { border-color: var(--orange); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--orange); }
.day-opt input:focus-visible + span { outline: 3px solid rgba(243, 111, 33, .35); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.alert.err { background: #fdecea; color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--warn-bg); color: #9a4310; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eef0f6; color: var(--navy); }
.pill.live { background: var(--orange); color: #fff; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
@keyframes pulse { 50% { opacity: .3; } }

/* Circuitos decorativos (esquinas) */
.circuit { position: absolute; width: 150px; height: 90px; pointer-events: none; opacity: .9; }
.circuit.l { left: 0; top: 0; }
.circuit.r { right: 0; top: 0; transform: scaleX(-1); }

/* ── Registro (portada) ── */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero-top { position: relative; padding-block: 28px 18px; text-align: center; }
.logos { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
.logos img { height: 52px; width: auto; }
.lockup { margin: 18px auto 0; max-width: 620px; width: 100%; }
.theme { font-size: clamp(20px, 3.4vw, 28px); font-weight: 600; color: var(--navy); margin-top: 14px; }
.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; font-weight: 700; color: var(--navy); }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { color: var(--orange); }
.photo { position: relative; height: clamp(150px, 26vw, 260px); background: url(/img/hero.jpg) center 60% / cover no-repeat; }
.photo::before, .photo::after { content: ""; position: absolute; left: 0; right: 0; height: 46px; }
.photo::before { top: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v8C900 52 520-6 0 34z' fill='%23fff'/%3E%3Cpath d='M0 34C520-6 900 52 1200 8v8C900 60 520 6 0 44z' fill='%23f36f21'/%3E%3C/svg%3E") top / 100% 100%; }
.photo::after { bottom: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 30C380 0 760 50 1200 14v32H0z' fill='%2316245c'/%3E%3Cpath d='M0 40C380 12 760 58 1200 26v20H0z' fill='%23f4f5f9'/%3E%3C/svg%3E") bottom / 100% 100%; }

.reg { position: relative; margin-top: -10px; padding-bottom: 48px; }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .reg-grid { grid-template-columns: 1fr; } }
.reg-aside h2 { font-size: 24px; font-weight: 800; }
.reg-aside ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.reg-aside li { display: flex; gap: 12px; align-items: flex-start; }
.reg-aside li b { display: block; color: var(--navy); }
.reg-aside .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--warn-bg); color: var(--orange); display: grid; place-items: center; }
form.stack { display: grid; gap: 14px; }
.form-title { font-size: 22px; font-weight: 800; }
.switch-link { background: none; border: 0; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.hp { position: absolute; left: -9999px; }
footer.site { text-align: center; color: var(--muted); font-size: 12px; padding-block: 24px; }

/* ── Mi congreso (asistente) ── */
.app-head { background: var(--navy); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.app-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.app-head .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; letter-spacing: .02em; min-width: 0; }
.app-head .brand .vi { font-weight: 900; font-size: 22px; color: var(--orange); }
.app-head .who { font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-main { padding-block: 16px 104px; display: grid; gap: 16px; max-width: 720px; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs button {
  appearance: none; border: 0; background: none; font: 600 11px/1.2 inherit; font-family: inherit; color: var(--muted);
  padding: 9px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; position: relative;
}
.tabs button[aria-selected=true] { color: var(--orange); }
.tabs button .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff; }
.now { background: linear-gradient(135deg, var(--navy) 0%, #23357a 100%); color: #fff; border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.now h2 { color: #fff; font-size: 19px; margin-top: 8px; }
.now .who { margin-top: 8px; font-size: 14px; opacity: .9; }
.now .next { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px; opacity: .85; }
.now::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(243, 111, 33, .25); }
.notif-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.day-switch { display: flex; gap: 8px; }
.day-switch button { flex: 1; }
.block-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin: 18px 0 8px; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; background: #fff; border-radius: 12px; padding: 12px; border: 1.5px solid transparent; }
.agenda li.current { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 111, 33, .12); }
.agenda li.past { opacity: .6; }
.agenda .t { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.agenda .ttl { font-weight: 700; color: var(--ink); }
.agenda .sp { font-size: 13px; color: var(--muted); margin-top: 3px; }
.agenda .sp b { color: var(--navy); font-weight: 600; }
.agenda li.pausa .ttl { color: var(--muted); font-weight: 600; }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; background: #fff; border-radius: 12px; padding: 12px 14px; }
.q-item p { margin: 0; overflow-wrap: anywhere; }
.q-item .by { font-size: 12px; color: var(--muted); margin-top: 4px; }
.vote { appearance: none; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; font: 700 13px inherit; font-family: inherit; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.vote[aria-pressed=true] { border-color: var(--orange); color: var(--orange); background: var(--warn-bg); }
.vote:disabled { cursor: default; opacity: .7; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scale button { appearance: none; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 0; font: 700 14px inherit; font-family: inherit; color: var(--navy); cursor: pointer; font-variant-numeric: tabular-nums; }
.scale button[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.scale-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.stars { display: flex; gap: 6px; }
.stars button { appearance: none; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #d4d8e4; padding: 2px; }
.stars button.on { color: var(--orange); }
.qr-box { display: grid; place-items: center; gap: 10px; text-align: center; }
.qr-box img { width: min(280px, 80vw); height: auto; background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.toast-host { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { cursor: pointer; background: var(--navy); color: #fff; border-left: 5px solid var(--orange); border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 28px rgba(15, 27, 72, .3); animation: drop .25s ease-out; }
.toast b { display: block; }
.toast span { font-size: 13px; opacity: .9; }
@keyframes drop { from { opacity: 0; transform: translateY(8px); } }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }

/* ── Pantalla de proyección ── */
body.screen { background: var(--navy-2); color: #fff; height: 100vh; overflow: hidden; }
.scr { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 2.2vw 3vw; gap: 2vw; position: relative; }
.scr-head { display: flex; align-items: center; justify-content: space-between; gap: 2vw; }
.scr-head .logos-w { background: #fff; border-radius: 1vw; padding: .7vw 1.4vw; display: flex; gap: 1.6vw; align-items: center; }
.scr-head .logos-w img { height: 3.2vw; }
.scr-session { text-align: right; max-width: 60%; }
.scr-session .lbl { font-size: 1vw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.scr-session h2 { color: #fff; font-size: 1.9vw; margin-top: .4vw; }
.scr-session .who { font-size: 1.2vw; opacity: .8; margin-top: .3vw; }
.scr-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2vw; min-height: 0; }
.spot { background: #fff; color: var(--navy); border-radius: 1.4vw; padding: 3vw; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.spot::before { content: "“"; position: absolute; top: -2vw; left: 1.2vw; font-size: 14vw; font-weight: 900; color: rgba(243, 111, 33, .18); line-height: 1; }
.spot .q { position: relative; font-size: clamp(22px, 2.9vw, 64px); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.spot .by { position: relative; margin-top: 2vw; font-size: 1.4vw; font-weight: 600; color: var(--orange); }
.queue { display: flex; flex-direction: column; gap: .9vw; min-height: 0; overflow: hidden; }
.queue h3 { color: #fff; font-size: 1.2vw; letter-spacing: .12em; text-transform: uppercase; }
.queue .qi { background: rgba(255, 255, 255, .08); border-radius: 1vw; padding: 1vw 1.2vw; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1vw; font-size: 1.2vw; }
.queue .qi.answered { opacity: .45; }
.queue .qi .v { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.queue .qi small { display: block; opacity: .7; font-size: .95vw; margin-top: .3vw; }
.scr-foot { display: flex; align-items: center; justify-content: space-between; gap: 2vw; font-size: 1.2vw; }
.scr-foot .join { display: flex; gap: 1.2vw; align-items: center; }
.scr-foot .join img { width: 7vw; height: 7vw; background: #fff; border-radius: .6vw; padding: .3vw; }
.scr-foot b { color: var(--orange); }
.scr-idle { grid-column: 1 / -1; display: grid; place-items: center; text-align: center; gap: 2vw; }
.scr-idle img.qr { width: 18vw; background: #fff; padding: 1vw; border-radius: 1vw; }
.scr-idle h1 { color: #fff; font-size: 3.6vw; }
.scr-idle p { font-size: 1.6vw; opacity: .85; margin: 0; }

/* ── Panel admin / mesa ── */
body.panel { background: #eef0f6; }
.panel-head { background: var(--navy); color: #fff; }
.panel-head .wrap { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.panel-head h1 { color: #fff; font-size: 17px; font-weight: 800; }
.panel-head nav { display: flex; gap: 4px; flex-wrap: wrap; }
.panel-head nav button { appearance: none; border: 0; background: none; color: rgba(255, 255, 255, .75); font: 600 13px inherit; font-family: inherit; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.panel-head nav button[aria-selected=true] { background: rgba(255, 255, 255, .14); color: #fff; }
.panel-main { max-width: 1280px; padding-block: 18px 40px; display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: 12px; padding: 14px 16px; }
.kpi b { display: block; font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }
.card h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toggles { display: grid; gap: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.toggle b { color: var(--navy); font-size: 14px; }
.toggle small { display: block; color: var(--muted); font-size: 12px; }
.sw { position: relative; width: 46px; height: 26px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: #cfd4e2; border-radius: 99px; transition: .15s; cursor: pointer; }
.sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.sw input:checked + span { background: var(--orange); }
.sw input:checked + span::after { transform: translateX(20px); }
.sw input:focus-visible + span { outline: 3px solid rgba(243, 111, 33, .35); }
.ctl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 560px; overflow: auto; }
.ctl-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.ctl-list li.current { border-color: var(--orange); background: var(--warn-bg); }
.ctl-list .t { font-weight: 800; color: var(--navy); font-size: 13px; font-variant-numeric: tabular-nums; }
.ctl-list .ttl { font-weight: 600; font-size: 13px; }
.ctl-list .sp { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-list .acts { display: flex; gap: 6px; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 620px; overflow: auto; }
.mod-list li { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.mod-list li.on-screen { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 111, 33, .14); }
.mod-list li.oculta { opacity: .5; }
.mod-list p { margin: 0 0 6px; overflow-wrap: anywhere; }
.mod-list .by { font-size: 12px; color: var(--muted); }
.mod-list .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.st { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: #eef0f6; color: var(--navy); }
.st.pendiente { background: var(--warn-bg); color: #9a4310; }
.st.aprobada { background: var(--ok-bg); color: var(--ok); }
.st.respondida { background: #e8eefc; color: #2a47a8; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfd; position: sticky; top: 0; }
table.data td.wrap-cell { white-space: normal; min-width: 220px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input { max-width: 320px; }
.bars { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; align-items: end; height: 150px; margin-top: 8px; }
.bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--navy); min-height: 2px; }
.bars .det i { background: #d9534f; }
.bars .pas i { background: #c9cfdf; }
.bars .pro i { background: var(--ok); }
.comment { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin: 0 0 12px; }
.comment small { color: var(--muted); }
.login { max-width: 380px; margin: 12vh auto 0; }
.scanner { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-width: 100%; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid var(--orange); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.result { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.result.ok { background: var(--ok-bg); color: var(--ok); }
.result.warn { background: var(--warn-bg); color: #9a4310; }
.result.err { background: #fdecea; color: var(--bad); }
.result b { display: block; font-size: 20px; color: inherit; }
.row-acts { display: flex; gap: 6px; }
dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100% - 32px)); box-shadow: 0 24px 60px rgba(15, 27, 72, .35); }
dialog::backdrop { background: rgba(15, 27, 72, .45); }
dialog .dlg { padding: 22px; display: grid; gap: 12px; }

/* ── Verificación ── */
body.verify { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.vf { --bar: var(--navy); width: min(560px, 100%); background: #fff; border-radius: 20px; box-shadow: inset 0 6px 0 var(--bar), var(--shadow); overflow: hidden; }
.vf.ok { --bar: var(--ok); }
.vf.bad { --bar: var(--bad); }
.vf.sample { --bar: var(--orange); }
.vf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.vf-logos { display: flex; gap: 12px; align-items: center; }
.vf-logos img { height: 30px; width: auto; }
.vf-body { padding: 22px; display: grid; gap: 10px; }
.vf-body h1 { font-size: clamp(22px, 5vw, 30px); }
.vf-body p { margin: 0; line-height: 1.6; }
.vf-body .who { color: var(--muted); font-size: 14px; }
.vf-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 0; padding: 14px; background: #f7f8fb; border-radius: 12px; }
.vf-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vf-meta dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.vf-foot { margin: 0; padding: 12px 22px 18px; font-size: 12px; color: var(--muted); }
.badge { justify-self: start; font-weight: 800; padding: 6px 14px; border-radius: 99px; margin: 0; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: #fdecea; color: var(--bad); }
.badge.info { background: var(--warn-bg); color: #9a4310; }

/* Los hijos de grillas con tablas anchas no deben ensanchar la página. */
.panel-main > *, .panel-main [data-v] > *, .cols > * { min-width: 0; }

/* Networking */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.person .nm { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.person .org { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.person .links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: #eef0f6; color: var(--navy); text-decoration: none; }
.chip.wa { background: #e3f7ea; color: #137a3c; }
.icon-btn { appearance: none; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 10px; padding: 8px 10px; font: 700 12px inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.icon-btn.on { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
/* Valoración por sesión */
.rate-list { display: grid; gap: 10px; }
.rate { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.rate.done { border-color: var(--ok); }
.rate .head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
.rate .t { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.rate .ttl { font-weight: 700; }
.rate .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.rate .row span { font-size: 13px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; flex: 1 1 140px; }
.rate .stars button { font-size: 24px; }
.rate textarea { min-height: 60px; margin-top: 8px; font-size: 14px; }
.progress { height: 8px; border-radius: 99px; background: #e6e9f2; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }

/* Móvil: un <select> con opciones largas no debe ensanchar la página (los hijos de grid/flex tienen min-width:auto). */
select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.app-main > *, .app-main section > *, form.stack > *, .stack > * { min-width: 0; }
html, body { overflow-x: hidden; }
/* iOS hace zoom al enfocar campos con letra < 16px y la página queda corrida. */
@media (max-width: 760px) {
  input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=time], select, textarea { font-size: 16px; }
}

/* CES de la plataforma */
.ces-sec { border-top: 1.5px dashed var(--line); padding-top: 16px; margin-top: 4px; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feat { position: relative; margin: 0; }
.feat input { position: absolute; opacity: 0; }
.feat span { display: inline-block; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--navy); background: #fff; cursor: pointer; }
.feat input:checked + span { border-color: var(--orange); background: var(--warn-bg); color: #9a4310; }
.feat input:focus-visible + span { outline: 3px solid rgba(243, 111, 33, .35); }

.cert-preview { margin: 16px 0 12px; }
.cert-preview img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(22, 36, 92, .1); }
.cert-preview figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
