/* Anatolian IOOC · estilos de la plataforma */
/* los colores, la tipografía y los tamaños están en theme.css */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--navy); background: var(--bg); }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; margin-top: .2em; }
h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
code { font-family: var(--mono); font-size: .9em; background: var(--tint); padding: 1px 5px; border-radius: 5px; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--blue); text-transform: uppercase; margin-bottom: 4px; }
img { max-width: 100%; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #18406a; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line2); }
.btn-ghost:hover { background: var(--tint); }
.btn-green { background: var(--green2); border-color: var(--green2); }
.btn-green:hover { background: #3d6617; }
.btn-danger-ghost { background: #fff; color: var(--red); border-color: #E9B8B8; }
.btn-danger-ghost:hover { background: var(--red-bg); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
.link.danger, .danger { color: var(--red); }
.inline-form { display: inline; margin: 0; }

/* ---------- formularios ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2, .row3 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-width: 0; }
.fld-l { font-weight: 600; }
.req { color: var(--blue); }
.fld input, .fld select, .fld textarea, .filters input, .filters select, .tbl input, .tbl select, .inline-form select {
  font: 16px var(--font); color: var(--navy); background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 0 12px; min-height: 46px; width: 100%; }
.fld textarea { padding: 10px 12px; min-height: 80px; resize: vertical; }
.fld input[readonly] { background: var(--bg); color: var(--muted); }
.fld-h { font-size: 12px; color: var(--muted); }
.fld-e { font-size: 13px; font-weight: 600; color: var(--red); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--red); background: #FFF8F8; }
.code-input input { font-family: var(--mono); font-size: 28px; letter-spacing: .4em; text-align: center; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--navy); }
.chk.has-err span { color: var(--red); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid fieldset { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
legend { font-family: var(--head); font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 8px; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice legend { grid-column: 1 / -1; font: 600 14px var(--font); margin-bottom: 0; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line2); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fff; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.opt span { display: flex; flex-direction: column; }
.opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.form-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; padding-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px !important; }
.filters input[type=search] { flex: 1 1 260px; width: auto; }
.filters select { width: auto; flex: 0 1 220px; }
.row-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row-form .fld { flex: 1 1 180px; }
.row-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- avisos ---------- */
.flash { display: block; position: relative; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.flash:has(.flash-x) { padding-right: 44px; }
.flash-ok { background: var(--green-bg); color: #2F5D1E; }
.flash-err { background: var(--red-bg); color: var(--red2); }
.flash-warn { background: var(--amber-bg); color: var(--amber); }
.flash-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; padding: 2px 6px; }
.note { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty strong { color: var(--navy); font-size: 16px; }
.empty p { margin: 0; max-width: 460px; }
.dhl { background: var(--red); color: #fff; border-radius: var(--r); padding: 18px 22px; margin: 16px 0; }
.dhl strong { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: .02em; display: block; }
.dhl p { margin: 6px 0 0; font-weight: 500; }
.dhl-sm { padding: 10px 16px; margin: 4px 0; }
.dhl-sm strong { font-size: 18px; }

/* ---------- tarjetas y tablas ---------- */
.card { background: #fff; border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid2.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid2 > .card, .grid2 > .stack > .card { margin-bottom: 0; }
.grid2 > .stack { gap: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid #E9F1F7; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl td.wrap { max-width: 380px; }
.tbl.small td, .tbl.small th { font-size: 12px; padding: 6px 8px; white-space: nowrap; }
.tbl.tiers input { min-height: 40px; max-width: 160px; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .actions > * { margin-left: 4px; }
.preview { border: 1px solid var(--line); border-radius: 12px; }
.preview .tbl th { background: var(--navy); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.mini-list { list-style: none; margin: 0 0 12px; padding: 0; }
.mini-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #E9F1F7; font-size: 14px; }
.mini-list li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mini-list small { color: var(--muted); }
.todo { margin: 0 0 14px; padding-left: 20px; }
.todo li { margin: 4px 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--tint); color: var(--blue); }
.pill-unpaid { background: var(--red-bg); color: var(--red2); }
.pill-paid { background: var(--amber-bg); color: var(--amber); }
.pill-shipped { background: var(--cyan-bg); color: var(--cyan); }
.pill-received { background: #E3F1DA; color: #2F5D1E; }
.pill-tasted, .pill-result { background: var(--violet-bg); color: var(--violet); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.pager .on { background: var(--navy); color: #fff; border-color: var(--navy); }
details.pop { display: inline-block; position: relative; text-align: left; }
details.pop summary { list-style: none; }
details.pop summary::-webkit-details-marker { display: none; }
details.pop[open] summary { background: var(--tint); }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 360px; max-width: 86vw; background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 16px; box-shadow: 0 10px 30px rgba(14,42,71,.18); white-space: normal; }

/* ---------- KPIs y estado ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 2px; }
.card .kpi { background: var(--bg); box-shadow: none; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi strong { font-family: var(--head); font-size: 28px; font-weight: 800; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi.bad strong { color: var(--red); }
a.kpi:hover { outline: 2px solid var(--tint); }
.statebar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 8px 0 12px; }
.sb { display: block; }
.sb-unpaid { background: #E58B8B; } .sb-paid { background: #E8C547; } .sb-shipped { background: #6FB6D6; } .sb-received { background: #7DB862; } .sb-tasted { background: #9087C2; } .sb-empty { background: var(--line); }
.statelegend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.statelegend a { text-decoration: none; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 5px; display: inline-block; }
.state-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.state-tabs a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; }
.state-tabs a span { font-size: 13px; }
.state-tabs a strong { font-family: var(--head); font-size: 22px; }
.state-tabs a.on { border: 2px solid var(--navy); }
.state-tabs .st-unpaid { background: var(--red-bg); } .state-tabs .st-paid { background: var(--amber-bg); } .state-tabs .st-shipped { background: var(--cyan-bg); } .state-tabs .st-received { background: #E3F1DA; } .state-tabs .st-tasted { background: var(--violet-bg); } .state-tabs .st-customs { background: var(--red-bg); color: #8A1C1C; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.preview-box { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin-top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.perm td, .perm th { text-align: center; }
.perm td:first-child, .perm th:first-child { text-align: left; }

/* ---------- panel del equipo ---------- */
.staff-shell { display: flex; min-height: 100vh; }
.side { width: 240px; flex-shrink: 0; background: var(--blue); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 16px; }
.side-brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 2px; }
.side-brand strong { font-family: var(--head); font-size: 17px; display: block; line-height: 1.05; }
.side-brand small { font-size: 10px; letter-spacing: .12em; color: #E3F0FA; }
.side-who { background: var(--blue2); padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.av { width: 40px; height: 40px; border-radius: 20px; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.who-t { display: flex; flex-direction: column; min-width: 0; }
.who-t strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-t small { font-size: 11px; color: #E3F0FA; }
.side-nav { flex: 1; padding: 8px 0; }
.side-group { display: flex; flex-direction: column; margin-bottom: 8px; }
.side-gt { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #E3F0FA; padding: 8px 18px 4px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; margin: 0 8px; border-radius: 10px; color: #fff; text-decoration: none; font-size: 14px; }
.side-item:hover { background: rgba(255,255,255,.12); }
.side-item.on { background: #fff; color: var(--blue); font-weight: 600; }
.side-item.soon { opacity: .7; }
.side-item em { margin-left: auto; font-style: normal; font-size: 10px; background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 6px; }
.side-foot { border-top: 1px solid #5A9BD0; margin: 0 16px; padding: 10px 2px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.side-foot a { color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.side-foot small { color: #E3F0FA; font-size: 11px; }
.staff-main { flex: 1; min-width: 0; padding: 24px 28px 40px; }
.ptitle { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ptitle h1 { margin: 0; }
.ptitle .ptitle-act { display: flex; gap: 8px; flex-wrap: wrap; }
.card .ptitle { margin-bottom: 4px; align-items: flex-start; }
.nav-burger { display: none; }

/* ---------- exportar ---------- */
.export { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.export-sets { display: flex; flex-direction: column; gap: 8px; }
.export-sets a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; }
.export-sets a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.export-sets .ico { font-size: 20px; width: 28px; text-align: center; }
.export-sets strong { display: block; font-size: 15px; }
.export-sets small { opacity: .8; }
.cols-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.col-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); color: var(--muted2); text-decoration: line-through; background: #fff; }
.chip input:checked + span { border-color: var(--blue); background: var(--tint); color: var(--navy); text-decoration: none; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); }

/* ---------- páginas sueltas ---------- */
body.bare { background: linear-gradient(160deg, var(--navy), var(--blue)); min-height: 100vh; }
.center-card { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.center-card .card { width: 100%; max-width: 460px; padding: 28px 28px 24px; }
.center-card .card.wide { max-width: 760px; }
.center-card > .flash { width: 100%; max-width: 460px; }
.card-logo { width: 64px; height: 64px; object-fit: contain; display: block; margin-bottom: 10px; }
.steps-list { padding-left: 20px; }

/* ---------- sitio público y empresas ---------- */
body.public, body.company { background: var(--bg); }
.pub-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pub-brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--navy); }
.pub-brand img { width: 44px; height: 44px; object-fit: contain; }
.pub-brand strong { font-family: var(--head); font-size: 19px; display: block; line-height: 1.05; }
.pub-brand small { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.pub-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.langs { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.langs a { padding: 6px 10px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.langs a.on { background: var(--navy); color: #fff; }
.who-c { display: flex; flex-direction: column; text-align: right; font-size: 13px; line-height: 1.25; }
.who-c small { color: var(--muted); }
.pub-main { max-width: 1120px; margin: 0 auto; padding: 24px 24px 48px; }
.pub-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: 24px; padding: 56px 40px; margin-bottom: 20px; }
.hero .kicker { color: var(--sky); }
.hero h1 { font-size: 48px; }
.hero p { max-width: 620px; font-size: 18px; color: #E3F0FA; }
.hero-act { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fee { list-style: none; padding: 0; margin: 0; }
.fee li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid #E9F1F7; }
.fee li span { flex: 1; }
.fee strong { font-family: var(--head); font-size: 20px; }
.dates { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.dates dd { margin: 0; font-weight: 600; }
.reg-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.reg-steps ol { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.reg-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 600; }
.reg-steps li b { width: 30px; height: 30px; border-radius: 15px; border: 1.5px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: #fff; }
.reg-steps li.on { color: var(--navy); } .reg-steps li.on b { background: var(--navy); color: #fff; border-color: var(--navy); }
.reg-steps li.done b { background: var(--green-bg); color: var(--green); border-color: var(--green-bg); }
.login-wrap { display: flex; justify-content: center; }
.card.narrow { width: 100%; max-width: 480px; }
.card.narrow-left { max-width: 560px; }
.co-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px; }
.co-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 16px; align-self: start; }
.co-nav a { padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--navy); font-weight: 500; }
.co-nav a.on { background: var(--blue); color: #fff; }
.co-nav a:hover:not(.on) { background: var(--tint); }
.co-main { min-width: 0; }
.acct { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.acct > div { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.acct span { font-size: 13px; color: var(--muted); font-weight: 600; }
.acct strong { font-family: var(--head); font-size: 24px; }
.acct small { font-size: 12px; color: var(--muted); }
.acct a { font-size: 13px; font-weight: 600; }
.acct .warn { background: var(--red-bg); } .acct .warn strong { color: var(--red2); }
.acct .ok { background: var(--green-bg); }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 16px 0; }
.scard { border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: #fff; }
.scard h3 { font-size: 18px; margin: 0; }
.scard p { margin: 0; font-size: 14px; }
.scard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scard-msg { font-size: 13px !important; }
.scard-act { display: flex; gap: 6px; margin-top: 6px; }
.st-unpaid.scard { background: var(--red-bg); border-color: #E9B8B8; } .st-paid.scard { background: var(--amber-bg); border-color: #E8D78F; }
.st-shipped.scard { background: var(--cyan-bg); border-color: #A9D2E4; } .st-received.scard { background: #E3F1DA; border-color: #B7D7A3; } .st-tasted.scard { background: var(--violet-bg); border-color: #C9C3DE; }
.cta-ship { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--r); padding: 16px 20px; flex-wrap: wrap; margin-top: 16px; }
.cta-ship p { margin: 0; color: #E3F0FA; }
.cta-ship .btn { background: #fff; color: var(--navy); border-color: #fff; }
.steps-inline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0 0 16px; list-style: none; counter-reset: s; }
.steps-inline li { counter-increment: s; background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.steps-inline li::before { content: counter(s); display: inline-flex; width: 26px; height: 26px; border-radius: 13px; background: var(--navy); color: #fff; align-items: center; justify-content: center; margin-right: 8px; font-size: 13px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; }
.stepper input { width: 52px; min-height: 40px; border: 0; border-radius: 0; text-align: center; padding: 0; }
.other-box { display: none; background: var(--red-bg); border-radius: 14px; padding: 14px 16px; flex-direction: column; gap: 12px; }
.other-box.show { display: flex; }
.ship { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.ship-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ship-h .btn { margin-left: auto; }
.ship-items { margin: 0; padding-left: 18px; font-size: 14px; }
[data-show], [data-show-pdo] { display: none; }
[data-show].show, [data-show-pdo].show { display: contents; }
.ok-card { border: 2px solid #B7D7A3; }

/* ---------- proforma (imprimible) ---------- */
body.print-page { background: #E6EDF3; }
.print-bar { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 14px; flex-wrap: wrap; font-size: 14px; }
.proforma { background: #fff; width: 210mm; max-width: 100%; min-height: 290mm; margin: 0 auto 30px; padding: 16mm 15mm; font-size: 12.5px; color: #111; }
.proforma header { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: start; border-bottom: 2px solid var(--navy); padding-bottom: 12px; }
.proforma header img { width: 64px; }
.proforma h1 { font-size: 26px; margin: 0; color: var(--navy); }
.pf-sub { font-weight: 700; color: var(--red); margin: 4px 0 0; letter-spacing: .04em; }
.proforma dl { display: grid; grid-template-columns: auto auto; gap: 2px 10px; margin: 0; font-size: 12px; }
.proforma dt { color: #555; } .proforma dd { margin: 0; font-weight: 700; }
.pf-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
.pf-parties > div { border: 1px solid #ccd; border-radius: 6px; padding: 10px 12px; }
.pf-parties h2, .pf-decl h2 { font: 700 11px var(--font); letter-spacing: .08em; color: #555; margin: 0 0 6px; }
.pf-meta { font-size: 12px; }
.pf-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.pf-table th, .pf-table td { border: 1px solid #bbc; padding: 6px 7px; text-align: left; vertical-align: top; }
.pf-table th { background: #EEF3F8; font-size: 11px; }
.pf-table tfoot td { font-weight: 700; background: #F6F8FA; }
.pf-table td:nth-child(1), .pf-table td:nth-child(4), .pf-table td:nth-child(6), .pf-table td:nth-child(7), .pf-table th:nth-child(6) { white-space: nowrap; }
.pf-decl { border: 1px solid #ccd; border-radius: 6px; padding: 10px 12px; }
.pf-sign { display: flex; justify-content: flex-end; margin-top: 40px; }
.pf-sign div { width: 70mm; text-align: center; font-size: 12px; }
.pf-sign span { display: block; border-bottom: 1px solid #111; margin-bottom: 6px; height: 48px; }
@media print {
  @page { size: A4; margin: 10mm; }
  body.print-page { background: #fff; }
  .no-print { display: none !important; }
  .proforma { margin: 0; box-shadow: none; width: auto; min-height: 0; padding: 0; }
}

/* ---------- celular y tablet ---------- */
@media (max-width: 1100px) {
  .kpis, .acct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2, .grid2.wide-left, .export { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .staff-shell { display: block; }
  .side { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .nav-toggle:checked + .side { transform: none; }
  .nav-burger { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-weight: 600; cursor: pointer; background: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; }
  .staff-main { padding: 16px; }
  .reg-wrap, .co-shell { grid-template-columns: 1fr; }
  .co-shell { padding: 16px; }
  .co-nav { position: static; flex-direction: row; overflow-x: auto; }
  .co-nav a { white-space: nowrap; }
  .steps-inline { grid-template-columns: 1fr 1fr; }
  .pub-main { padding: 16px; }
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  h1 { font-size: 26px; }
  .row2, .row3, .choice { grid-template-columns: 1fr; }
  .kpis, .acct, .state-tabs, .steps-inline { grid-template-columns: 1fr 1fr; }
  .pub-head { padding: 10px 16px; }
  .who-c { display: none; }
  .card { padding: 16px; }
  .center-card .card { padding: 22px 18px; }
  .pf-parties { grid-template-columns: 1fr; }
  .dhl strong { font-size: 21px; }
}

.err-detail { white-space: pre-wrap; word-break: break-word; background: #FBE4E4; color: #8A1C1C; border-radius: 10px; padding: 10px 12px; font: 13px var(--mono); }
.as-staff { background: #E8B04A; color: #0E2A47; padding: 10px 24px; font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bulkbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; top: 8px; z-index: 10; padding: 12px 16px !important; }
.bulkbar select, .bulkbar input { min-height: 42px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; font: 15px var(--font); }
.bulkbar .btn:disabled { opacity: .45; cursor: not-allowed; }
.tbl input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); }
.tbl td.wrap { word-break: break-word; }
code.tmp { user-select: all; font-size: 13px; }
.plangs { display: inline-flex; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; overflow: hidden; align-self: flex-start; margin-bottom: 4px; }
.plangs a { padding: 4px 10px; font-size: 12px; font-weight: 700; text-decoration: none; color: #fff !important; }
.plangs a.on { background: #fff; color: var(--blue) !important; }
.card .plangs { border-color: var(--line2); float: right; }
.card .plangs a { color: var(--muted) !important; }
.card .plangs a.on { background: var(--navy); color: #fff !important; }
.side-lang { padding: 8px 16px 0; } .side-lang .plangs { margin: 0; }

/* ---------- cata: programación y servicio ---------- */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chips-row .grow { flex: 1; }
.chip-link { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; background: #fff; }
.chip-link.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-link small { opacity: .7; }
.load-n { display: inline-block; min-width: 34px; padding: 3px 8px; border-radius: 8px; background: var(--tint); text-decoration: none; font-weight: 700; }
.load-n.hi { background: var(--red-bg); color: var(--red2); }
.tbl input.ord { width: 64px; min-height: 36px; text-align: center; }
.tbl tr.sep td, .svc-sep, .w-sep { background: #FBF1CC; color: #6B5300; font-weight: 800; letter-spacing: .12em; font-size: 12px; text-align: center; }
.svc-sep, .w-sep { padding: 6px; border-radius: 8px; margin: 6px 0; }
.enum-form { margin-bottom: 10px; }
.enum-form .fld { max-width: 320px; }
.hint { background: var(--tint); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.svc-col { background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.svc-col header { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); }
.svc-col header small { color: var(--muted); flex-basis: 100%; order: 3; }
.svc-col header .pill { margin-left: auto; }
.svc-item { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.svc-main { display: flex; gap: 10px; align-items: center; }
.svc-code { font: 700 18px var(--mono); }
.svc-info { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.svc-info small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-time { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.svc-act { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.svc-item.ready { background: #FFF4C2; border-color: #E8C547; }
.svc-item.missing { background: var(--red-bg); border-color: #E9B8B8; }
.svc-item.served { background: var(--green-bg); border-color: #B7D7A3; opacity: .8; }
.svc-item.next { border: 2px solid var(--blue); background: var(--tint); }
.btn-gold { background: #E8C547; border-color: #E8C547; color: #3B2E00; }
.go-live { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.rep-box { border: 2px solid var(--blue); }

/* ---------- pantalla de mozos (tablet) ---------- */
body.waiter { background: #0E2A47; color: #fff; min-height: 100vh; }
.w-top { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: #0A2038; flex-wrap: wrap; }
.w-brand { display: flex; gap: 8px; align-items: center; }
.w-brand img { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 2px; }
.w-brand strong { display: block; font-family: var(--head); font-size: 18px; }
.w-brand small { color: var(--sky); font-size: 11px; }
.w-days { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.w-days a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-weight: 600; }
.w-days a.on { background: #fff; color: var(--navy); }
.w-tot { font: 800 22px var(--head); }
.waiter .plangs { border-color: rgba(255,255,255,.4); }
.waiter .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.waiter .flash { margin: 10px 16px; }
.w-help { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 16px; font-size: 14px; color: var(--sky); }
.w-wait { margin: 40px auto; max-width: 560px; text-align: center; background: rgba(255,255,255,.08); border-radius: 18px; padding: 30px; }
.w-wait strong { font: 800 24px var(--head); }
.w-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; padding: 10px 12px 30px; }
.w-col { background: #fff; color: var(--navy); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.w-col header { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.w-col header strong { font: 800 22px var(--head); }
.w-col header small { flex-basis: 100%; order: 3; color: var(--muted); font-size: 13px; }
.w-col header span { margin-left: auto; font-weight: 700; color: var(--muted); }
.w-fold summary { cursor: pointer; font-weight: 700; color: var(--green); padding: 6px 4px; list-style: none; }
.w-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.w-item.done { background: var(--green-bg); border-color: #B7D7A3; margin-top: 4px; }
.w-code { font: 700 22px var(--mono); }
.w-code.big { font-size: 40px; display: block; text-align: center; }
.w-time { font-weight: 700; color: var(--green); }
.w-next { background: var(--tint); border: 3px solid var(--blue); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.w-label { font-weight: 800; letter-spacing: .14em; color: var(--blue); font-size: 13px; text-align: center; }
.w-next button { min-height: 64px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font: 800 22px var(--font); cursor: pointer; }
.w-undo button { width: 100%; min-height: 40px; border: 1px dashed var(--line2); background: #fff; border-radius: 10px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.w-end { text-align: center; padding: 16px; font-weight: 800; color: var(--green); }
@media (max-width: 900px) { .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- jurados ---------- */
.jav { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: var(--tint); color: var(--navy); flex: none; vertical-align: middle; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line2); }
.jav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jav b { font: 700 15px var(--head); }
.jav.big { border-radius: 24px; max-width: 100%; }
.jav.big b { font-size: 56px; }
.jphoto { text-align: center; }
.jphoto .fld { text-align: left; }
.tbl tr.sep td { background: var(--tint); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); padding: 6px 12px; }
.tbl th.sortable a { color: inherit; text-decoration: none; white-space: nowrap; }
.tbl th.sortable .arr { opacity: .35; font-size: 11px; }
.tbl th.sortable.on .arr { opacity: 1; color: var(--blue); }
.tbl th.sortable a:hover { color: var(--blue); }
.t-head { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.t-head .jav { width: 26px; height: 26px; border-width: 1px; }
.t-head .jav b { font-size: 11px; }
.jtables { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 16px; }
.jtable { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.jtable header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.jtable header span { font-size: 13px; color: var(--muted); }
.jring { --size: 250px; position: relative; width: var(--size); height: var(--size); margin: 8px auto 4px; }
.jring::before { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: var(--tint); border: 2px solid var(--line2); }
.jcenter { position: absolute; inset: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }
.jcenter strong { font: 800 26px var(--head); }
.jcenter small { font-size: 11px; color: var(--muted); }
.jseat { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; transform: rotate(var(--a)) translateY(-96px) rotate(calc(-1 * var(--a)));
  border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.jseat .jempty { width: 54px; height: 54px; border-radius: 50%; border: 2px dashed var(--line2); display: flex; align-items: center; justify-content: center; color: var(--muted2); font-size: 18px; background: #fff; }
.jseat.head .jempty { border-color: var(--gold); color: var(--amber); font-size: 10px; font-weight: 700; letter-spacing: .06em; background: var(--amber-bg); }
.jseat.head .jav { box-shadow: 0 0 0 3px var(--gold); }
.jchip { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.jchip small { font-size: 10.5px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.9); padding: 0 4px; border-radius: 6px; max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
.jchip.sel .jav { box-shadow: 0 0 0 3px var(--blue); }
.jchip.dragging { opacity: .4; }
.jseat.over .jempty, .jseat.over .jav { box-shadow: 0 0 0 4px var(--blue); }
.jbench.over { outline: 3px dashed var(--blue); outline-offset: -6px; }
.jbench-list { display: flex; flex-wrap: wrap; gap: 14px; min-height: 80px; padding: 6px 0; }
.jtables[data-edit="1"] .jseat, .jbench { cursor: pointer; }
.jbusy { opacity: .5; pointer-events: none; }
@media (max-width: 400px) { .jring { --size: 220px; } .jseat { transform: rotate(var(--a)) translateY(-84px) rotate(calc(-1 * var(--a))); } }

/* ---------- galería, fotos de botellas ---------- */
.galadm { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.gcard { padding: 12px !important; display: flex; flex-direction: column; gap: 10px; }
.gcard.off { opacity: .6; }
.gcard-img { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg); }
.gcard-img img { display: block; width: 100%; height: 190px; object-fit: cover; }
.gcard-img input[type=checkbox] { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; z-index: 2; }
.gcard-img .pill { position: absolute; right: 8px; top: 8px; }
.gcard-img .pill + .pill { top: 38px; }
.gform { gap: 8px !important; }
.gform .fld input, .gform .fld select { min-height: 40px; }
.gform details summary { cursor: pointer; color: var(--blue); }
.gform-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.bphoto { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bphoto .card { padding: 10px !important; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font-size: 13px; }
.bphoto img, .bphoto .noimg { width: 100%; height: 160px; object-fit: contain; background: #fff; border-radius: 10px; }
.bphoto .noimg { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); }

/* ---------- recepción ---------- */
.rec-scan { display: flex; flex-direction: column; gap: 10px; }
.rec-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.rec-form .fld { flex: 1 1 260px; margin: 0; }
#rec-in { font-family: var(--mono); font-size: 22px; min-height: 56px; letter-spacing: .04em; }
.rec-cam { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rec-cam video { width: 100%; max-width: 480px; border-radius: 14px; background: #000; }
.rec-done { background: var(--green-bg) !important; display: flex; flex-direction: column; gap: 4px; }
.rec-done strong { font-size: 20px; color: var(--green); }
.rec-card { border: 2px solid var(--blue) !important; }
.rec-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-n { font-family: var(--mono); font-size: 32px; letter-spacing: -.01em; }
.rec-body { display: flex; gap: 16px; align-items: flex-start; margin: 10px 0; }
.rec-body img { width: 90px; height: 130px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; }
.rec-body h2 { margin: 0 0 4px; }
.rec-body p { margin: 0 0 4px; }
.rec-rcv fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rec-rcv legend { font-weight: 700; margin-bottom: 6px; }
.rec-cond { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.stepper.big input { font-size: 26px; width: 80px; min-height: 56px; }
.stepper.big button { width: 56px; height: 56px; font-size: 26px; }
.rec-res a { text-decoration: none; color: inherit; flex: 1; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.msg-list li.read { opacity: .65; }
.msg-list p { margin: 6px 0 0; white-space: normal; }
.msg-act { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.res-ph { width: 44px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; }
.score-in { width: 80px; min-height: 40px; font-family: var(--mono); font-size: 16px; text-align: right; }
.res-tbl select { min-height: 40px; }
.pub-on { border: 2px solid var(--green) !important; }
.green { color: var(--green); }
.labels-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.rec-cam[hidden], [data-cam][hidden] { display: none !important; }
.jst { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.jst > div { background: var(--tint); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.jst strong { font-family: var(--head); font-size: 26px; font-weight: 800; color: var(--blue); }
.jst span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.bar { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; } .bar span { display: block; height: 100%; background: var(--green); transition: width .3s; }

/* ---- Configuración → Medallas y certificados */
.brand-th { max-height: 70px; max-width: 110px; object-fit: contain; vertical-align: middle; border-radius: 6px; background: repeating-conic-gradient(#f1f4f7 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.brand-bottle { max-height: 160px; }
.brand-medals { table-layout: fixed; width: 100%; }
.brand-medals th:first-child { width: 90px; }
.brand-medals td { vertical-align: top; overflow: hidden; }
.brand-medals td:first-child form { margin-top: 8px; }
.brand-medals input[type=file] { width: 100%; font-size: 11px; margin-top: 6px; }
.brand-add { align-items: flex-end; margin: 10px 0 18px; }
.cert-ed { border: 1px solid #D2E2EE; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.cert-ed summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cert-ed-in { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.cert-ed-prev { max-width: 820px; }
.cert-ed-f .tbl { width: auto; }
.cert-ed-f .tbl input[type=number] { width: 78px; min-height: 34px; height: 34px; padding: 2px 8px; }
.cert-ed-f .tbl input[type=color] { width: 44px; height: 34px; padding: 2px; min-height: 0; }
.cert-ed-f .tbl input[type=radio], .cert-ed-f .tbl input[type=checkbox] { width: 18px; height: 18px; min-height: 0; }
.cert-ed-f .tbl label { white-space: nowrap; }
.cert { position: relative; width: 100%; background-size: 100% 100%; background-repeat: no-repeat; container-type: inline-size; font-family: 'Montserrat', 'Outfit', sans-serif; overflow: hidden; box-shadow: 0 0 0 1px #D2E2EE; }
.cert span { position: absolute; transform: translate(-50%, -50%); text-align: center; line-height: 1.12; overflow-wrap: anywhere; }
.cert-ed .cert { cursor: crosshair; }
.cert-ed .cert span { outline: 1px dashed rgba(31,111,174,.6); }
.num-xs { width: 70px; }
.tbl-tight td, .tbl-tight th { padding: 4px 6px; }
.found-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.found { border: 1px solid #D2E2EE; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.found img { width: 100%; height: 160px; object-fit: contain; background: #f6f8fa; border-radius: 8px; }
.found select { max-width: 120px; }
.arch-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.arch-ph figure { margin: 0; border: 1px solid #D2E2EE; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.arch-ph img { width: 100%; height: 170px; object-fit: contain; background: #fff; }
.arch-ph .dup { outline: 2px solid #E0A100; }
.awards-co .aw-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.awards-co article { display: flex; gap: 12px; align-items: center; border: 1px solid #D2E2EE; border-radius: 12px; padding: 10px; }
.awards-co article > div { display: flex; flex-direction: column; gap: 4px; }
.cert .cert-m { position: absolute; transform: translate(-50%, -50%); height: auto; }
.brand-subs { margin: 0 0 14px; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .row4 { grid-template-columns: 1fr 1fr; } }
.cov td { vertical-align: middle; }
.cov-th { width: 90px; height: 64px; object-fit: contain; display: block; border-radius: 4px; box-shadow: 0 0 0 1px #D2E2EE; }
.cov-c { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cov-c > div { border: 1px solid #D2E2EE; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cov-c > div.miss { border-color: #E5A4A4; background: #FFF6F6; }
.found-sel { display: flex; gap: 6px; align-items: center; word-break: break-all; }
.found-f { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.found-f select { max-width: none; width: 100%; }
.found-bar { margin: 10px 0; }
.scan-dyn { max-height: 260px; overflow: auto; background: #F6F8FA; padding: 10px; border-radius: 8px; white-space: pre-wrap; }
.tabs-sub a { padding: 6px 12px; font-size: 13px; } .tabs-sub small { opacity: .7; }
.cert-also { margin: 10px 0; border: 1px solid #D2E2EE; border-radius: 10px; padding: 8px 12px; }
.cert-also summary { cursor: pointer; font-weight: 600; }
.also-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.also { display: flex; flex-direction: column; gap: 4px; border: 1px solid #D2E2EE; border-radius: 8px; padding: 6px; cursor: pointer; }
.also img { width: 100%; height: 80px; object-fit: contain; background: #f6f8fa; }
.also:has(input:checked) { border-color: var(--navy); background: #EEF4FA; }

/* ===== 0.8.6 · mensajes, avisos, invitaciones, panel ===== */
.nav-n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.co-nav .nav-n { margin-left: 6px; vertical-align: 1px; }
.tabs b.cnt { margin-left: 6px; font-size: 12px; background: var(--tint); color: var(--navy); border-radius: 10px; padding: 1px 7px; }
.tabs a.on b.cnt { background: rgba(255,255,255,.2); color: #fff; }
.tabs b.cnt.hot { background: var(--red); color: #fff; }
.msg-wrap { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 14px; align-items: start; }
.msg-side { padding: 0 !important; overflow: hidden; }
.msg-side .filters { border-bottom: 1px solid var(--line); }
.msg-threads { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow: auto; }
.msg-threads.co { max-height: none; }
.msg-threads li { border-bottom: 1px solid #E9F1F7; }
.msg-threads li a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; text-decoration: none; color: var(--navy); }
.msg-threads li a:hover { background: var(--bg); }
.msg-threads li.on a { background: var(--tint); }
.msg-threads li.unread a { border-left: 4px solid var(--red); padding-left: 12px; }
.msg-threads li.unread .mt-sub, .msg-threads li.unread .mt-top strong { font-weight: 800; }
.mt-top { display: flex; justify-content: space-between; gap: 8px; }
.mt-top small, .mt-last { color: var(--muted); font-size: 13px; }
.mt-sub { font-size: 14px; }
.mt-last em { font-style: normal; font-weight: 600; }
.imp { color: var(--gold); }
.msg-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.msg-h h2 { margin: 2px 0; }
.msg-thread { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 12px; }
.msg-b { max-width: 82%; background: var(--bg); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.msg-b.mine { align-self: flex-end; background: var(--tint); border-color: #C3DAEC; border-radius: 16px 16px 4px 16px; }
.msg-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg-txt { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.msg-seen { margin: 0 0 10px; text-align: right; }
.msg-reply textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font: 15px var(--font); min-height: 96px; }
.msg-reply .form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.choice-row { display: flex; flex-direction: column; gap: 6px; }
.choice-row .opt { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.tpl-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tpl-row select { width: auto; }
.msg-pin { display: grid; gap: 8px; margin: 0 0 16px; }
.msg-pin a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--cyan-bg); border: 1px solid #B9DCEB; text-decoration: none; color: var(--navy); }
.msg-pin a.imp { background: var(--amber-bg); border-color: #EAD48A; color: var(--navy); }
.msg-pin span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.msg-pin small { color: var(--muted); }
.ntc-wrap { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 14px; align-items: start; }
.ntc-list h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.ntc-list h3:first-child { margin-top: 0; }
.ntc-list ul { list-style: none; margin: 0; padding: 0; }
.ntc-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; }
.ntc-list li.on { background: var(--tint); }
.ntc-list li a { text-decoration: none; color: var(--navy); font-size: 14px; flex: 1; }
.ntc-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ntc-main .card { margin: 0; }
.tgl { width: 44px; height: 26px; border-radius: 13px; border: 0; background: var(--line2); position: relative; cursor: pointer; flex: none; padding: 0; }
.tgl i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tgl.on { background: var(--green); }
.tgl.on i { left: 21px; }
.ntc-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ntc-l { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ntc-l legend { font-weight: 700; padding: 0 6px; }
.ntc-l textarea { min-height: 150px; }
.ntc-to { display: flex; flex-direction: column; gap: 6px; }
.mail-prev { width: 100%; height: 440px; border: 1px solid var(--line); border-radius: 14px; background: #F1F7FB; margin: 8px 0; }
.inv-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.inv-sum .pill { margin: 2px 0; }
.inv-add summary { cursor: pointer; list-style: none; }
.inv-add summary::-webkit-details-marker { display: none; }
.inv-add[open] summary { margin-bottom: 12px; }
.inv-add .grid2 { margin: 0; }
.inv-tbl td { vertical-align: top; }
.inv-tbl .chips-row { display: flex; flex-wrap: wrap; gap: 4px; }
.inv-tbl .chip span { min-height: 28px; padding: 0 9px; font-size: 12px; }
.inv-lang { width: auto !important; min-height: 28px !important; padding: 2px 6px !important; font-size: 12px !important; margin-top: 4px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dash2 { align-items: start; }
.pend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pend a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--navy); font-size: 14px; }
.pend a:hover { background: var(--tint); }
.pend b { min-width: 36px; height: 30px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: var(--amber-bg); color: var(--amber); font-family: var(--head); font-size: 16px; padding: 0 8px; }
.pend .pd-hot b { background: var(--red-bg); color: var(--red2); }
.pend .pd-info b { background: var(--cyan-bg); color: var(--cyan); }
.pend .pd-cfg b { background: var(--violet-bg); color: var(--violet); }
.pend span { flex: 1; }
.pend i { color: var(--muted2); font-style: normal; }
.pend .pd-none { padding: 10px 12px; color: var(--green); font-weight: 600; }
.card h3 { margin: 16px 0 8px; font-size: 15px; }
.tasks { list-style: none; margin: 0 0 8px; padding: 0; }
.tasks li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #E9F1F7; font-size: 14px; }
.tasks li > span { flex: 1; display: flex; flex-direction: column; }
.tasks li small { color: var(--muted2); font-size: 12px; }
.tasks li.done > span { text-decoration: line-through; color: var(--muted2); }
.tk { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line2); background: #fff; color: #fff; cursor: pointer; font-weight: 800; padding: 0; line-height: 1; }
.tasks li.done .tk { background: var(--green); border-color: var(--green); }
.task-add { display: flex; gap: 8px; }
.task-add input { flex: 1; min-height: 38px; border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px; font: 14px var(--font); }
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #E9F1F7; font-size: 14px; }
.news li > i { font-style: normal; width: 30px; height: 30px; border-radius: 15px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.news li a { flex: 1; display: flex; flex-direction: column; text-decoration: none; color: var(--navy); min-width: 0; }
.news li a span { font-size: 12px; color: var(--muted); }
.news li a strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news li small { color: var(--muted2); white-space: nowrap; }
.news .nw-bad > i { background: var(--red-bg); }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #E9F1F7; }
.st-list li .pill { flex: none; min-width: 64px; text-align: center; }
.st-list li div { display: flex; flex-direction: column; font-size: 14px; }
.st-list small { color: var(--muted); }
.need { border: 2px solid var(--gold); }
@media (max-width: 900px) {
  .msg-wrap, .ntc-wrap { grid-template-columns: 1fr; }
  .msg-threads { max-height: 40vh; }
  .inv-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .msg-b { max-width: 94%; }
}
.pend .cfg-it { font-style: normal; }

/* ===== 0.8.7 ===== */
.var-pick select { width: 100%; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.var-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--tint); border: 1px solid #C3DAEC; font-size: 14px; font-weight: 600; }
.var-chip button { border: 0; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted); padding: 0 4px; }
.var-chip button:hover { color: var(--red); }
.var-other { display: flex; gap: 8px; margin-top: 6px; }
.var-other input { flex: 1; }
.jl-wrap { max-height: 460px; overflow: auto; }
.jl .jl-done td { opacity: .6; }
.jl-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.jl-bar .fld { margin: 0; }
.jl-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jl-bar p { flex-basis: 100%; margin: 0; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red2); }
.rs-keep { border: 2px solid var(--green-bg); }
.rs-confirm { border: 2px solid var(--red); }
.rs-list { display: flex; flex-direction: column; gap: 8px; }
.rs-it { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.rs-it:has(input:checked) { border-color: var(--red); background: var(--red-bg); }
.rs-it input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.rs-it span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.rs-it small { color: var(--muted); }
.rs-it b { font-family: var(--head); font-size: 18px; color: var(--muted); }
.sm-reply { background: var(--green-bg); border-radius: 12px; padding: 8px 12px; margin: 6px 0; }
.sm-reply p { margin: 4px 0 0; }
.sm-form { margin-top: 6px; }
.sm-form summary { list-style: none; display: inline-flex; }
.sm-form summary::-webkit-details-marker { display: none; }
.sm-form[open] summary { margin-bottom: 8px; }
.mt-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
[hidden] { display: none !important; }
.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #E9F1F7; flex-wrap: wrap; }
.sp-list li.off { opacity: .55; }
.sp-logo { width: 120px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; }
.sp-logo img { max-width: 110px; max-height: 40px; }
.sp-logo em { font-size: 12px; color: var(--muted2); }
.sp-t { flex: 1; display: flex; flex-direction: column; min-width: 140px; }
.sp-t small { color: var(--muted); }
.sp-prev { max-width: 200px; max-height: 80px; display: block; margin: 4px 0 8px; background: var(--bg); border-radius: 8px; padding: 6px; }
.v-live { display: flex; flex-wrap: wrap; gap: 10px; }
.v-live > div { background: var(--green-bg); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 140px; }
.v-live strong { font-size: 22px; }
.v-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-tbl td { vertical-align: top; }
.v-dec { min-width: 260px; }
.v-re summary { list-style: none; display: inline-flex; margin-top: 6px; }
.v-re summary::-webkit-details-marker { display: none; }
.v-re form { margin-top: 8px; background: var(--bg); border-radius: 12px; padding: 10px; }
.res-catas { display: flex; flex-direction: column; gap: 6px; }
.res-cata { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.res-cata.on { background: var(--green-bg); }
.j-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }

/* seguimiento de envíos */
.state-tabs:has(> :nth-child(7)) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tbl tr.row-alert td { background: #FDF1F1; }
.tbl a.trk { color: inherit; text-decoration: none; display: block; }
.tbl a.trk.red strong { color: #8A1C1C; }
.trk-alert { background: var(--red-bg); border: 1px solid #E9B8B8; color: #8A1C1C; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.trk-alert p { margin: 4px 0 10px; font-size: 14px; }
.trk-h { font-size: 15px; margin: 16px 0 6px; display: flex; flex-direction: column; gap: 2px; }
.trk-h small { font-weight: 400; font-size: 12px; }
.trk-list { list-style: none; margin: 0 0 12px; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.trk-list li { position: relative; padding: 6px 0 8px 4px; display: flex; flex-direction: column; font-size: 14px; }
.trk-list li::before { content: ''; position: absolute; left: -25px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #9DB6C8; border: 2px solid #fff; }
.trk-list li.last::before { background: var(--navy); }
.trk-list li.bad strong { color: #8A1C1C; } .trk-list li.bad::before { background: #C0392B; }
.trk-list small { color: var(--muted, #5B7386); font-size: 12px; }
.trk-man { margin-top: 10px; } .trk-man summary { cursor: pointer; color: var(--muted, #5B7386); }
@media (max-width: 1100px) { .state-tabs:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .state-tabs:has(> :nth-child(7)) { grid-template-columns: 1fr 1fr; } }
.tbl td a.mono { white-space: nowrap; }
/* validación: notas de cada jurado */
.v-scs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.v-scs i { color: var(--muted); font-style: normal; }
.v-sc.out { color: #B3261E; text-decoration: line-through; }
.v-sc.dnf { color: #4A3F73; }
.v-big { font-size: 18px; }
.v-livehead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.v-new { display: block; width: 100%; text-align: left; cursor: pointer; border: 0; font: inherit; }
.v-auto { margin: 0 0 10px; }
.v-tbl td { vertical-align: top; }
/* resultados: puntaje y medalla, centrados y de solo lectura; el administrador corrige con «Editar» */
.res-tbl th.c, .res-tbl td.c { text-align: center; }
.res-sc, .res-md { min-width: 110px; }
.res-sc > *, .res-md > * { display: block; margin: 0 auto; width: max-content; }
.res-sc .pill { margin-top: 4px; }
.res-score { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--navy); }
.res-sc small, .res-md small { font-size: 11px; margin-top: 2px; }
.res-medal { font-weight: 700; font-size: 13px; border-radius: 999px; padding: 5px 12px; background: var(--tint); color: var(--navy); }
.res-medal.m-gold { background: #F6E7B0; color: #6B5300; }
.res-medal.m-silver { background: #E6EBEF; color: #3D4B57; }
.res-medal.m-bic { background: #0E2A47; color: #fff; }
.res-edit { position: relative; }
.res-edit[open] > form { position: absolute; right: 0; top: 34px; z-index: 20; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 12px 30px rgba(14,42,71,.18); }
.res-tbl tr.res-dim td { background: #FAFCFE; }
/* textos de la ficha */
.ft-tbl input { width: 100%; min-width: 140px; }
.ft-tbl td { vertical-align: top; }
.ft-tbl td.ft-ch input { border-color: var(--blue); background: #F1F7FB; }
.ft-tbl td small { display: block; margin-top: 3px; font-size: 11px; }
/* empresa: etiquetas del concurso */
.label-guide.lg-new { border: 2px solid var(--blue); }
.lg-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; }
.lg-svg { width: 100%; height: auto; }
.lg-steps { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.lg-remind { color: #8A5A00; background: #FFF6DC; border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; }
.pdo-hint { margin: 6px 0 0; font-size: 13px; color: #1F5A73; background: #E8F4FA; border-radius: 10px; padding: 8px 12px; }
@media (max-width: 720px) { .lg-grid { grid-template-columns: 1fr; } .lg-svg { max-width: 320px; margin: 0 auto; display: block; } }
.ft-x { border: 1px solid #E9B8B8; background: #fff; color: #B3261E; border-radius: 999px; width: 30px; height: 30px; cursor: pointer; font-weight: 700; }
.ft-x:hover { background: #FDECEC; }
.ft-add td { background: #F6FAFD; }
.ft-add input { border-style: dashed; }
/* empresa: facturas, historial, resultados */
.inv-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #EAF4FB; border: 1px solid #BFDCEF; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.inv-cta p { margin: 4px 0 0; }
.hist h3 { font-size: 15px; margin: 14px 0 6px; }
.myres-list { display: flex; flex-direction: column; gap: 12px; }
.myres-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.myres-ph { width: 70px; height: 92px; object-fit: contain; background: #F4F8FB; border-radius: 10px; display: block; }
.myres-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.myres-aw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.myres-aw .aw { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--tint); color: var(--navy); }
.myres-aw .aw-gold { background: #F6E7B0; color: #6B5300; } .myres-aw .aw-silver { background: #E6EBEF; color: #3D4B57; } .myres-aw .aw-bic { background: #0E2A47; color: #fff; }
.myres-m { width: 64px; height: 64px; object-fit: contain; }
.env-ss { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.env-act { white-space: nowrap; }
.env-ev summary { cursor: pointer; color: var(--blue); }
@media (max-width: 640px) { .myres-list article { grid-template-columns: 56px minmax(0, 1fr); } .myres-m { display: none; } }
/* director técnico · en vivo */
.lv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lv-top h1 { margin: 2px 0; }
.lv-kpis { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.lv-kpis > div { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.lv-kpis span { font-size: 12px; color: var(--muted); }
.lv-kpis strong { font-family: var(--head); font-size: 22px; }
.lv-kpis i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w); background: #4CAF50; }
.lv-kpis .m-bic { background: #0E2A47; } .lv-kpis .m-bic span, .lv-kpis .m-bic strong { color: #F3E7C2; }
.lv-kpis .m-gold { background: #FBF1CC; } .lv-kpis .m-silver { background: #E4EAF0; } .lv-kpis .m-re { background: #FDE9C8; }
.lv-kpis .lv-all { background: #E7F2D8; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lv-col { background: #fff; border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.lv-col header { background: linear-gradient(180deg, #0E2A47, #1F6FAE); color: #fff; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.lv-col header strong { font-family: var(--head); font-size: 20px; }
.lv-col header small { color: #F3E7C2; font-size: 12px; }
.lv-ph { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 3px solid #C9A227; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.lv-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lv-bars { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 11px; color: #DCEBF7; }
.lv-bars b { color: #fff; }
.lv-bar { position: relative; width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.lv-bar i { position: absolute; left: 0; top: 0; bottom: 0; } .lv-bar i.s { background: #4CAF50; } .lv-bar i.p { background: #8ED1F4; }
.lv-list { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.lv-row { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 9px; min-height: 34px; background: #fff; border: 1px solid #E4EEF5; color: #46607A; font-size: 12px; }
.lv-row.st-done { background: #F2F8EC; border-color: #CFE3BF; color: var(--navy); }
.lv-row.st-table { background: #2F7D32; border-color: #2F7D32; color: #fff; }
.lv-row.st-next { background: #1F6FAE; border-color: #1F6FAE; color: #fff; font-weight: 700; }
.lv-code { font-family: var(--mono); font-size: 15px; font-weight: 800; }
.lv-code em { font-family: var(--font); font-style: normal; font-size: 10px; background: #FDE9C8; color: #8A5A00; border-radius: 6px; padding: 1px 5px; }
.lv-info { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-val { flex-shrink: 0; font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 6px; min-width: 34px; text-align: center; }
.st-table .lv-val { font-style: italic; font-weight: 600; }
.lv-val.m-bic { background: #0E2A47; color: #F3E7C2; } .lv-val.m-gold { background: #FBF1CC; color: #7A5C0B; } .lv-val.m-silver { background: #E4EAF0; color: #46607A; } .lv-val.m-none { background: #FBE4E4; color: #8A1C1C; }
.lv-val.m-re { background: #FDE9C8; color: #8A5A00; } .lv-val.m-dnf { background: #ECEAF4; color: #4A3F73; }
.lv-done summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #2F5D1E; background: #F2F8EC; border: 1.5px dashed #7DB35A; border-radius: 10px; padding: 7px; text-align: center; list-style: none; }
.lv-done[open] summary { margin-bottom: 5px; }
.lv-done > .lv-row { margin-bottom: 5px; }
.lv-fin { text-align: center; }
@media (max-width: 1200px) { .lv-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* validación: mesa de color, código desplegable, recatas */
.tb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; color: #fff; font: 700 13px/1 var(--mono); flex: none; }
.tb-0 { background: #1F6FB2; } .tb-1 { background: #2E8B57; } .tb-2 { background: #C2410C; } .tb-3 { background: #7C3AED; } .tb-4 { background: #B91C5C; }
.tb-5 { background: #0F766E; } .tb-6 { background: #A16207; } .tb-7 { background: #4338CA; } .tb-8 { background: #65A30D; } .tb-9 { background: #475569; }
.v-cc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-code { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 10px; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--navy); }
.v-code i { font-style: normal; font-size: 11px; color: var(--muted); display: inline-block; transition: transform .15s; }
.v-code[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.v-code[aria-expanded="true"] i { transform: rotate(180deg); color: #fff; }
.v-flav { display: inline-flex; width: 20px; height: 20px; border-radius: 6px; background: #E3F2E1; color: #2E7D32; font: 700 11px/20px var(--mono); justify-content: center; }
.tbl tr.v-det td { background: var(--bg); padding-top: 4px; }
.v-info { display: flex; gap: 14px; align-items: flex-start; }
.v-info img { width: 64px; height: 86px; object-fit: contain; border-radius: 8px; background: #fff; }
.v-info dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 18px; flex: 1; }
.v-info dl div { display: flex; flex-direction: column; }
.v-info dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.v-info dd { margin: 0; font-weight: 600; }
.v-tbl th.c, .v-tbl td.c { text-align: center; }
.v-first { min-width: 170px; }
.v-lv-h { display: flex; align-items: center; gap: 8px; }
.cnt-b { display: inline-flex; min-width: 24px; height: 24px; border-radius: 12px; background: var(--red-bg); color: #8A1C1C; font-size: 13px; align-items: center; justify-content: center; padding: 0 7px; vertical-align: middle; }
.v-rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.v-rcard { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; box-shadow: 0 1px 0 rgba(14,42,71,.04); }
.v-rcard header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-rsc { font-size: 22px; font-weight: 700; color: #8A1C1C; }
.v-rcard .v-info { background: var(--bg); border-radius: 12px; padding: 10px; }
.v-why { margin: 0; font-style: italic; color: #8A1C1C; }
.v-was { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v-asg { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.tb-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-pick label { cursor: pointer; }
.tb-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tb-pick .tb-badge { width: 40px; height: 40px; border-radius: 20px; font-size: 16px; opacity: .45; transition: opacity .12s, transform .12s; }
.tb-pick input:checked + .tb-badge { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.tb-pick input:focus-visible + .tb-badge { outline: 2px solid var(--navy); outline-offset: 2px; }
.v-rdone { list-style: none; margin: 0; padding: 0; }
.v-rdone li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #E9F1F7; flex-wrap: wrap; }
.v-rd-t { flex: 1; display: flex; flex-direction: column; min-width: 180px; }
.v-rd-s { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* en vivo: medalla al lado del puntaje; tocar despliega la muestra y, otra vez, la foto */
.lv-row[data-lvx] { flex-wrap: wrap; cursor: pointer; }
.lv-row[data-lvx]:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.lv-medal { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.lv-medal i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); position: relative; }
.lv-medal.m-gold i { background: radial-gradient(circle at 35% 30%, #FFF3B0, #E2B53C 55%, #A87C12); }
.lv-medal.m-silver i { background: radial-gradient(circle at 35% 30%, #FFFFFF, #C3CCD4 55%, #7D8A96); }
.lv-medal.m-bic i { background: radial-gradient(circle at 35% 30%, #FFF3B0, #E2B53C 55%, #A87C12); box-shadow: 0 0 0 2px #0E2A47, inset 0 -2px 0 rgba(0,0,0,.18); }
.lv-medal.m-bic i::after { content: '★'; position: absolute; inset: 0; font-size: 10px; line-height: 16px; text-align: center; color: #0E2A47; font-style: normal; }
.lv-medal.m-gold { color: #7A5C0B; } .lv-medal.m-silver { color: #46607A; } .lv-medal.m-bic { color: #0E2A47; } .lv-medal.m-none { color: #8A1C1C; font-weight: 600; }
.lv-more, .lv-photo { flex-basis: 100%; }
.lv-more dl { margin: 6px 0 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.lv-more dl div { display: flex; flex-direction: column; min-width: 0; }
.lv-more dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.lv-more dd { margin: 0; font-weight: 700; font-size: 12px; overflow-wrap: anywhere; }
.lv-hint { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
.lv-photo { text-align: center; padding: 6px 0 2px; }
.lv-photo img { max-width: 100%; max-height: 300px; border-radius: 10px; background: #fff; }
/* ficha del jurado: cabecera y pestañas */
.jd-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jd-who { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.jd-who h1 { margin: 0; font-size: 26px; }
.jd-tabs { margin-top: 4px; }
.tabs b.cnt.cnt-red { background: var(--red, #C0392B); color: #fff; }
/* diseño de la invitación */
.invc-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.invc-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.invc-pages figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.invc-pages img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(14,42,71,.15); background: #FEFFF8; }
.invc-pages figcaption { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invc-form textarea { font-size: 14px; line-height: 1.5; }
@media (max-width: 1000px) { .invc-wrap { grid-template-columns: 1fr; } }
/* invitar empresas */
.coi-prog { margin: 10px 0; }
.coi-bar { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; margin: 8px 0; max-width: 520px; }
.coi-bar i { display: block; height: 100%; background: #4CAF50; transition: width .3s; }
.coi-how { background: var(--bg); border-radius: 12px; padding: 4px 14px; margin-bottom: 12px; font-size: 14px; }
.coi-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.coi-sum > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.coi-sum > div.on { background: var(--green-bg); }
.coi-sum strong { font-size: 24px; }
.coi-sum span { font-size: 12px; color: var(--muted); }
.coi-foot { margin-top: 12px; }
@media (max-width: 700px) { .coi-sum { grid-template-columns: 1fr 1fr; } }
.v-code-st { cursor: default; }

/* ===== 0.15.0 · formas de pago (tarjeta iyzico y transferencia) ===== */
.pill-pending { background: var(--amber-bg); color: var(--amber); }
.pill-muted { background: var(--tint); color: var(--muted); }
.paybox .pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0; }
.paybox .pay-opt { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: #fff; }
.paybox .pay-opt h3 { margin: 0; font-size: var(--fs-md); }
.paybox .pay-opt p { margin: 0; }
.paybox .pay-opt form { margin: 4px 0 0; }
.paybox .pay-brand { font-size: var(--fs-xs); color: var(--muted2); letter-spacing: .06em; text-transform: uppercase; }
.paybox .pay-done { font-weight: 600; color: var(--green); }
.paybox .pay-note { padding: 10px 12px; border-radius: var(--r-ctrl); background: var(--green-bg); color: var(--green2); font-size: var(--fs-sm); }
.paybox .pay-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.paybox .pay-declare { width: 100%; }
.paybox .pay-declare > summary { list-style: none; display: inline-flex; cursor: pointer; }
.paybox .pay-declare > summary::-webkit-details-marker { display: none; }
.paybox .pay-declare[open] > summary { margin-bottom: 10px; }
.banks { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.bank { display: grid; grid-template-columns: minmax(96px, max-content) 1fr; gap: 4px 14px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctrl); font-size: var(--fs-sm); background: #fff; }
.bank.bank-main { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bank .bank-t { grid-column: 1 / -1; font-weight: 600; color: var(--ink); }
.bank dd.bank-t { display: none; }
.bank dd.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.inv-pay { max-width: 820px; margin: 24px auto 40px; padding: 0 16px; }
.paycfg .paycfg-st { margin: 0; }
.chk-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.bank-edit { padding: 0; }
.bank-edit > summary { padding: 12px 16px; cursor: pointer; }
.bank-edit > div { padding: 0 16px 14px; }
@media (max-width: 560px) { .bank { grid-template-columns: 1fr; } .bank dt { margin-top: 4px; } }
.inv-flash { max-width: 820px; margin: 12px auto 0; padding: 0 16px; } .inv-flash:empty { display: none; }

/* ===== 0.16.0 · Jurados en cata ===== */
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.jc-bulk { align-items: center; }
.jc-who { display: flex; gap: 10px; align-items: center; }
.jc-pass { font-size: 17px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--tint); cursor: pointer; }
.jc-user { cursor: pointer; white-space: nowrap; }
.jc-tbl .jc-who strong { white-space: nowrap; }
.jc-tbl td.actions .inline-form { display: block; margin: 0 0 6px; }
.jc-tbl td.actions .btn { width: 100%; justify-content: center; }
.jc-tbl tr.jc-locked td { background: var(--red-bg); }
.jc-hint p { margin: 0 0 4px; font-weight: 600; }
.jc-hint ul { margin: 0; padding-left: 20px; }
/* Ficha de muestra (solo lectura) */
.smp-co { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.smp-kv { grid-template-columns: minmax(120px, auto) 1fr; }
.smp-kv dd { overflow-wrap: anywhere; }
.smp-trk { border: 1px solid var(--line, #DCE3E8); border-radius: 10px; margin-top: 4px; }
.smp-trk > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; }
.smp-trk > summary::-webkit-details-marker { display: none; }
.smp-trk > summary:hover { background: var(--tint, #F2F6F8); border-radius: 10px; }
.smp-trk-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.smp-trk-s { font-size: 13px; }
.smp-trk-o { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted, #5B7386); border-bottom: 2px solid var(--muted, #5B7386); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.smp-trk[open] > summary .smp-trk-o { transform: rotate(-135deg); margin-top: 4px; }
.smp-trk-src { margin-top: 10px; }
.smp-trk[open] > summary { border-bottom: 1px solid var(--line, #DCE3E8); border-radius: 10px 10px 0 0; }
.smp-trk > :not(summary) { margin-left: 14px; margin-right: 14px; }
.smp-trk > :last-child { margin-bottom: 12px; }
.smp-data { display: flex; gap: 16px; align-items: flex-start; }
.smp-photo { width: 96px; height: auto; border-radius: 8px; flex: none; }
@media (max-width: 560px) { .smp-data { flex-direction: column; } .smp-kv { grid-template-columns: minmax(92px, 38%) 1fr; gap: 6px 10px; } .smp-kv dt { font-size: 13px; } }
/* 0.18 · muestras que vienen en mano: programadas pero en rojo hasta «Arribó» */
.pill-hand { background: var(--red-bg); color: var(--red2); }
.hand-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: #8A1C1C; font-size: 13px; }
.hand-badge b { background: #C62828; color: #fff; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.hand-badge.sm { font-size: 12px; }
.tbl tr.row-hand td { background: #FDEEEE; }
.tbl tr.row-hand td:first-child { box-shadow: inset 4px 0 0 #C62828; }
.hand-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--red-bg); border: 1px solid #E9B8B8; border-left: 4px solid #C62828; color: #8A1C1C; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.hand-box p { margin: 2px 0 0; }
.hand-mk { margin-top: 12px; }
.svc-item.hand { border-left: 4px solid #C62828; }
.svc-item.hand .svc-code { color: #C62828; }
.w-item.w-miss { background: #FDEEEE; border-color: #E9B8B8; color: #8A1C1C; }
.lv-row.st-miss { background: #FDEEEE; border: 1.5px solid #C62828; color: #8A1C1C; font-weight: 600; animation: lv-miss 1.6s ease-in-out infinite; }
.lv-row.st-miss .lv-code { color: #C62828; font-weight: 800; }
.lv-arr { margin-left: auto; }
.lv-arr .btn { min-height: 30px; }
@keyframes lv-miss { 0%, 100% { box-shadow: 0 0 0 0 rgba(198,40,40,.0); } 50% { box-shadow: 0 0 0 4px rgba(198,40,40,.18); } }
@media (prefers-reduced-motion: reduce) { .lv-row.st-miss { animation: none; } }

/* ---------- resultados: «Editar» siempre visible a la derecha (0.19.0) ---------- */
.res-tbl th.res-act, .res-tbl td.res-act { position: sticky; right: 0; z-index: 2; background: #fff; box-shadow: -10px 0 10px -10px rgba(14,42,71,.3); width: 1%; white-space: nowrap; }
.res-tbl tr.res-dim td.res-act { background: #FAFCFE; }
.res-tbl td:nth-child(3) { min-width: 150px; }
.res-tbl td:nth-child(4) { min-width: 120px; }
.res-tbl td.mono { white-space: nowrap; }
.res-edit[open] > form.res-pop { position: fixed; top: auto; right: auto; z-index: 150; }
.res-tbl td.res-act.res-open { z-index: 8; }
