:root {
  --navy: #0d2338;
  --navy-2: #102d47;
  --gold: #bd7d25;
  --gold-soft: #f6ead6;
  --paper: #ffffff;
  --canvas: #f2f5f6;
  --text: #172332;
  --muted: #697888;
  --line: #dde5e9;
  --success: #087a51;
  --danger: #b4233c;
  --radius: 16px;
  --shadow: 0 20px 55px rgba(13, 35, 56, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
}


/* v1.6.0 — paneles compactos, agenda personal y validación adaptable */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #bd7d25; outline-offset: 3px; }
.content, .card, .admin-columns > *, .details-grid > *, .simple-table > div > span, .activity-copy { min-width: 0; }
.sidebar { overflow-y: auto; }
.nav-list { flex-shrink: 0; }
.sidebar-user-copy { min-width: 0; }
.sidebar-user-copy strong { overflow-wrap: anywhere; }
.admin-columns { align-items: start; }
.row-actions { flex-wrap: wrap; }
.simple-table > div { flex-wrap: wrap; }
.disclosure-panel { padding: 0; overflow: hidden; }
.disclosure-panel > summary { display: flex; align-items: center; gap: 12px; padding: 19px 23px; cursor: pointer; list-style: none; color: var(--navy); font-weight: 750; font-size: 16px; }
.disclosure-panel > summary::-webkit-details-marker, .activity-item > summary::-webkit-details-marker { display: none; }
.disclosure-panel > summary > span:first-child { flex: 1; }
.panel-count { min-width: 28px; padding: 3px 8px; text-align: center; border-radius: 999px; color: #526271; background: #edf2f5; font-size: 12px; }
.panel-chevron { font-size: 23px; line-height: 1; transition: transform .15s; }
.disclosure-panel[open] > summary { border-bottom: 1px solid var(--line); }
.disclosure-panel[open] > summary .panel-chevron { transform: rotate(180deg); }
.panel-body { padding: 20px 23px; }
.panel-body > .section-title:has(> div:empty):not(:has(button, form, p, a)) { display: none; }
.panel-body .section-title { margin-bottom: 15px; }
.list-tools, .list-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin: 10px 0 16px; }
.list-search { max-width: 340px; flex: 1 1 190px; }
.list-pagination { justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.list-counter { color: #526271; font-size: 12px; }
.list-pagination .button:disabled { opacity: .4; cursor: default; }
.payment-form { display: grid; gap: 7px; min-width: 185px; margin-top: 12px; }
.payment-form label { font-size: 11px; }
.activity-row > span:nth-child(2) { min-width: 0; }
.activity-row small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activity-calendar { overflow: hidden; }
.view-switch { display: inline-flex; gap: 4px; padding: 4px; background: #edf2f5; border-radius: 11px; }
.view-switch a { padding: 8px 17px; border-radius: 8px; font-size: 13px; font-weight: 750; }
.view-switch a.is-active { background: white; color: var(--navy); box-shadow: 0 2px 7px #0d233814; }
.calendar-toolbar, .month-navigation, .month-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calendar-toolbar { margin: 22px 0 16px; }
.month-navigation { flex: 1; }
.month-navigation h3 { margin: 0; min-width: 155px; text-align: center; font-size: 18px; }
.month-navigation .button { min-width: 38px; padding: 6px 12px; font-size: 22px; }
.month-picker input { width: 170px; }
.activity-legend { display: flex; gap: 10px 18px; flex-wrap: wrap; margin: 0 0 20px; }
.activity-legend span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #526271; }
.activity-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--state); }
.state-available { --state: #b4233c; --state-bg: #fff1f3; --state-text: #991b32; }
.state-pending { --state: #c28500; --state-bg: #fff6d7; --state-text: #765100; }
.state-confirmed { --state: #138259; --state-bg: #e9f7ef; --state-text: #0b633f; }
.state-past { --state: #8895a0; --state-bg: #f0f3f5; --state-text: #526271; }
.activity-status { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--state-bg); color: var(--state-text); font-size: 11px; font-weight: 730; }
.activity-list { display: grid; gap: 12px; }
.activity-item { border: 1px solid var(--line); border-left: 4px solid var(--state); border-radius: 12px; background: white; overflow: hidden; }
.activity-item > summary { display: grid; grid-template-columns: 48px minmax(0,1fr) minmax(100px,180px) auto; align-items: center; gap: 16px; list-style: none; cursor: pointer; padding: 18px; }
.activity-copy > strong, .activity-copy > small { display: block; }
.activity-copy > strong { color: var(--navy); font-size: 15px; }
.activity-copy > small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.description-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; color: #526271; font-size: 13px; overflow-wrap: anywhere; }
.activity-more { color: #526271; font-size: 11px; white-space: nowrap; }
.activity-item[open] > summary { background: #f8fafb; border-bottom: 1px solid var(--line); }
.activity-detail { padding: 22px; }
.activity-description { margin: 20px 0; overflow-wrap: anywhere; }
.activity-description h3 { font-size: 14px; margin: 0 0 8px; }
.activity-description p { color: #425160; font-size: 14px; line-height: 1.7; }
.activity-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 0 0 22px; }
.activity-facts .full { grid-column: 1 / -1; }
.activity-facts dt { color: var(--muted); font-size: 11px; }
.activity-facts dd { margin: 3px 0 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.calendar-hint { margin-bottom: 14px; }
.calendar-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); min-width: 680px; }
.weekday { background: #f6f8fa; color: var(--muted); text-align: center; font-size: 11px; font-weight: 750; padding: 13px 3px; }
.month-day { min-height: 140px; padding: 9px 6px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.month-day:nth-child(7n) { border-right: 0; }
.day-number { display: grid; place-items: center; margin: 0 0 7px 3px; width: 25px; height: 25px; font-size: 12px; color: #526271; }
.month-day.is-today .day-number { background: var(--navy); color: white; border-radius: 50%; font-weight: 800; }
.outside-month { background: #f8fafb; }
.outside-month .day-number { color: #82909c; }
.month-event { display: block; width: 100%; padding: 8px; margin-top: 6px; border: 0; border-left: 3px solid var(--state); border-radius: 5px; color: var(--state-text); background: var(--state-bg); text-align: left; }
.month-event span, .month-event strong, .month-event small { display: block; overflow-wrap: anywhere; }
.month-event span { font-size: 10px; }
.month-event strong { font-size: 11px; margin: 3px 0; }
.month-event small { font-size: 9px; line-height: 1.4; }
.dialog-content { padding: 23px; }
.event-dialog .activity-detail { padding: 0; }
.event-dialog .activity-detail form { padding: 0; }
.event-dialog .dialog-head button { flex-shrink: 0; }
.details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.details-grid > .full { grid-column: 1 / -1; }
.verify-shell { width: min(720px, calc(100% - 32px)); }
.verify-shell > .brand { display: flex; width: max-content; max-width: 100%; margin: 0 auto; }
.verify-card { --verify-padding: 32px; padding: var(--verify-padding); }
.verify-card .verify-status { margin: calc(-1 * var(--verify-padding)) calc(-1 * var(--verify-padding)) 28px; padding: 30px var(--verify-padding); }
.verify-card .details-grid { width: 100%; text-align: left; gap: 22px; }
.verify-card .details-grid > div { min-width: 0; overflow-wrap: anywhere; }
.verify-card .details-grid .full { grid-column: 1 / -1; padding: 15px; border-radius: 10px; background: #f5f8fa; text-align: center; }
.verify-card .hash-value { overflow-wrap: anywhere; word-break: break-word; font-family: ui-monospace, Consolas, monospace; line-height: 1.8; font-size: 12px; }
.verify-form input { min-width: 0; }
.verify-card > .button { margin-top: 20px; }
@media (max-width: 1100px) {
  .activity-item > summary { grid-template-columns: 48px minmax(0,1fr) auto; }
  .activity-item > summary .activity-status { grid-column: 2; width: fit-content; }
  .activity-more { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 680px) {
  .panel-body { padding: 16px; }
  .disclosure-panel > summary { padding: 17px 16px; font-size: 14px; }
  .list-pagination { justify-content: space-between; }
  .activity-item > summary { padding: 14px; gap: 10px; grid-template-columns: 38px minmax(0,1fr); }
  .activity-more { grid-column: 2; grid-row: auto; }
  .activity-item .date-tile { width: 38px; }
  .activity-detail { padding: 17px; }
  .activity-facts { grid-template-columns: 1fr; }
  .month-navigation { flex-basis: 100%; justify-content: space-between; }
  .month-picker { margin-left: auto; }
  .month-picker input { width: 145px; }
  .calendar-toolbar > .button { padding-inline: 9px; }
  .view-switch { width: 100%; }
  .view-switch a { flex: 1; text-align: center; }
  .verify-card { --verify-padding: 20px; }
  .verify-card h1 { font-size: 27px; }
  .details-grid { grid-template-columns: 1fr; }
  .verify-card .details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .verify-card .details-grid strong { font-size: 12px; }
}

/* v1.22.0 · gobernanza DAS y suspensión disciplinaria */
.discipline-home-suspension { display:grid; grid-template-columns:64px minmax(0,1fr); gap:20px; align-items:start; margin:0 0 22px; padding:24px; border:1px solid #d99632; border-left:7px solid #a8442c; border-radius:16px; background:linear-gradient(135deg,#fff4df,#fffaf2); color:#65330e; box-shadow:0 12px 30px rgba(112,57,13,.12); }
.discipline-home-suspension > span { display:grid; place-items:center; width:58px; height:58px; border-radius:16px; background:#a8442c; color:white; font-size:28px; }
.discipline-home-suspension h2 { margin:3px 0 8px; color:#713313; font-size:clamp(20px,3vw,29px); }
.discipline-home-suspension p { max-width:850px; line-height:1.55; }
.discipline-v2-hero { margin-bottom:20px; }
.category-token-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.category-token-list form { margin:0; }
.discipline-defense { border-left:5px solid #3d78a3; }
.status-pill.danger { background:#fde8e4; color:#9b3524; border-color:#efb3a8; }
.notice-card.danger { border-color:#e8a397; background:#fff2ef; color:#7e2f21; }
@media (max-width:680px) {
  .discipline-home-suspension { grid-template-columns:1fr; padding:19px; }
  .discipline-home-suspension .button { width:100%; }
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
input, select, textarea {
  width: 100%;
  border: 1px solid #ccd8df;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189, 125, 37, .14); }
input:disabled { background: #f2f5f6; color: #84919e; }
textarea { resize: vertical; }
label { display: grid; gap: 7px; color: #3b4a58; font-size: 14px; font-weight: 650; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.025em; }
.muted { color: var(--muted); }
.text-success { color: var(--success) !important; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border: 2px solid var(--gold); border-radius: 50%; color: var(--navy); font-size: 23px; }
.brand strong { display: block; color: var(--navy); font-size: 18px; letter-spacing: .16em; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: #73818d; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.brand-inverse .brand-mark { color: white; border-color: rgba(255,255,255,.65); }
.brand-inverse strong { color: white; }
.brand-inverse small { color: #98a8b7; }

.public-body { background: #edf2f4; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) 1.1fr; }
.login-brand-panel { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; padding: 48px; color: white; background: var(--navy); }
.login-brand-panel::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -220px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.login-brand-panel > * { position: relative; z-index: 1; }
.login-message { margin: auto 0; max-width: 640px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #e3a64e; }
.login-message h1 { margin: 16px 0 22px; color: white; font-size: clamp(38px, 4vw, 60px); line-height: 1.06; letter-spacing: -.05em; }
.login-message > p:not(.eyebrow) { max-width: 580px; color: #b9c6d1; font-size: 18px; line-height: 1.75; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 44px; }
.feature-strip span { min-height: 90px; display: flex; align-items: flex-end; padding: 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 15px; background: rgba(255,255,255,.045); color: #dce4ea; font-size: 14px; font-weight: 650; }
.login-brand-panel > small { color: #687d8f; }
.login-form-panel { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 48px 48px 76px; background: white; }
.login-form-wrap { width: min(460px, 100%); }
.login-form-wrap h2 { margin: 8px 0 8px; font-size: 38px; }
.login-form-wrap > .muted { margin-bottom: 28px; }

/* v1.10.1 · Identificación del sistema en login */
.login-system-credit { position: absolute; left: 28px; right: 28px; bottom: 18px; margin: 0; color: #a2adb5; font-size: 10px; line-height: 1.45; text-align: center; letter-spacing: .01em; }
.mobile-brand { display: none; margin-bottom: 46px; }
.stack-form { display: grid; gap: 18px; }
.access-note { display: flex; flex-direction: column; gap: 3px; margin-top: 26px; padding: 16px; border-radius: 13px; background: #f3f6f7; color: var(--muted); font-size: 14px; }
.access-note strong { color: #354454; }
.access-note p { margin: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 11px; font-weight: 720; font-size: 14px; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--navy); color: white; }
.button.primary:hover { background: #153652; }
.button.secondary { border-color: #ced9df; background: white; color: var(--navy); }
.button.secondary:hover { background: #f5f7f8; }
.button.wide { width: 100%; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #62717e; }
.icon-button:hover { background: #edf2f4; }
.icon-button.inverse { color: #a9b7c2; }
.icon-button.inverse:hover { background: rgba(255,255,255,.08); color: white; }

.alert { margin: 0 0 18px; padding: 13px 15px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.alert-success { background: #e6f6ef; color: #086846; border: 1px solid #bce8d6; }
.alert-error { background: #fff0f2; color: #a11935; border: 1px solid #f4c7d0; }
.alert-warning { background: #fff8e8; color: #85590f; border: 1px solid #f4dda7; }

.portal-body { background: var(--canvas); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 272px; display: flex; flex-direction: column; padding: 26px 16px 18px; background: #0b2033; color: white; }
.sidebar > .brand { padding: 0 10px; }
.nav-list { display: grid; gap: 5px; margin-top: 38px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; color: #b2bfca; font-size: 14px; font-weight: 680; }
.nav-link > span { width: 22px; color: #8395a4; font-size: 19px; text-align: center; }
.nav-link:hover { background: rgba(255,255,255,.055); color: white; }
.nav-link.is-active { background: white; color: var(--navy); box-shadow: 0 12px 28px rgba(0,0,0,.13); }
.nav-link.is-active > span { color: var(--gold); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #d69a45; color: var(--navy); font-size: 12px; font-weight: 850; }
.sidebar-user-copy { min-width: 0; flex: 1; }
.sidebar-user-copy strong, .sidebar-user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy strong { font-size: 13px; }
.sidebar-user-copy small { color: #8ea0ae; font-size: 11px; }
.sidebar-user form { margin: 0; }
.portal-shell { min-height: 100vh; margin-left: 272px; }
.topbar { position: sticky; top: 0; z-index: 25; min-height: 76px; display: flex; align-items: center; gap: 16px; padding: 14px clamp(20px, 3.5vw, 46px); border-bottom: 1px solid rgba(210,221,227,.9); background: rgba(255,255,255,.91); backdrop-filter: blur(15px); }
.topbar > div { flex: 1; }
.topbar h1 { margin: 0; font-size: 21px; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.secure-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: #5f6f7d; background: white; font-size: 12px; font-weight: 650; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--navy); font-size: 22px; }
.content { width: min(1420px, 100%); margin: 0 auto; padding: 32px clamp(18px, 3.5vw, 46px) 70px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.section-block { margin-top: 24px; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-title > a { color: #9b6217; font-size: 14px; font-weight: 720; }

.dashboard-grid { display: grid; grid-template-columns: minmax(480px, 1.4fr) repeat(2, minmax(190px, .55fr)); gap: 18px; }
.member-card { min-height: 278px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px; overflow: hidden; position: relative; border-radius: 22px; background: #102c45; color: white; box-shadow: 0 18px 40px rgba(13,35,56,.12); }
.member-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -170px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.member-card.large { min-height: 318px; }
.member-card > * { position: relative; z-index: 1; }
.member-card-top { display: flex; justify-content: space-between; gap: 12px; }
.mini-brand { color: white; font-weight: 850; letter-spacing: .13em; }
.member-card > div:nth-child(2) small, .member-card-meta small { color: #91a4b4; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.member-card h2 { margin: 7px 0 0; color: white; font-size: clamp(24px, 3vw, 34px); }
.member-card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member-card-meta span > * { display: block; }
.member-card-meta strong { margin-top: 4px; color: #dce5eb; font-size: 13px; font-weight: 640; }
.status-pill { display: inline-flex; align-items: center; width: max-content; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 780; }
.status-pill.success { background: #dff5eb; color: #08734d; }
.member-card .status-pill.success { border: 1px solid rgba(112, 231, 180, .22); background: rgba(37,199,132,.14); color: #7be0b6; }
.status-pill.neutral { background: #edf1f3; color: #667582; }
.status-pill.warning { background: #fff3d4; color: #8a5a00; }
.status-pill.danger { background: #ffe5e9; color: #a11935; }
.button.danger-button { background: #fff0f2; border-color: #f0bcc6; color: #a11935; }
.button.danger-button:hover { background: #ffe3e8; }
.registration-review-card { border: 1px solid #f0d79a; }
.registration-review-card td small { display: block; margin-top: 3px; color: #8996a1; }

.metric-card { display: flex; flex-direction: column; min-height: 180px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.metric-card p { margin: 18px 0 4px; color: var(--muted); font-size: 13px; font-weight: 670; }
.metric-card > strong { color: var(--navy); font-size: 30px; letter-spacing: -.04em; }
.metric-card > small { margin-top: auto; color: #8b98a3; }
.metric-card a { margin-top: auto; color: #986119; font-size: 13px; font-weight: 720; }
.metric-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; font-weight: 800; }
.metric-icon.green { background: #e6f7ef; color: #087a51; }
.metric-icon.amber { background: #fff2df; color: #a6630d; }
.metric-icon.blue { background: #e8f2f8; color: #14608d; }
.metric-icon.violet { background: #f0eafa; color: #6c42a5; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metrics-grid .metric-card { min-height: 168px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-grid a, .action-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
.quick-grid a:hover, .action-card:hover { transform: translateY(-2px); border-color: #c5d1d8; box-shadow: 0 12px 26px rgba(13,35,56,.06); }
.quick-grid a > span, .action-card > span { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #edf2f5; color: var(--navy); font-size: 20px; }
.quick-grid strong, .action-card strong { font-size: 14px; }
.quick-grid small, .action-card small { color: var(--muted); font-size: 12px; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 14px; }
.action-card { border-style: solid; cursor: pointer; }

.list-stack { display: grid; gap: 10px; }
.activity-row { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid #edf1f3; border-radius: 12px; }
.activity-row:hover { background: #fafcfc; }
.activity-row > span:nth-child(2) strong, .activity-row > span:nth-child(2) small { display: block; }
.activity-row > span:nth-child(2) strong { font-size: 14px; }
.activity-row > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.date-tile { display: grid; place-items: center; width: 46px; height: 48px; border-radius: 11px; background: #f1f5f6; line-height: 1; }
.date-tile small { color: #8a98a4; font-size: 9px; font-weight: 800; }
.date-tile strong { color: var(--navy); font-size: 17px; }
.category-chip { display: inline-flex; width: max-content; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 760; }
.category-chip.class, .legend .class { background: #e4f3fc; color: #12638d; border-color: #c2e4f5; }
.category-chip.training, .legend .training { background: #fff0d6; color: #92550c; border-color: #f4d9a7; }
.category-chip.competition, .legend .competition { background: #ffe7ec; color: #a52242; border-color: #f2c6d1; }

.two-column { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; }
.two-column > div { display: grid; gap: 22px; align-content: start; }
.two-column aside { display: grid; gap: 18px; align-content: start; }
.notice-card { padding: 22px; border: 1px solid #d8e1e5; border-radius: var(--radius); background: white; }
.notice-card.success { border-color: #bde6d5; background: #eaf8f2; color: #176b4d; }
.notice-card > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: white; color: var(--success); box-shadow: 0 5px 15px rgba(13,35,56,.06); }
.notice-card h3 { margin: 18px 0 5px; font-size: 17px; }
.notice-card p { margin: 0; color: inherit; opacity: .85; font-size: 14px; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.details-grid > div { padding: 15px; border-radius: 11px; background: #f5f7f8; }
.details-grid small, .details-grid strong { display: block; }
.details-grid small { color: #8895a0; font-size: 10px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.details-grid strong { margin-top: 6px; color: #354454; font-size: 14px; }

.document-list { display: grid; }
.document-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid #edf1f3; }
.document-row:first-child { border-top: 0; }
.doc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #edf2f5; color: var(--navy); }
.document-row > span:nth-child(2) strong, .document-row > span:nth-child(2) small { display: block; }
.document-row > span:nth-child(2) small { margin-top: 3px; color: #8996a1; font-size: 12px; }
.simple-table { display: grid; }
.simple-table > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #edf1f3; }
.simple-table > div:first-child { border-top: 0; }
.simple-table strong, .simple-table small { display: block; }
.simple-table strong { font-size: 14px; }
.simple-table small { margin-top: 3px; color: #8996a1; font-size: 12px; }
.empty-state { padding: 36px 18px; color: #7d8b97; text-align: center; }

.legend { display: flex; flex-wrap: wrap; gap: 7px; }
.legend span { padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 760; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.event-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.event-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.event-card h3 { margin: 20px 0 10px; font-size: 17px; }
.event-card > p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.event-card .capacity { margin: 14px 0; color: var(--success); font-weight: 670; }

.profile-head { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid #edf1f3; }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: white; font-size: 22px; font-weight: 800; }
.profile-head h2 { margin: 0; font-size: 24px; }
.profile-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }

.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { padding: 11px 12px; color: #87949f; background: #f6f8f9; font-size: 10px; font-weight: 790; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 13px 12px; border-top: 1px solid #edf1f3; color: #4e5d6b; font-size: 13px; }
td strong, td small { display: block; }
td strong { color: var(--text); }
td small { margin-top: 3px; color: #8996a1; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.row-actions form { margin: 0; }

.dialog { width: min(560px, calc(100% - 28px)); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.dialog.wide-dialog { width: min(700px, calc(100% - 28px)); }
.dialog::backdrop { background: rgba(5,20,32,.58); backdrop-filter: blur(3px); }
.dialog form { padding: 23px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-size: 21px; }
.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.dialog-head button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f0f3f5; color: #64727e; font-size: 21px; }
.dialog > form > label { margin-top: 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1f3; }
.blocks-editor { margin-top: 20px; padding: 15px; border-radius: 13px; background: #f4f7f8; }
.blocks-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr 36px; align-items: end; gap: 9px; margin-top: 10px; }

.verify-shell, .download-shell { width: min(680px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 70px; }
.verify-card, .download-card { margin-top: 30px; padding: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); text-align: center; }
.verify-card h1, .download-card h1 { margin: 10px 0; font-size: clamp(28px, 5vw, 38px); }
.verify-card > p, .download-card > p { color: var(--muted); }
.verify-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 17px; border-radius: 50%; background: #e8f2f8; color: #14608d; font-size: 27px; }
.verify-icon.valid, .verify-status.valid .verify-icon { background: #e4f7ee; color: var(--success); }
.verify-status.invalid .verify-icon { background: #fff0f2; color: var(--danger); }
.verify-status.valid, .verify-status.invalid { margin: -32px -32px 28px; padding: 30px; }
.verify-status.valid { background: #eaf8f2; }
.verify-status.invalid { background: #fff0f2; }
.verify-status p { margin-bottom: 7px; }
.verify-form { display: flex; gap: 9px; margin-top: 22px; }
.download-card { display: grid; justify-items: center; gap: 12px; }
.download-card .button { margin-top: 10px; }
.download-card > a:last-child { color: #986119; font-size: 14px; font-weight: 680; }
.narrow-card { width: min(560px, 100%); margin: 0 auto; }

.install-shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 70px; }
.install-heading { display: flex; align-items: center; justify-content: space-between; }
.step-chip { padding: 7px 11px; border-radius: 999px; background: white; color: #63717e; font-size: 11px; font-weight: 750; }
.install-card { margin-top: 30px; padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.section-heading { margin-bottom: 28px; }
.section-heading h1 { margin: 8px 0; font-size: clamp(30px, 5vw, 44px); }
.section-heading > p:last-child { max-width: 660px; color: var(--muted); }
.install-form { display: grid; gap: 24px; }
.install-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.install-form legend { padding: 0 7px; color: var(--navy); font-weight: 760; }
.install-form .full { grid-column: 1 / -1; }
.field-note { margin: -2px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid .member-card { grid-column: 1 / -1; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { padding: 30px 20px 74px; }
  .mobile-brand { display: inline-flex; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .portal-shell { margin-left: 0; }
  .mobile-menu { display: inline-block; }
  .two-column, .admin-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .content { padding-top: 22px; }
  .topbar p, .secure-chip { display: none; }
  .dashboard-grid, .metrics-grid, .quick-grid, .action-grid, .event-grid { grid-template-columns: 1fr; }
  .member-card-meta { grid-template-columns: 1fr 1fr; }
  .member-card-meta span:last-child { display: none; }
  .details-grid, .form-grid, .install-form fieldset { grid-template-columns: 1fr; }
  .details-grid > div, .form-grid .full, .install-form .full { grid-column: auto; }
  .document-row { grid-template-columns: 42px 1fr; }
  .document-row .status-pill, .document-row .button { grid-column: 2; width: max-content; }
  .activity-row { grid-template-columns: 46px 1fr; }
  .activity-row .category-chip { grid-column: 2; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .block-row { grid-template-columns: 1fr 1fr; }
  .block-row label:first-child { grid-column: 1 / -1; }
  .verify-form { flex-direction: column; }
}

/* FEDETAN v1.4.0: gestión integral y trazabilidad */
.compact-input { min-width: 120px; max-width: 180px; }
.nested-title { margin-top: 1.5rem; }
.super-admin-section { border-top: 3px solid #c3822a; }
.row-actions form { margin: 0; }
.table-wrap td small, .simple-table small { display: block; margin-top: .25rem; }
.alert-info { background: #edf6fb; color: #24566f; border: 1px solid #c6e0ed; }
.event-card .event-description { margin: 12px 0; color: #425160; line-height: 1.55; }
.event-card .event-deadline { color: #8a5a00; font-weight: 650; }
.json-details { max-width: 420px; margin-top: 8px; }
.json-details summary { color: #986119; cursor: pointer; font-size: 12px; font-weight: 700; }
.json-details pre { max-height: 240px; margin: 8px 0 0; padding: 12px; overflow: auto; border-radius: 9px; background: #0d2338; color: #e8f0f4; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.audit-table code { padding: 3px 6px; border-radius: 6px; background: #edf1f3; color: #3f5060; font-size: 11px; }
.audit-table td { vertical-align: top; }
.certificate-catalog { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.certificate-catalog .action-card { min-height: 132px; }
.certificate-catalog .action-card > .status-pill { grid-row: auto; width: max-content; height: auto; padding: 4px 9px; border-radius: 999px; font-size: 11px; }
.certificate-catalog .action-card > .status-pill.success { background: #dff5eb; color: #08734d; }
.certificate-catalog .action-card > .status-pill.warning { background: #fff3d4; color: #8a5a00; }
.action-card:disabled { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }
.generator-settings { display: grid; min-width: 230px; gap: 8px; }
.generator-settings label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }

/* FEDETAN v1.7.0: acreditaciones y control de vigencias */
.accreditation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.accreditation-summary .metric-card { min-height: 158px; }
.accreditation-list { display: grid; gap: 14px; }
.accreditation-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 18px; border: 1px solid var(--line); border-left: 4px solid #7f8c96; border-radius: 14px; background: #fff; }
.accreditation-card.accreditation-valid { border-left-color: var(--success); }
.accreditation-card.accreditation-warning { border-left-color: #c28500; }
.accreditation-card.accreditation-expired, .accreditation-card.accreditation-revoked { border-left-color: var(--danger); }
.accreditation-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #edf2f5; color: var(--navy); font-size: 18px; font-weight: 800; }
.accreditation-copy { min-width: 0; }
.accreditation-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.accreditation-title-line h3 { margin: 0; color: var(--navy); font-size: 17px; }
.accreditation-code { display: block; margin-top: 3px; color: #8996a1; font-size: 11px; font-weight: 720; letter-spacing: .04em; }
.accreditation-copy > p { margin: 10px 0 0; color: #526271; font-size: 13px; line-height: 1.6; }
.accreditation-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.accreditation-dates span { padding: 11px 12px; border-radius: 10px; background: #f5f8fa; }
.accreditation-dates small, .accreditation-dates strong { display: block; }
.accreditation-dates small { color: #8996a1; font-size: 10px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.accreditation-dates strong { margin-top: 4px; color: #354454; font-size: 13px; }
.accreditation-warning { color: #8a5a00 !important; font-weight: 680; }
.accreditation-expired { color: var(--danger) !important; font-weight: 680; }
.accreditation-type-settings { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px; min-width: 360px; }
.accreditation-type-settings label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.accreditation-type-settings .full { grid-column: 1 / -1; }
.accreditation-type-settings .button { width: max-content; }

@media (max-width: 900px) {
  .accreditation-summary { grid-template-columns: 1fr 1fr; }
  .accreditation-summary .metric-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .accreditation-summary { grid-template-columns: 1fr; }
  .accreditation-summary .metric-card:last-child { grid-column: auto; }
  .accreditation-card { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; gap: 11px; }
  .accreditation-icon { width: 38px; height: 38px; }
  .accreditation-title-line { align-items: flex-start; flex-direction: column; gap: 7px; }
  .accreditation-dates { grid-template-columns: 1fr; }
  .accreditation-type-settings { min-width: 260px; grid-template-columns: 1fr; }
  .accreditation-type-settings .full { grid-column: auto; }
}


/* v1.8.0 · Zona de purga exclusiva Super Admin */
.danger-zone{background:#fff;border:1px solid #fecaca;border-radius:18px;padding:24px;box-shadow:0 10px 30px rgba(127,29,29,.06)}
.danger-zone-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:18px}
.danger-zone-head h2{margin:2px 0 6px;font-size:1.55rem;color:#7f1d1d}
.danger-zone-head p{margin:0;color:#64748b}
.danger-zone-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:#fee2e2;color:#991b1b;font-size:1.35rem}
.purge-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:18px 0}
.purge-summary>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.purge-summary small{color:#64748b}.purge-summary strong{font-size:1.15rem;color:#0f172a}
.purge-form{margin-top:20px;padding-top:20px;border-top:1px solid #fecaca}
.purge-form label small{display:block;margin-top:5px;color:#64748b;font-weight:400}
.purge-action-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:16px;border-radius:14px;background:#fff7f7;border:1px dashed #fca5a5}
.purge-action-row span{color:#7f1d1d}.purge-button{min-width:220px}
@media(max-width:720px){.purge-action-row{align-items:stretch;flex-direction:column}.purge-button{width:100%;min-width:0}}

/* v1.9.0 · Centro de correos */
.mail-settings-page .panel-body,
.cron-card { display: grid; gap: 18px; }
.compact-title { margin-top: 8px; margin-bottom: 0; }
.compact-title h3 { margin: 0; }
.inline-test-form { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line, #e5e7eb); }
.mail-rules-table td { vertical-align: middle; }
.mail-rules-table td:first-child { min-width: 300px; }
.mail-rules-table small { display: block; margin-top: 4px; }
.switch-check { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .9rem; }
.switch-check input { width: 16px; height: 16px; }
.days-control { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.days-control input { width: 86px; }
.cron-card code { overflow-wrap: anywhere; }
.cron-card input[readonly] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
@media (max-width: 760px) {
  .inline-test-form { align-items: stretch; flex-direction: column; }
  .mail-rules-table td:first-child { min-width: 230px; }
}


/* v1.10.0 · Mailings de actividades */
.announcement-checkbox{align-items:flex-start;gap:.55rem;padding:.8rem 1rem;border:1px solid var(--border);border-radius:12px;background:var(--canvas)}
.announcement-checkbox small{display:block;margin-left:1.65rem;margin-top:.2rem;color:var(--muted)}

@media (max-height: 690px) {
  .login-form-panel { padding-bottom: 30px; }
  .login-system-credit { position: static; align-self: end; margin-top: 28px; }
}

/* v1.17.0 — PWA y acceso persistente por dispositivo */
.quick-login-card { display: grid; gap: 16px; margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafb; }
.quick-login-user { display: flex; align-items: center; gap: 12px; }
.quick-login-user small, .quick-login-user strong { display: block; }
.quick-login-user small { color: var(--muted); font-size: 11px; }
.quick-login-user strong { color: var(--navy); font-size: 16px; }
.profile-avatar.compact { width: 44px; height: 44px; font-size: 14px; flex: 0 0 auto; }
.password-login-toggle { border-top: 1px solid var(--line); padding-top: 12px; }
.password-login-toggle > summary { cursor: pointer; color: var(--navy); font-size: 13px; font-weight: 760; }
.password-login-toggle[open] > summary { margin-bottom: 14px; }
.biometric-button { display: inline-flex; justify-content: center; align-items: center; }
.device-access-card { margin-top: 22px; }
.device-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.device-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.device-pin-change { margin: 18px 0; padding-top: 15px; border-top: 1px solid var(--line); }
.device-pin-change > summary { cursor: pointer; color: var(--navy); font-weight: 730; }
.device-pin-change[open] > summary { margin-bottom: 14px; }
.pwa-install-button { margin-top: 12px; }
.competition-builder-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 24px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), #173f5f); color: white; box-shadow: var(--shadow); }
.competition-builder-hero h2 { margin: 3px 0 7px; color: white; font-size: clamp(22px, 3vw, 32px); }
.competition-builder-hero p { margin: 0; color: #d7e4ec; line-height: 1.55; }
.competition-builder-hero .eyebrow { color: #8fc7e7; }
.competition-admin-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr); gap: 20px; align-items: start; }
.competition-list { display: grid; gap: 12px; }
.competition-list-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.competition-list-item h3 { margin: 7px 0 3px; color: var(--navy); }
.competition-list-item p, .competition-list-item small { display: block; margin: 0; color: var(--muted); }
.builder-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.builder-progress { display: grid; min-width: 132px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; text-align: center; }
.builder-progress strong { color: white; font-size: 24px; }
.builder-progress span { color: #c8dbe6; font-size: 11px; }
.builder-checklist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.builder-checklist span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); font-size: 12px; font-weight: 700; }
.builder-checklist .is-ready { border-color: #b9ddce; background: #eff9f4; color: #19704f; }
.scoring-grid { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: 12px; }
.competition-catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.catalog-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; margin-bottom: 14px; }
.catalog-chips form { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 11px; border-radius: 999px; background: #eef3f6; color: var(--navy); font-size: 13px; font-weight: 700; }
.catalog-chips button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: white; color: var(--danger); }
.inline-add-form { display: flex; align-items: end; gap: 8px; }
.inline-add-form label { flex: 1; }
.stage-create-form { display: grid; grid-template-columns: 1fr 1.4fr auto auto; align-items: end; gap: 12px; }
.checkbox-label { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; min-height: 42px; color: var(--navy); font-size: 13px; font-weight: 700; }
.checkbox-label input { width: auto; }
.stage-builder-list { display: grid; gap: 20px; margin-top: 20px; }
.stage-builder-card { padding: 0; overflow: hidden; }
.stage-builder-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #f7fafb; }
.stage-builder-heading h2 { margin: 2px 0 4px; }
.stage-builder-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.sequence-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: white; font-weight: 800; }
.sequence-badge.compact { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.stage-order-actions { display: flex; gap: 5px; }
.stage-order-actions form { margin: 0; }
.stage-order-actions .icon-button:disabled, .target-builder-table .icon-button:disabled { opacity: .25; cursor: default; }
.stage-settings { margin: 16px 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.stage-settings > summary { cursor: pointer; color: var(--navy); font-weight: 750; }
.stage-settings[open] > summary { margin-bottom: 14px; }
.stage-settings > form + form { margin-top: 10px; }
.target-builder-table { margin: 0 22px; }
.target-builder-table input { min-width: 85px; padding: 8px 9px; }
.target-builder-table td:nth-child(1) { width: 54px; }
.target-builder-table td:nth-child(4) { width: 92px; }
.target-builder-table td:last-child { min-width: 205px; }
.target-add-form { display: grid; grid-template-columns: .8fr 1fr .6fr 1.4fr auto; align-items: end; gap: 10px; margin: 18px 22px 22px; padding: 15px; border-radius: 13px; background: #f4f7f8; }
.stage-builder-card > .empty-state { margin: 18px 22px 0; }
.module-settings-form { margin-top: 20px; }
.module-matrix table { min-width: 780px; }
.module-matrix th:not(:first-child), .module-matrix td:not(:first-child) { width: 170px; text-align: center; }
.module-matrix td:first-child strong, .module-matrix td:first-child small { display: block; }
.module-matrix td:first-child small { margin-top: 4px; max-width: 560px; color: var(--muted); line-height: 1.4; }
.module-toggle { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-width: 132px; color: var(--navy); font-size: 12px; font-weight: 750; cursor: pointer; }
.module-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--success); }
.module-toggle input:disabled + span { color: var(--muted); }
.competition-officialize-card { border-color: #b9ddce; background: #f6fbf8; }
.pwa-install-dialog { width: min(520px, calc(100% - 28px)); }
.pwa-install-dialog .dialog-content { padding: 23px; }
.pwa-install-browser-note { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #cddde6; border-radius: 12px; background: #f2f7fa; color: #354b5d; font-size: 13px; line-height: 1.55; }
.pwa-install-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pwa-install-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; }
.pwa-install-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: white; font-size: 13px; font-weight: 800; }
.pwa-install-steps strong { display: block; color: var(--navy); font-size: 14px; }
.pwa-install-steps p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pwa-install-dialog .field-note { min-height: 18px; margin-top: 10px; text-align: right; }
.pwa-network-status { position: fixed; z-index: 999; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 13px; border-radius: 999px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; }
@media (max-width: 680px) {
  .device-actions .button { width: 100%; }
  .quick-login-card { padding: 15px; }
  .pwa-install-dialog .dialog-actions { flex-direction: column-reverse; }
  .pwa-install-dialog .dialog-actions .button { width: 100%; }
  .competition-builder-hero, .competition-list-item { align-items: flex-start; flex-direction: column; }
  .builder-progress { width: 100%; }
  .builder-checklist, .competition-catalog-grid { grid-template-columns: 1fr; }
  .inline-add-form, .stage-create-form, .target-add-form { grid-template-columns: 1fr; }
  .inline-add-form { align-items: stretch; flex-direction: column; }
  .stage-builder-heading { grid-template-columns: 38px minmax(0, 1fr); padding: 16px; }
  .stage-order-actions { grid-column: 2; }
  .stage-settings, .target-builder-table, .target-add-form { margin-left: 14px; margin-right: 14px; }
}

@media (max-width: 1050px) {
  .competition-admin-grid { grid-template-columns: 1fr; }
  .scoring-grid { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .stage-create-form { grid-template-columns: 1fr 1fr; }
  .target-add-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .scoring-grid, .stage-create-form, .target-add-form { grid-template-columns: 1fr; }
}

/* v1.17.1 — App Lock: evita mostrar contenido privado durante un relanzamiento pendiente de desbloqueo. */
html.fedetan-app-locked body { visibility: hidden !important; }

/* v1.20.0 · Operación integral de competencias */
.competition-ops-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.competition-inline-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; gap: 10px; margin-bottom: 18px; }
.compact-form { display: flex; align-items: center; gap: 6px; }
.compact-form select { min-width: 112px; padding: 7px 9px; }
.rotation-board { display: grid; gap: 16px; }
.rotation-round { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f7fafb; }
.rotation-round h3 { grid-column: 1 / -1; margin: 0; color: var(--navy); }
.rotation-card { display: grid; gap: 4px; padding: 13px; border-radius: 11px; background: white; border: 1px solid var(--line); }
.rotation-card strong { color: var(--navy); }
.rotation-card span, .rotation-card small { color: var(--muted); }
.stage-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.stage-tabs a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--navy); font-size: 13px; font-weight: 750; text-decoration: none; }
.stage-tabs a.is-active { border-color: var(--navy); background: var(--navy); color: white; }
.competition-score-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.competition-score-layout aside { display: grid; gap: 16px; }
.score-time input { min-height: 58px; font-size: 25px; font-weight: 800; }
.score-counters { display: grid; grid-template-columns: repeat(5, minmax(75px, 1fr)); gap: 9px; }
.score-counters input { min-height: 52px; text-align: center; font-size: 20px; font-weight: 800; }
.ep-confirm { padding: 13px; border: 1px solid #efd39f; border-radius: 11px; background: #fff9eb; }
.score-live-total { display: grid; gap: 3px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f5f8fa; }
.score-live-total strong { color: var(--navy); font-size: 29px; }
.score-live-total span { color: var(--muted); font-size: 12px; }
.score-live-total.is-valid { border-color: #b9ddce; background: #eff9f4; }
.score-live-total.is-valid span { color: #19704f; font-weight: 750; }
.score-submit { min-height: 54px; font-size: 16px; }
.offline-sync-chip { padding: 8px 12px; border-radius: 999px; background: #e1f5ea; color: #126946; font-size: 12px; font-weight: 750; }
.offline-sync-chip.is-offline { background: #fff0cf; color: #8a5a00; }
[data-score-message][data-tone="success"] { color: var(--success); }
[data-score-message][data-tone="warning"] { color: #8a5a00; }
[data-score-message][data-tone="error"] { color: var(--danger); }
.discipline-list { display: grid; gap: 16px; }
.discipline-record { border-left: 5px solid #c48a2e; }
.discipline-record.critical { border-left-color: var(--danger); }
.discipline-record.high { border-left-color: #d36f2a; }
.discipline-record details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.discipline-record summary { color: var(--navy); font-weight: 750; cursor: pointer; }
.discipline-record details form { margin-top: 14px; }
.is-disqualified { opacity: .68; }

@media (max-width: 1050px) {
  .competition-ops-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competition-score-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .competition-inline-grid, .score-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competition-inline-grid .button { min-height: 44px; }
}
@media (max-width: 520px) {
  .competition-ops-metrics, .competition-inline-grid { grid-template-columns: 1fr; }
  .score-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v1.20.1 · continuidad de posición y avisos no intrusivos */
.is-floating-flash {
  position: fixed;
  z-index: 1200;
  top: calc(82px + (var(--flash-index, 0) * 66px));
  right: 24px;
  width: min(430px, calc(100vw - 48px));
  margin: 0;
  padding-right: 42px;
  box-shadow: 0 16px 40px rgba(13, 35, 56, .2);
  animation: fedetan-flash-in .2s ease-out;
  transition: opacity .25s ease, transform .25s ease;
}
.is-floating-flash.is-leaving { opacity: 0; transform: translateY(-8px); }
.floating-flash-close { position: absolute; top: 8px; right: 9px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); color: currentColor; font-size: 19px; line-height: 1; cursor: pointer; }
@keyframes fedetan-flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
  .is-floating-flash { top: calc(70px + (var(--flash-index, 0) * 72px)); right: 12px; width: calc(100vw - 24px); }
}

/* v1.21.0 · expedientes disciplinarios */
.discipline-restriction-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #e7b75f; border-left: 5px solid #c77917; border-radius: 13px; background: #fff8e7; color: #71460c; box-shadow: 0 8px 24px rgba(113,70,12,.08); }
.discipline-restriction-banner strong, .discipline-restriction-banner span { display: block; }
.discipline-restriction-banner span { font-size: 13px; line-height: 1.45; }
.discipline-restriction-banner .button { grid-column: 2; grid-row: 1 / span 2; }
.discipline-admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 20px; margin: 20px 0; align-items: start; }
.committee-list, .discipline-case-list, .evidence-grid, .action-plan, .case-timeline { display: grid; gap: 11px; }
.committee-list { margin-top: 16px; }
.committee-member { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.committee-member strong, .committee-member small { display: block; }
.committee-member small { margin-top: 2px; color: var(--muted); }
.discipline-case-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid var(--line); border-left: 5px solid #c77917; border-radius: 13px; background: white; }
.discipline-case-card h3 { margin: 7px 0 3px; color: var(--navy); }
.discipline-case-card p, .discipline-case-card small { display: block; margin: 0; color: var(--muted); }
.discipline-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin: 0 0 20px; }
.discipline-steps span { padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); text-align: center; font-size: 11px; font-weight: 750; }
.discipline-steps span.is-ready { border-color: #d8ad62; background: #fff8e8; color: #80500f; }
.evidence-grid { margin-top: 17px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.evidence-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafb; }
.evidence-card > div:nth-child(2) strong, .evidence-card > div:nth-child(2) small { display: block; overflow-wrap: anywhere; }
.evidence-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.evidence-card p { margin: 7px 0 0; }
.evidence-card .row-actions { grid-column: 1 / -1; }
.evidence-card.is-withdrawn { opacity: .64; border-style: dashed; }
.evidence-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--navy); color: white; font-size: 18px; }
.why-list { display: grid; gap: 10px; padding-left: 24px; }
.why-list li { padding: 10px 13px; border-left: 3px solid #d8ad62; background: #fffaf0; }
.why-list p { margin: 4px 0 0; }
.action-plan { margin-top: 16px; }
.action-plan > article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr); gap: 18px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
.action-plan > article > div > strong, .action-plan > article > div > small { display: block; margin-top: 7px; }
.action-plan > article > div > small { color: var(--muted); }
.case-timeline { margin-top: 17px; }
.case-timeline article { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 11px; position: relative; }
.case-timeline article > span { width: 11px; height: 11px; margin-top: 5px; border: 3px solid #d8ad62; border-radius: 50%; background: white; }
.case-timeline article > div { padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.case-timeline strong, .case-timeline small { display: block; }
.case-timeline small { margin-top: 3px; color: var(--muted); }
.case-timeline p { margin: 7px 0 0; }

@media (max-width: 980px) {
  .discipline-admin-grid { grid-template-columns: 1fr; }
  .discipline-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .discipline-restriction-banner { grid-template-columns: 1fr; }
  .discipline-restriction-banner .button { grid-column: 1; grid-row: auto; width: 100%; margin-top: 7px; }
  .discipline-case-card { align-items: stretch; flex-direction: column; }
  .discipline-case-card .button { width: 100%; }
  .discipline-steps { grid-template-columns: 1fr 1fr; }
  .action-plan > article { grid-template-columns: 1fr; }
}
