.button { align-items: center; border: 1px solid transparent; border-radius: var(--radius-sm); display: inline-flex; font-weight: 700; gap: var(--sp-2); justify-content: center; min-height: 44px; padding: 10px var(--sp-4); transition: background var(--transition), border var(--transition), transform var(--transition); }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.button--primary:hover { background: var(--brand-700); }
.button--secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button--ghost { background: transparent; color: var(--brand-600); }
.button--danger { background: var(--danger); color: #fff; }
.button--wide { width: 100%; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: var(--radius-sm); display: inline-flex; height: 44px; justify-content: center; min-width: 44px; }
.icon-button:hover { background: var(--surface-2); }
.stack { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field > span:first-child { font-size: var(--fs-sm); font-weight: 700; }
.field input, .field select, .field textarea, .period-picker select { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 48px; padding: 10px 12px; width: 100%; }
.field input:hover, .field select:hover { border-color: var(--text-muted); }
.field input:focus, .field select:focus { border-color: var(--brand-500); outline: 3px solid color-mix(in srgb, var(--brand-500) 16%, transparent); }
.field__error { color: var(--danger); }
.password-field { display: flex; position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { background: transparent; border: 0; color: var(--brand-600); font-size: var(--fs-sm); font-weight: 800; height: 44px; position: absolute; right: 2px; top: 2px; }
.card, .kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--sp-4); }
.card__header { align-items: center; display: flex; justify-content: space-between; margin-bottom: var(--sp-5); }
.card__header h3 { margin-bottom: 0; }
.kpi-card { min-width: 0; position: relative; }
.kpi-card p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0 42px var(--sp-2) 0; }
.kpi-card strong { display: block; font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl)); overflow-wrap: anywhere; }
.kpi-card small { color: var(--text-muted); }
.kpi-card__icon { align-items: center; background: var(--brand-50); border-radius: var(--radius-sm); color: var(--brand-600); display: flex; font-weight: 800; height: 36px; justify-content: center; position: absolute; right: var(--sp-4); top: var(--sp-4); width: 36px; }
.kpi-card--brand { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); border: 0; color: #fff; }
.kpi-card--brand p, .kpi-card--brand small { color: rgb(255 255 255 / 78%); }
.kpi-card--brand .kpi-card__icon { background: rgb(255 255 255 / 16%); color: #fff; }
.kpi-card--alert .kpi-card__icon { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.progress { appearance: none; background: var(--surface-2); border: 0; border-radius: var(--radius-full); height: 8px; margin-top: var(--sp-3); overflow: hidden; width: 100%; }
.progress::-webkit-progress-bar { background: var(--surface-2); }.progress::-webkit-progress-value { background: var(--brand-500); border-radius: inherit; }.progress::-moz-progress-bar { background: var(--brand-500); border-radius: inherit; }
.badge { border-radius: var(--radius-full); display: inline-flex; font-size: var(--fs-xs); font-weight: 800; padding: 4px 10px; }
.badge--success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.badge--warning { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.badge--danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.badge--neutral { background: var(--surface-2); color: var(--text-muted); }
.toast-region { display: grid; gap: var(--sp-2); max-width: min(380px, calc(100vw - 32px)); position: fixed; right: var(--sp-4); top: var(--sp-4); z-index: 1000; }
.toast { align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; gap: var(--sp-3); padding: var(--sp-3); }
.toast--success { border-left-color: var(--success); }.toast--error { border-left-color: var(--danger); }.toast--warning { border-left-color: var(--warning); }
.toast__icon { align-items: center; background: var(--surface-2); border-radius: 50%; display: flex; flex: 0 0 28px; height: 28px; justify-content: center; }
.toast__close { background: transparent; border: 0; font-size: 22px; margin-left: auto; min-height: 44px; min-width: 44px; }
.modal { inset: 0; position: fixed; z-index: 1100; }.modal__backdrop { background: rgb(2 6 23 / 60%); inset: 0; position: absolute; }.modal__panel { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); left: 50%; max-height: calc(100vh - 32px); max-width: 520px; overflow: auto; padding: var(--sp-5); position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); }.modal__close { position: absolute; right: var(--sp-2); top: var(--sp-2); }.modal__actions { display: flex; gap: var(--sp-3); justify-content: flex-end; margin-top: var(--sp-5); }
.empty-state { color: var(--text-muted); padding: var(--sp-8) var(--sp-4); text-align: center; }.empty-state svg { height: 110px; margin: 0 auto var(--sp-4); }.empty-state h3 { color: var(--text); margin-bottom: var(--sp-2); }
.filters { align-items: end; display: flex; flex-wrap: wrap; gap: var(--sp-3); }.search-field { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; flex: 1 1 220px; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-3); }.search-field input { background: transparent; border: 0; min-width: 0; outline: 0; width: 100%; }.field--compact { min-width: 150px; }.field--compact select { min-height: 44px; }
.pagination { align-items: center; display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; }.pagination p { color: var(--text-muted); margin: 0; }.page-link { align-items: center; border-radius: var(--radius-sm); display: inline-flex; height: 40px; justify-content: center; min-width: 40px; }.page-link.is-active { background: var(--brand-600); color: #fff; }

/* Catálogos y tablas */
.catalog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; padding: var(--sp-4); position: relative; }
.catalog-card::before { background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); content: ""; height: 3px; left: 0; opacity: .9; position: absolute; right: 0; top: 0; }
.catalog-toolbar { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.table-tools { align-items: center; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.column-picker { position: relative; }.column-picker summary { list-style: none; }.column-picker summary::-webkit-details-marker { display: none; }.column-picker > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; gap: var(--sp-2); min-width: 180px; padding: var(--sp-3); position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; }.column-picker label { align-items: center; display: flex; gap: var(--sp-2); min-height: 36px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); min-height: 1px; }.filter-chip { align-items: center; background: var(--brand-50); border: 1px solid color-mix(in srgb, var(--brand-500) 25%, var(--border)); border-radius: var(--radius-full); color: var(--brand-700); display: inline-flex; font-size: var(--fs-xs); font-weight: 700; gap: var(--sp-2); padding: 5px 10px; }.filter-chip:hover { background: var(--brand-100); text-decoration: none; }
.table-wrap { min-width: 0; }.data-table { border-collapse: collapse; width: 100%; }.data-table thead { display: none; }.data-table tbody { display: grid; gap: var(--sp-3); }.data-table tr { animation: row-in 240ms ease both; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: grid; padding: var(--sp-3); }.data-table td { align-items: center; border-bottom: 1px solid var(--border); display: flex; gap: var(--sp-3); justify-content: space-between; min-height: 44px; padding: var(--sp-2) 0; text-align: right; }.data-table td:last-child { border: 0; }.data-table td::before { color: var(--text-muted); content: attr(data-label); flex: 0 0 38%; font-size: var(--fs-xs); font-weight: 800; text-align: left; text-transform: uppercase; }.data-table .empty-row td { border: 0; display: block; text-align: center; }.data-table .empty-row td::before { display: none; }.data-table [hidden] { display: none !important; }.data-table a[data-sort] { color: inherit; }.data-table a[data-sort]:hover { color: var(--brand-600); text-decoration: none; }.data-table a[data-sort] span { color: var(--text-muted); margin-left: var(--sp-1); }
.entity-cell { align-items: center; display: flex; gap: var(--sp-3); min-width: 0; text-align: left; }.entity-cell > span:last-child { display: grid; min-width: 0; }.entity-cell strong, .entity-cell small { overflow: hidden; text-overflow: ellipsis; }.entity-cell small, .cell-subtitle { color: var(--text-muted); display: block; font-size: var(--fs-xs); font-weight: 400; margin-top: 2px; }.entity-icon { align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); color: var(--text-muted); display: inline-flex; flex: 0 0 38px; font-weight: 900; height: 38px; justify-content: center; }.entity-icon--green { background: var(--brand-50); color: var(--brand-600); }.entity-icon--orange { background: var(--accent-50); color: var(--accent-500); }.entity-icon--blue { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }.entity-icon--purple { background: #f3e8ff; color: #7e22ce; }.entity-icon--large { border-radius: var(--radius); flex-basis: 56px; font-size: 24px; height: 56px; }.team-dot { flex: 0 0 16px; height: 16px; width: 16px; }.avatar--soft { background: var(--brand-50); color: var(--brand-700); }.metric-pill { background: var(--surface-2); border-radius: var(--radius-full); display: inline-flex; font-size: var(--fs-xs); font-weight: 800; padding: 5px 9px; }.row-actions { display: flex; gap: var(--sp-1); justify-content: flex-end; }.row-actions form { display: inline-flex; }.icon-button--danger { color: var(--danger); }.icon-button--danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }.occupancy { display: grid; gap: 4px; min-width: 90px; }.occupancy progress { accent-color: var(--brand-500); height: 6px; width: 100%; }.text-warning { color: var(--warning) !important; display: block; font-size: var(--fs-xs); }
.catalog-card.is-loading .table-wrap { opacity: .45; pointer-events: none; }.catalog-card.is-loading::after { animation: spin .7s linear infinite; border: 3px solid var(--border); border-top-color: var(--brand-500); border-radius: 50%; content: ""; height: 32px; left: 50%; position: absolute; top: 55%; width: 32px; }
.table-skeleton { display: none; gap: var(--sp-3); inset: 150px var(--sp-5) auto; position: absolute; z-index: 3; }.catalog-card.is-loading .table-skeleton { display: grid; }.table-skeleton i { animation: shimmer 1.1s infinite linear; background: linear-gradient(90deg,var(--surface-2),var(--border),var(--surface-2)); background-size: 200% 100%; border-radius: var(--radius-sm); display: block; height: 46px; }

/* Formularios */
.breadcrumbs { align-items: center; color: var(--text-muted); display: flex; font-size: var(--fs-sm); gap: var(--sp-2); margin-bottom: var(--sp-5); }.form-heading { align-items: center; display: flex; gap: var(--sp-4); margin: 0 auto var(--sp-5); max-width: 980px; }.form-heading h2, .form-heading p:last-child { margin-bottom: 0; }.form-heading p:last-child { color: var(--text-muted); }.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; gap: var(--sp-6); margin: 0 auto; max-width: 980px; padding: clamp(20px, 4vw, 36px); }.form-card fieldset { border: 0; margin: 0; padding: 0; }.form-card legend { border-bottom: 1px solid var(--border); font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--sp-4); padding: 0 0 var(--sp-3); width: 100%; }.form-grid { display: grid; gap: var(--sp-4); }.field small { color: var(--text-muted); }.field .field__error { color: var(--danger); }.field textarea { resize: vertical; }.field.is-hidden, .is-hidden { display: none !important; }.form-actions { align-items: center; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; padding-top: var(--sp-5); }.switch { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--sp-3); cursor: pointer; }.switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }.switch > span { background: var(--border); border-radius: var(--radius-full); grid-row: 1 / span 2; height: 28px; padding: 3px; position: relative; transition: background var(--transition); width: 48px; }.switch > span::after { background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); content: ""; height: 22px; left: 3px; position: absolute; top: 3px; transition: transform var(--transition); width: 22px; }.switch input:checked + span { background: var(--brand-500); }.switch input:checked + span::after { transform: translateX(20px); }.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--info) 50%, transparent); }.switch small { color: var(--text-muted); grid-column: 2; }.weekday-picker { display: grid; gap: var(--sp-2); grid-template-columns: repeat(7, 1fr); margin-bottom: var(--sp-4); }.weekday-picker label { cursor: pointer; min-width: 0; text-align: center; }.weekday-picker input { height: 1px; opacity: 0; position: absolute; width: 1px; }.weekday-picker span { align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%; display: flex; font-weight: 800; height: 38px; justify-content: center; margin: 0 auto 4px; transition: all var(--transition); width: 38px; }.weekday-picker small { color: var(--text-muted); display: none; font-size: 10px; }.weekday-picker input:checked + span { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-2px); }.check-grid { display: grid; gap: var(--sp-2); }.check-card { align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; gap: var(--sp-2); min-height: 44px; padding: var(--sp-2) var(--sp-3); }.role-picker { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }.role-picker label { cursor: pointer; }.role-picker input { height: 1px; opacity: 0; position: absolute; width: 1px; }.role-picker label > span { background: var(--surface-2); border: 2px solid transparent; border-radius: var(--radius); display: grid; min-height: 82px; padding: var(--sp-4); transition: border var(--transition), transform var(--transition); }.role-picker label > span small { color: var(--text-muted); }.role-picker input:checked + span { background: var(--brand-50); border-color: var(--brand-500); transform: translateY(-2px); }.money-input { align-items: center; display: flex; position: relative; }.money-input > span { color: var(--text-muted); font-weight: 800; left: var(--sp-3); position: absolute; }.money-input input { padding-left: 28px; }
.button.is-loading { color: transparent !important; pointer-events: none; position: relative; }.button.is-loading::after { animation: spin .7s linear infinite; border: 2px solid rgb(255 255 255 / 35%); border-top-color: currentColor; border-top-color: #fff; border-radius: 50%; content: ""; height: 19px; left: calc(50% - 9px); position: absolute; top: calc(50% - 9px); width: 19px; }

/* Configuración de identidad */
.settings-layout { align-items: start; display: grid; gap: var(--sp-5); }.settings-preview { text-align: center; }.club-preview { background: linear-gradient(145deg, var(--brand-50), var(--accent-50)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-4); }.club-preview h3 { margin: var(--sp-4) 0 var(--sp-1); }.club-preview p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }.logo-dropzone { border-radius: 24px; height: 138px; margin: 0 auto; overflow: hidden; position: relative; width: 138px; }.logo-dropzone img { background: #fff; height: 100%; object-fit: contain; padding: 6px; width: 100%; }.logo-dropzone input { cursor: pointer; inset: 0; opacity: 0; position: absolute; width: 100%; }.logo-dropzone__overlay { align-items: center; background: rgb(5 46 22 / 78%); bottom: 0; color: #fff; display: flex; font-size: var(--fs-xs); font-weight: 800; height: 36px; justify-content: center; left: 0; position: absolute; right: 0; transition: height var(--transition); }.logo-dropzone:hover .logo-dropzone__overlay { height: 100%; }.upload-hint { color: var(--text-muted); display: grid; font-size: var(--fs-xs); gap: var(--sp-1); margin-top: var(--sp-4); }.settings-forms { display: grid; gap: var(--sp-4); min-width: 0; }.settings-section { margin: 0; max-width: none; }.section-heading { align-items: center; display: flex; gap: var(--sp-3); margin-bottom: var(--sp-5); }.section-heading h3, .section-heading p { margin: 0; }.section-heading p { color: var(--text-muted); font-size: var(--fs-sm); }.form-actions--sticky { background: color-mix(in srgb, var(--surface) 90%, transparent); bottom: 0; padding: var(--sp-3); position: sticky; z-index: 10; backdrop-filter: blur(10px); }.brand-logo { background: #fff; border-radius: 22%; object-fit: contain; padding: 2px; }
.fab { align-items: center; background: var(--accent-500); border-radius: 50%; bottom: 84px; box-shadow: var(--shadow-lg); color: #fff; display: flex; font-size: 28px; height: 56px; justify-content: center; position: fixed; right: var(--sp-4); width: 56px; z-index: 65; }.fab:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }

@keyframes row-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }.field--span-2 { grid-column: 1 / -1; }.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.role-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }.weekday-picker small { display: block; }
}

@media (min-width: 768px) {
  .catalog-card { padding: var(--sp-5); }.catalog-toolbar { align-items: start; grid-template-columns: minmax(0, 1fr) auto; }.data-table thead { display: table-header-group; }.data-table tbody { display: table-row-group; }.data-table tr { animation: none; border: 0; border-radius: 0; display: table-row; padding: 0; }.data-table tbody tr { transition: background var(--transition); }.data-table tbody tr:hover { background: color-mix(in srgb, var(--brand-50) 58%, transparent); }.data-table th { border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-xs); font-weight: 800; padding: var(--sp-3); text-align: left; text-transform: uppercase; }.data-table td { border-bottom: 1px solid var(--border); display: table-cell; min-height: 0; padding: var(--sp-3); text-align: left; vertical-align: middle; }.data-table td::before { display: none; }.data-table .empty-row td { display: table-cell; }.row-actions { min-width: 92px; }.fab { display: none; }.field--per-page { max-width: 115px; }
}

@media (min-width: 1100px) { .settings-layout { grid-template-columns: 300px minmax(0, 1fr); }.settings-preview { position: sticky; top: 100px; } }

/* Pagos, sesiones y pase de lista */
.button--compact { min-height: 36px; padding: 6px 10px; }
.cancel-payment-form { align-items: center; display: flex !important; gap: var(--sp-1); }
.cancel-reason { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); max-width: 120px; min-height: 38px; padding: 6px 9px; }
.allocation-row { align-items: center; border-bottom: 1px solid var(--border); display: grid; gap: var(--sp-3); grid-template-columns: auto minmax(0, 1fr) minmax(90px, 150px); padding: var(--sp-3) 0; }
.allocation-row > span { display: grid; }.allocation-row small { color: var(--text-muted); }.allocation-row > input:last-child { border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 42px; padding: 8px; text-align: right; }
.payment-summary { background: var(--brand-50); border-radius: var(--radius); color: var(--brand-700); font-size: var(--fs-lg); font-weight: 800; padding: var(--sp-4); text-align: right; }
.attendance-hero { align-items: flex-start; background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); border-radius: var(--radius-lg); color: #fff; display: flex; justify-content: space-between; margin-bottom: var(--sp-4); padding: clamp(20px, 4vw, 34px); }.attendance-hero h2 { margin-bottom: var(--sp-1); }.attendance-hero p { color: rgb(255 255 255 / 78%); margin: 0; }
.attendance-form { display: grid; gap: var(--sp-4); }.attendance-toolbar { align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: var(--sp-3); padding: var(--sp-4); }.attendance-toolbar > div { align-items: center; display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; }
.attendance-list { display: grid; gap: var(--sp-3); }.attendance-student { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: grid; gap: var(--sp-3); padding: var(--sp-3); }.attendance-student__identity { align-items: center; display: flex; gap: var(--sp-3); }.attendance-student__identity > span:last-child { display: grid; }.attendance-student__identity small { color: var(--text-muted); }
.attendance-student--alert { border-color: var(--danger); box-shadow: 0 0 0 2px color-mix(in srgb,var(--danger) 10%,transparent); }
.status-picker { display: grid; gap: var(--sp-1); grid-template-columns: repeat(2, minmax(0, 1fr)); }.status-picker input { height: 1px; opacity: 0; position: absolute; width: 1px; }.status-picker span { align-items: center; background: var(--surface-2); border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; display: flex; font-size: var(--fs-xs); font-weight: 800; justify-content: center; min-height: 40px; padding: 6px; }.status-picker input:checked + span { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }.status-picker label:last-child input:checked + span { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: var(--danger); color: var(--danger); }
.attendance-notes { display: grid; gap: var(--sp-2); grid-template-columns: 110px minmax(0, 1fr); }.attendance-notes input { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 40px; padding: 8px; }.attendance-save { align-items: center; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: var(--radius); bottom: 76px; display: flex; gap: var(--sp-2); justify-content: flex-end; padding: var(--sp-3); position: sticky; z-index: 20; backdrop-filter: blur(10px); }
.notice { background: var(--surface-2); border-left: 4px solid var(--info); border-radius: var(--radius-sm); padding: var(--sp-4); }.notice--danger { border-left-color: var(--danger); }
.notice--success { border-left-color: var(--success); }
.receipt { background: #fff; color: #17211a; margin: 20px auto; max-width: 760px; padding: 36px; }.receipt header { align-items: center; border-bottom: 2px solid #e5e7eb; display: flex; gap: 16px; padding-bottom: 20px; }.receipt header div { flex: 1; }.receipt header h1,.receipt header p { margin: 0; }.receipt dl { display: grid; grid-template-columns: repeat(2,1fr); }.receipt dl div { padding: 8px 0; }.receipt dt { color: #64748b; font-size: 12px; }.receipt dd { font-weight: 700; margin: 0; }.receipt table { border-collapse: collapse; width: 100%; }.receipt th,.receipt td { border-bottom: 1px solid #e5e7eb; padding: 12px; text-align: left; }.receipt footer { align-items: center; display: flex; justify-content: space-between; margin-top: 24px; }
@media (min-width: 760px) { .attendance-toolbar { grid-template-columns: minmax(0, 1fr) auto; }.attendance-student { align-items: center; grid-template-columns: minmax(220px, 1fr) minmax(340px, 1.4fr); }.attendance-notes { grid-column: 1 / -1; }.status-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Reportes */
.report-grid { display: grid; gap: var(--sp-4); }.report-card { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--text); display: grid; gap: var(--sp-4); grid-template-columns: 48px minmax(0,1fr) auto; padding: var(--sp-5); transition: border var(--transition),transform var(--transition); }.report-card:hover { border-color: var(--brand-500); text-decoration: none; transform: translateY(-3px); }.report-card > span { align-items: center; background: var(--brand-50); border-radius: var(--radius); color: var(--brand-700); display: flex; font-size: 22px; font-weight: 900; height: 48px; justify-content: center; }.report-card h3,.report-card p { margin: 0; }.report-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.report-actions { align-items: center; display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; margin-bottom: var(--sp-4); }.report-kpis { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: var(--sp-4); }.report-kpis article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); }.report-kpis span { color: var(--text-muted); display: block; font-size: var(--fs-xs); font-weight: 800; }.report-kpis strong { display: block; font-size: var(--fs-xl); margin-top: var(--sp-1); }.report-columns { display: grid; gap: var(--sp-4); }.report-line { align-items: center; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: var(--sp-3) 0; }
.report-table { border-collapse: collapse; min-width: 680px; width: 100%; }.report-table th,.report-table td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: middle; }.report-table th { color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; }.report-table small { color: var(--text-muted); display: block; }.report-filter { align-items: center; display: flex; flex-wrap: wrap; gap: var(--sp-2); }.report-filter select,.report-filter input,.period-picker input { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 44px; padding: 8px 10px; }.statement-heading { align-items: center; background: linear-gradient(135deg,var(--brand-700),var(--brand-500)); border-radius: var(--radius-lg); color: #fff; display: flex; justify-content: space-between; margin-bottom: var(--sp-4); padding: var(--sp-5); }.statement-heading div { display: grid; }.statement-heading small,.statement-heading span { color: rgb(255 255 255 / 72%); }.statement-heading > div:last-child { text-align: right; }.attendance-cell { align-items: center; background: var(--surface-2); border-radius: 50%; display: inline-flex; font-size: 11px; font-weight: 900; height: 28px; justify-content: center; width: 28px; }.attendance-cell--presente { background: color-mix(in srgb,var(--success) 15%,transparent); color: var(--success); }.attendance-cell--retardo { background: color-mix(in srgb,var(--warning) 18%,transparent); color: var(--warning); }.attendance-cell--falta { background: color-mix(in srgb,var(--danger) 14%,transparent); color: var(--danger); }.attendance-cell--justificada { background: color-mix(in srgb,var(--info) 14%,transparent); color: var(--info); }
@media (min-width: 700px) { .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.report-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }.report-columns { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.audit-detail { max-width: 300px; }.audit-detail summary { color: var(--brand-600); cursor: pointer; font-weight: 700; }.audit-detail pre { background: var(--surface-2); border-radius: var(--radius-sm); font-size: 11px; max-height: 240px; overflow: auto; padding: var(--sp-3); text-align: left; white-space: pre-wrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.app-print-brand { display: none; }

/* Buscador multiselección de tutores */
.guardian-picker { background: color-mix(in srgb,var(--surface-2) 65%,transparent); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); padding: var(--sp-4); position: relative; }
.guardian-picker__search { position: relative; }.guardian-picker__search .search-field { background: var(--surface); min-height: 50px; }.guardian-picker__search .search-field:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px color-mix(in srgb,var(--brand-500) 14%,transparent); }
.guardian-results { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; left: var(--sp-4); max-height: 310px; overflow-y: auto; position: absolute; right: var(--sp-4); top: 112px; z-index: 30; }.guardian-results[hidden] { display: none; }
.guardian-result { align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--border); color: var(--text); display: grid; gap: var(--sp-3); grid-template-columns: 40px minmax(0,1fr) auto; min-height: 66px; padding: var(--sp-3); text-align: left; width: 100%; }.guardian-result:last-child { border-bottom: 0; }.guardian-result:hover,.guardian-result:focus { background: var(--brand-50); outline-offset: -3px; }.guardian-result > span:nth-child(2) { display: grid; min-width: 0; }.guardian-result small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.guardian-result__action { color: var(--brand-700); font-size: var(--fs-xs); font-weight: 800; }.guardian-results__empty { color: var(--text-muted); margin: 0; padding: var(--sp-5); text-align: center; }
.guardian-picker__heading { align-items: center; display: flex; justify-content: space-between; }.guardian-picker__heading span { background: var(--brand-50); border-radius: var(--radius-full); color: var(--brand-700); font-size: var(--fs-xs); font-weight: 800; padding: 4px 9px; }
.guardian-selected { display: grid; gap: var(--sp-2); }.guardian-chip { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: var(--sp-3); grid-template-columns: 40px minmax(0,1fr) 44px; padding: var(--sp-2) var(--sp-3); }.guardian-chip > span:nth-of-type(2) { display: grid; min-width: 0; }.guardian-chip small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.guardian-selected__empty { border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); margin: 0; padding: var(--sp-4); text-align: center; }.guardian-picker__status { color: var(--text-muted); font-size: var(--fs-xs); margin: 0; min-height: 18px; }

/* Barra compacta de búsqueda y filtros de cargos */
.charges-catalog { overflow: visible; }.catalog-toolbar--charges { align-items: center; }.charge-filters { min-width: 0; width: 100%; }.charge-filter-bar { align-items: center; display: flex; gap: var(--sp-2); }.charge-search { flex: 1 1 360px; max-width: 720px; min-height: 46px; }.charge-search__clear { align-items: center; border-radius: 50%; color: var(--text-muted); display: flex; flex: 0 0 30px; font-size: 20px; height: 30px; justify-content: center; }.charge-search__clear:hover { background: var(--surface-2); text-decoration: none; }
.filter-popover { flex: 0 0 auto; position: relative; }.filter-popover > summary { list-style: none; white-space: nowrap; }.filter-popover > summary::-webkit-details-marker { display: none; }.filter-popover[open] > summary { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }.filter-count { align-items: center; background: var(--brand-600); border-radius: var(--radius-full); color: #fff; display: inline-flex; font-size: 10px; height: 21px; justify-content: center; min-width: 21px; padding: 0 5px; }
.filter-count--empty { display: none; }
.filter-popover__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; gap: var(--sp-3); padding: var(--sp-4); position: absolute; right: 0; top: calc(100% + 8px); width: min(340px,calc(100vw - 64px)); z-index: 45; }.filter-popover__heading { align-items: start; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding-bottom: var(--sp-3); }.filter-popover__heading div { display: grid; }.filter-popover__heading small { color: var(--text-muted); }.filter-popover__heading a { font-size: var(--fs-xs); font-weight: 800; }.filter-popover__panel .field--compact { min-width: 0; }.filter-popover__panel .field select { min-height: 42px; }
.charge-filter-chips { margin-top: var(--sp-2); }.charge-filter-chips:empty { display: none; }.late-fee-action { font-size: var(--fs-sm); white-space: nowrap; }
@media (max-width: 560px) { .charge-filter-bar { align-items: stretch; }.charge-search { flex-basis: auto; }.filter-popover > summary { min-width: 46px; padding: 8px; }.filter-popover .filter-label { display: none; }.filter-count { font-size: 10px; }.late-fee-action { justify-self: start; } }
/* Portal de padres */
.parent-grid { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.child-card { align-items: center; display: flex; gap: var(--sp-4); justify-content: space-between; }
.child-card__balance { display: grid; text-align: right; }
.child-card__balance span { color: var(--text-muted); font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; }
.child-card__balance strong { color: var(--brand-700); font-size: var(--fs-xl); }
.parent-dashboard { margin-bottom: var(--sp-4); }
@media (min-width: 760px) { .parent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Calendario de partidos */
.text-muted { color: var(--text-muted); }
.match-calendar { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); overflow: hidden; }
.match-calendar__header { align-items: center; display: flex; gap: var(--sp-2); justify-content: space-between; }
.match-calendar__month { min-width: min(260px, 100%); }
.match-calendar__month .field { gap: 4px; }
.match-calendar__weekdays { color: var(--text-muted); display: none; font-size: var(--fs-xs); font-weight: 900; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; text-transform: uppercase; }
.match-calendar__grid { display: grid; gap: var(--sp-2); }
.match-day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; gap: var(--sp-2); min-height: 88px; padding: var(--sp-2); }
.match-day > strong { align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); display: inline-flex; font-size: var(--fs-xs); height: 26px; justify-content: center; width: 26px; }
.match-day.is-today { border-color: var(--brand-500); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-500) 12%, transparent); }
.match-day.is-today > strong { background: var(--brand-600); color: #fff; }
.match-day--empty { display: none; }
.match-day__events { display: grid; gap: 6px; }
.match-event { background: color-mix(in srgb, var(--team-color, var(--brand-500)) 12%, var(--surface)); border-left: 4px solid var(--team-color, var(--brand-500)); border-radius: var(--radius-sm); color: var(--text); display: grid; gap: 2px; padding: 7px 8px; text-decoration: none; }
.match-event:hover { background: color-mix(in srgb, var(--team-color, var(--brand-500)) 18%, var(--surface)); text-decoration: none; }
.match-event span { font-size: var(--fs-xs); font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-event small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-event em { color: var(--brand-700); font-style: normal; font-weight: 900; }
.match-event--cancelado { opacity: .58; text-decoration: line-through; }
.match-event--jugado { border-left-color: var(--success); }
@media (min-width: 760px) {
  .match-calendar__weekdays { display: grid; }
  .match-calendar__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .match-day { min-height: 142px; }
  .match-day--empty { background: color-mix(in srgb, var(--surface-2) 58%, transparent); display: block; }
}

/* Asignacion de goleadores */
.goal-picker { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: var(--sp-2); max-height: 360px; overflow: auto; padding: var(--sp-3); }
.goal-picker__team { display: grid; gap: var(--sp-2); }
.goal-picker__team[hidden], .goal-picker__empty[hidden] { display: none; }
.goal-picker__empty { color: var(--text-muted); margin: 0; padding: var(--sp-4); text-align: center; }
.goal-row { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr) 86px; padding: var(--sp-3); }
.goal-row > span { display: grid; min-width: 0; }
.goal-row strong, .goal-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-row small { color: var(--text-muted); }
.goal-row input { text-align: center; }
@media (min-width: 760px) { .goal-picker__team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Perfil de alumno */
.avatar--xl { flex-basis: 72px; font-size: var(--fs-xl); height: 72px; width: 72px; }
.student-profile-hero { align-items: stretch; background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); border-radius: var(--radius-lg); color: #fff; display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); padding: clamp(20px, 4vw, 34px); }
.student-profile-hero__identity { align-items: center; display: flex; gap: var(--sp-4); min-width: 0; }
.student-profile-hero__identity > div { min-width: 0; }
.student-profile-hero h2 { color: #fff; font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl)); line-height: 1.08; margin: 0 0 var(--sp-2); overflow-wrap: anywhere; }
.student-profile-hero .eyebrow, .student-profile-hero__meta { color: rgb(255 255 255 / 78%); }
.student-profile-hero__meta { align-items: center; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.student-profile-hero__meta > span { align-items: center; display: inline-flex; }
.student-profile-hero__meta > span + span::before { content: ""; background: rgb(255 255 255 / 42%); border-radius: 50%; height: 5px; margin-right: var(--sp-2); width: 5px; }
.student-profile-hero .badge { background: rgb(255 255 255 / 18%); color: #fff; }
.profile-actions { align-items: stretch; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.profile-actions .button { flex: 1 1 160px; }
.student-kpis { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--sp-4); }
.student-tabs { display: grid; gap: var(--sp-4); }
.student-tabs__list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; gap: var(--sp-1); overflow-x: auto; padding: var(--sp-1); }
.student-tabs__list button { background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--text-muted); flex: 1 0 auto; font-weight: 800; min-height: 42px; padding: 8px 12px; }
.student-tabs__list button[aria-selected="true"] { background: var(--brand-600); color: #fff; }
.student-detail-grid { display: grid; gap: var(--sp-4); }
.student-card { min-width: 0; }
.student-card .card__header { margin-bottom: var(--sp-3); }
.detail-list { display: grid; gap: var(--sp-2); margin: 0; }
.detail-list div { background: var(--surface-2); border-radius: var(--radius-sm); display: grid; gap: 3px; padding: var(--sp-3); }
.detail-list dt { color: var(--text-muted); font-size: var(--fs-xs); font-weight: 900; text-transform: uppercase; }
.detail-list dd { font-weight: 800; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.detail-list--medical { grid-template-columns: 1fr; }
.contact-list { display: grid; gap: var(--sp-3); }
.contact-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: var(--sp-3); padding: var(--sp-3); }
.contact-card strong, .contact-card span { display: block; min-width: 0; overflow-wrap: anywhere; }
.contact-card span { color: var(--text-muted); font-size: var(--fs-sm); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.contact-card__actions a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 800; padding: 7px 10px; }
.student-panel-heading { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; margin-bottom: var(--sp-4); padding: var(--sp-4); }
.student-panel-heading h3, .student-panel-heading p { margin: 0; }
.student-panel-heading p { color: var(--text-muted); font-size: var(--fs-sm); }
.student-panel-heading strong { color: var(--brand-700); font-size: var(--fs-xl); }
.attendance-history { display: grid; gap: var(--sp-2); }
.attendance-history > div { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; gap: var(--sp-2); grid-template-columns: minmax(92px, auto) auto minmax(0, 1fr); padding: var(--sp-3); }
.attendance-history time { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 800; }
.attendance-history span, .attendance-history small { min-width: 0; overflow-wrap: anywhere; }
.attendance-history small { color: var(--text-muted); grid-column: 1 / -1; }
.muted { color: var(--text-muted); margin: 0; }
@media (min-width: 760px) {
  .student-profile-hero { align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
  .profile-actions { justify-content: flex-end; }
  .profile-actions .button { flex: 0 0 auto; }
  .student-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .student-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-card--wide { grid-column: 1 / -1; }
  .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list--medical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .student-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); }
}
