/* ============================================================
   MICLUB — mainStyles.css  (Redesign 2025)
   ============================================================ */

/* ── FUENTE ─────────────────────────────────────────────── */
@font-face {
    font-family: 'Poppins';
    src: url(../FONTS/Poppins/Poppins-Regular.ttf) format('truetype');
}

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
    /* BRAND — sobreescritos desde BD del club */
    --mainColor:          #213D83;
    --mainColorHover:     color-mix(in srgb, var(--mainColor) 80%, white);
    --mainColorHoverDark: color-mix(in srgb, var(--mainColor) 85%, black);
    --mainColor10:        color-mix(in srgb, var(--mainColor) 10%, transparent);
    --mainColor20:        color-mix(in srgb, var(--mainColor) 20%, transparent);
    --mainColor40:        color-mix(in srgb, var(--mainColor) 40%, transparent);
    --secondaryColor:     #F5F3FF;
    --whiteText:          #FCFCF7;
    --darkText:           #1e293b;
    --newMainColor:       #04468f;
    --newMainTextColor:   #FCFCF7;

    /* NEUTROS */
    --bg-app:      #f1f5f9;
    --bg-card:     #ffffff;
    --bg-hover:    #f8fafc;
    --border:      #e2e8f0;
    --border-dark: #cbd5e1;
    --text-1:      #0f172a;
    --text-2:      #334155;
    --text-3:      #64748b;
    --text-4:      #94a3b8;

    /* SEMÁNTICOS */
    --success:    #16a34a;
    --success-bg: #dcfce7;
    --danger:     #dc2626;
    --danger-bg:  #fee2e2;
    --warning:    #d97706;
    --warning-bg: #fef3c7;
    --info:       #2563eb;
    --info-bg:    #dbeafe;

    /* RADIOS */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* SOMBRAS */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

    /* GLASSMORPHISM */
    --glass-bg:     rgba(255,255,255,0.15);
    --glass-border: rgba(255,255,255,0.25);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.25);

    /* TRANSICIONES */
    --t-fast:   0.15s ease;
    --t-normal: 0.25s ease;
    --t-slow:   0.4s ease;

    /* TIPOGRAFÍA */
    --font-xs:  clamp(0.65rem, 0.6vw,  0.75rem);
    --font-sm:  clamp(0.75rem, 0.75vw, 0.875rem);
    --font-md:  clamp(0.85rem, 0.85vw, 1rem);
    --font-lg:  clamp(1rem,    1vw,    1.125rem);
    --font-xl:  clamp(1.2rem,  1.5vw,  1.5rem);
    --font-2xl: clamp(1.5rem,  2vw,    2rem);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { font-family: 'Poppins', sans-serif; }

body { background: linear-gradient(135deg, #B6D4DE 0%, #D3E8DC 19%, #A7A2EB 100%); }

/* ── UTILIDADES ─────────────────────────────────────────── */
.mobile-only  { display: none !important; }
.desktop-only { display: flex; }
.d-none       { display: none !important; }
.d-block      { display: block !important; }

.text-red-600   { color: #dc2626 !important; }
.text-green-600 { color: #16a34a !important; }
.text-gray-600  { color: #475569 !important; }
.text-muted     { font-size: 0.8em; color: #666; }

.txt-deuda { color: #dc2626 !important; }
.txt-favor { color: #16a34a !important; }
.txt-aldia { color: #64748b !important; }

/* ── LAYOUT PRINCIPAL ───────────────────────────────────── */
main {
    margin: 2em auto;
    display: flex;
    justify-content: center;
    width: 100%;
}
#mainDiv {
    min-height: 90vh;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    background-color: var(--bg-app);
    width: 82%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── HEADER ─────────────────────────────────────────────── */
.header {
    background: linear-gradient(135deg, var(--mainColor) 0%, var(--mainColorHoverDark) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.navBar {
    width: 100%;
    padding: 0.55em 1.5em;
    display: flex;
    gap: 1em;
    align-items: center;
}
.left {
    display: flex;
    align-items: center;
    flex: 0.8;
    gap: 0.6em;
}
.left img    { max-height: 70px; object-fit: contain; }
.left h2     { font-size: var(--font-lg); color: var(--whiteText); font-weight: 700; letter-spacing: 0.5px; text-transform: capitalize; }

.headerMenu {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    list-style: none;
}
.headerMenu li {
    font-size: var(--font-sm);
    padding: 0.45em 0.9em;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
    position: relative;
    letter-spacing: 0.3px;
}
.headerMenu li:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.headerMenu li.active {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.headerMenu li.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: #fff;
    border-radius: 2px;
}

.right {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75em;
}
#Username {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--whiteText);
    margin-right: 0.5em;
}
#ProfileImg {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#ProfileImg:hover { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }

/* Logout icon */
.logout {
    width: 20%;
    position: relative;
    cursor: pointer;
}
.logout:hover .logoutArrow,
.logout:hover .logoutFrame { background-color: rgba(255,255,255,0.6); }
.logoutFrame {
    margin-left: 2em;
    width: 20px; height: 30px;
    position: relative;
    background-color: var(--whiteText);
    opacity: 1;
    transition: all var(--t-normal);
    clip-path: polygon(0% 0%, 0% 100%, 15% 100%, 15% 15%, 75% 15%, 100% 85%, 15% 85%, 15% 100%, 100% 100%, 100% 85%, 75% 15%, 100% 15%, 100% 0%, 79% 0%, 49% 0%);
}
.logoutArrow {
    position: absolute;
    width: 20px; height: 15px;
    left: 40px; top: 7px;
    background-color: var(--whiteText);
    z-index: 10;
    transition: all var(--t-normal);
    clip-path: polygon(0% 35%, 60% 35%, 60% 10%, 90% 50%, 60% 85%, 60% 65%, 0% 65%);
}

/* ── CONTENT LAYOUT ─────────────────────────────────────── */
.contentHeader {
    padding: 1.25em 1.25em 0.75em;
    border-bottom: 1px solid var(--border);
    width: 100%;
}
.contentHeader h1 { font-size: var(--font-2xl); font-weight: 800; color: var(--text-1); }
.contentHeader p  { font-size: var(--font-sm); color: var(--text-3); margin-top: 0.25em; font-weight: 500; }

#mainContent {
    display: flex;
    width: 100%;
    margin-bottom: 2em;
}
.content {
    border-left: 1px solid var(--border);
    flex: 5;
    padding: 1.25em;
}
.contentDetails {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100%;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.menuAside {
    padding: 1.5em 0 0 1.5em;
    margin-top: 1em;
    flex: 1;
    border-radius: var(--radius);
}
.menuAside h3 {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border);
}
.menuBtn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.75em;
    border-radius: var(--radius-sm);
    margin: 0.2em 0;
    list-style: none;
    cursor: pointer;
    color: var(--text-2);
    font-weight: 500;
    font-size: var(--font-sm);
    transition: all var(--t-fast);
}
.menuBtn:hover { background: var(--mainColor10); color: var(--mainColor); }
.menuBtn.active {
    background: var(--mainColor20);
    color: var(--mainColor);
    font-weight: 700;
    border-left: 3px solid var(--mainColor);
    padding-left: calc(0.75em - 3px);
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25em;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--t-normal), transform var(--t-normal);
}
.card:hover { box-shadow: var(--shadow); }

.statsCards { display: flex; gap: 1.25em; width: 100%; }
.statsCards .card { flex: 1; }
.card .cardTitle { font-size: var(--font-sm); color: var(--text-3); font-weight: 600; }
.card > span     { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 700; color: var(--text-1); display: block; }
.addInfo         { font-size: var(--font-xs); color: var(--text-3); margin-top: 0.5em; }

/* Chart containers */
.chartCard        { background: var(--bg-card); border-radius: var(--radius); padding: 1.25em; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.chartCard canvas { max-height: 280px; }
.chartRow         { display: flex; gap: 1.25em; width: 100%; }
.chartRow .chartCard { flex: 1; }

/* ── DASHBOARD ADMIN: Metricas principales 8 cards ───────── */
.metricas-principales {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}
.metricas-principales .card {
    flex: none;
    min-width: 0;
}

/* ── DASHBOARD ADMIN: Categorias grid ────────────────────── */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1em;
}
.categoria-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0;
    border: 1px solid var(--border);
    overflow: hidden;
}
.categoria-nombre {
    font-size: var(--font-base);
    font-weight: 700;
    color: #ffffff;
    background: var(--mainColor);
    margin: 0;
    padding: 0.75em 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.genero-tag {
    font-size: var(--font-xs);
    font-weight: 600;
    padding: 0.25em 0.6em;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.categoria-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5em;
    text-align: center;
    padding: 1em;
}
.categoria-stats .stat-item {
    display: flex;
    flex-direction: column;
}
.categoria-stats .stat-value {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-1);
}
.categoria-stats .stat-label {
    font-size: var(--font-xs);
    color: var(--text-3);
}
.categoria-stats .stat-item.record .stat-value {
    color: var(--accent);
}

/* ── DASHBOARD ADMIN: Historial section ──────────────────── */
.historial-section {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-top: 0.5em;
}
.historial-section select {
    flex: 1;
    max-width: 300px;
}

/* ── DASHBOARD ADMIN: Canvas legend ──────────────────────── */
.canvasdata {
    font-size: var(--font-xs);
    color: var(--text-3);
    line-height: 1.6;
}
.canvasdata div {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

/* ── INFORMES FINANCIEROS ────────────────────────────────── */
.filtros-informe h3 { margin-bottom: 1em; color: var(--text-1); }
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
    align-items: end;
}
.filtros-grid .formGroup { margin: 0; }
.filtros-grid .formGroup label {
    display: block;
    font-size: var(--font-xs);
    color: var(--text-3);
    margin-bottom: 4px;
}
.filtros-grid select,
.filtros-grid input[type="date"] {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-1);
    font-size: var(--font-sm);
}

.resumen-financiero { margin-top: 1em; }
.resumen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2em;
}
.resumen-card {
    text-align: center;
    padding: 1.5em 1.2em;
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}
.resumen-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.resumen-card.ingresos-card {
    border-left: 4px solid #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, var(--bg-card) 100%);
}
.resumen-card.gastos-card {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-card) 100%);
}
.resumen-card.balance-card {
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-card) 100%);
}
.resumen-label {
    display: block;
    font-size: var(--font-xs);
    color: var(--text-3);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.resumen-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-1);
}
.resumen-card.ingresos-card .resumen-value { color: #22c55e; }
.resumen-card.gastos-card .resumen-value { color: #ef4444; }

.movimientos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5em 0 0.5em;
}
.movimientos-header h2 { margin: 0; }
.movimientos-header p { color: var(--text-3); font-size: var(--font-sm); }

.tabla-movimientos {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.tabla-header {
    display: grid;
    grid-template-columns: 100px 100px 1fr 120px;
    gap: 1em;
    padding: 0.8em 1em;
    background: var(--text-1);
    color: #fff;
    font-weight: 600;
    font-size: var(--font-xs);
    text-transform: uppercase;
}
.tabla-body { max-height: 400px; overflow-y: auto; }
.tabla-row {
    display: grid;
    grid-template-columns: 100px 100px 1fr 120px;
    gap: 1em;
    padding: 0.8em 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: var(--font-sm);
    align-items: center;
    transition: background 0.2s ease;
}
.tabla-row:hover {
    background: var(--bg-hover);
}
.tabla-row .tipo-ingreso { color: #22c55e; font-weight: 600; }
.tabla-row .tipo-gasto { color: #ef4444; font-weight: 600; }
.tabla-row .monto-positivo { color: #22c55e; font-weight: 600; }
.tabla-row .monto-negativo { color: #ef4444; font-weight: 600; }

.empty-state {
    padding: 3em;
    text-align: center;
    color: var(--text-3);
}

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
}

.exportar-buttons {
    display: flex;
    gap: 1em;
    margin-top: 1.5em;
    justify-content: flex-end;
}
.btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7em 1.2em;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-export.pdf { background: #ef4444; color: #fff; }
.btn-export.pdf:hover:not(:disabled) { background: #dc2626; }
.btn-export.excel { background: #22c55e; color: #fff; }
.btn-export.excel:hover:not(:disabled) { background: #16a34a; }
.btn-export:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-export .btn-icon { width: 18px; height: 18px; }

.colors {
    margin: 10px;
    width: 50px; height: 50px;
    display: inline-block;
    background-color: #212121;
    border-radius: var(--radius-sm);
}

/* ── DATA TABLES ────────────────────────────────────────── */
.dataHeader {
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--text-1);
    padding: 0.6em 1em;
    border-radius: var(--radius) var(--radius) 0 0;
}
.dataHeader span {
    color: var(--whiteText);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.dataContent {
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--bg-hover);
    padding: 1em 1em;
    border-top: 1px solid var(--border);
    transition: background var(--t-fast);
}
.dataContent:hover { background: var(--mainColor10); }
.dataContent:nth-child(even)       { background: var(--bg-card); }
.dataContent:nth-child(even):hover { background: var(--mainColor10); }
.dataContent:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.dataContent span { font-size: var(--font-xs); color: var(--text-2); font-weight: 500; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.5em 1.1em; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: var(--font-sm);
    font-weight: 600; cursor: pointer; transition: all var(--t-fast);
    box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn-primary { background: var(--mainColor); color: #fff; }
.btn-primary:hover { background: var(--mainColorHoverDark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; transform: translateY(-1px); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover  { background: #b91c1c; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border-dark); }

/* Legacy button classes mapped to new system */
.addAssignmentButton, .bottomHeader button,
.trainingRegister button, #matchRegisterBtn {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.5em 1em; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: var(--font-sm);
    font-weight: 600; cursor: pointer; transition: all var(--t-fast);
    box-shadow: var(--shadow-sm);
    background-color: var(--success); color: #fff;
}
.addAssignmentButton:hover, .bottomHeader button:hover,
.trainingRegister button:hover { background-color: #15803d; transform: translateY(-1px); }

.trainerTitle {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.5em 1em; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: var(--font-sm);
    font-weight: 600; cursor: pointer; transition: all var(--t-fast);
    background-color: var(--success); color: #fff; box-shadow: var(--shadow-sm);
    align-self: flex-start; position: absolute; top: 1.5em; z-index: 2;
}

.saveChangesBtn, #saveChanges, .confirmChanges {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.5em 1.1em; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: var(--font-sm);
    font-weight: 600; cursor: pointer; transition: all var(--t-fast);
    box-shadow: var(--shadow-sm); background-color: var(--mainColor); color: #fff;
}
.saveChangesBtn:hover, #saveChanges:hover, .confirmChanges:hover {
    background-color: var(--mainColorHoverDark); transform: translateY(-1px);
}

#fileUpload {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.5em 1.1em; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: var(--font-sm);
    font-weight: 600; cursor: pointer; transition: all var(--t-fast);
    background-color: var(--mainColor); color: #fff; box-shadow: var(--shadow-sm);
}
.addAffiliationBtn {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.5em 1.1em; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: var(--font-sm);
    font-weight: 600; cursor: pointer; transition: all var(--t-fast);
    background-color: var(--success); color: #fff; box-shadow: var(--shadow-sm);
}
#addAffiliationBtn{
    display: flex;
    width: 15%;
    align-self: center;
    justify-content: center;
}


.affiliationForm {
    
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3em;
    margin: 0 auto;
    padding: 2em;
    align-items: center;
}
.top {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;

}
.affiliationForm .formGroup {
    flex-grow: 1;
    position: relative;

}
.bottom {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
}
.top input{
    width: 100%;
    padding: 0.8em;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, .2);
    font-size: clamp(0.8rem, .7vw, 1.2em);
    font-weight: 600;
    color: var(--darkText);
    background-color:  #FAFAFA;
    cursor: pointer;
}
.top label , .bottom label{
    position: absolute;
    left: .3em;
    top: -2em;
    font-size: clamp(0.8rem, .5vw, 1.2em);
    font-weight: 500;
    color: #aaa;
}

.bottom input{
    width: 100%;
    padding: 0.8em;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, .2);
    font-size: clamp(0.8rem, .7vw, 1.2em);
    font-weight: 600;
    color: var(--darkText);
    background-color:  #FAFAFA;
    cursor: pointer;
}

.reportButton {
    display: inline-flex; padding: 0.6em 1em;
    border-radius: var(--radius-sm); border: none;
    font-family: inherit; font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; transition: all var(--t-fast); box-shadow: var(--shadow-sm); color: #fff;
}
.pdf  { background-color: #E53935; }
.pdf:hover  { background-color: #b71c1c; }
.xsls { background-color: #43A047; }
.xsls:hover { background-color: #1b5e20; }

.btn-anular {
    background: #e36f6f; color: white; border: none;
    padding: 5px 10px; border-radius: var(--radius-sm);
    cursor: pointer; transition: background var(--t-fast);
    font-size: var(--font-xs); font-weight: 600;
}
.btn-anular:hover { background: #dc2626; }
.btn-confirm-anular {
    background: #e36f6f; color: white; border: none;
    padding: 5px 10px; border-radius: var(--radius-sm);
    cursor: pointer; transition: background var(--t-fast);
    font-size: var(--font-xs); font-weight: 600;
}
.btn-confirm-anular:hover { background: #dc2626; }

/* ── FORMS ──────────────────────────────────────────────── */
.formGroup {
    position: relative;
    display: flex; flex-direction: column; gap: 0.35em;
}
.formGroup label {
    font-size: var(--font-xs); font-weight: 600; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.4px; position: static;
}
.formGroup input,
.formGroup select,
.formGroup textarea {
    width: 100%; padding: 0.65em 0.85em;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: var(--font-md); color: var(--text-1); background: var(--bg-card);
    transition: border-color var(--t-fast), box-shadow var(--t-fast); outline: none;
}
.formGroup input:focus,
.formGroup select:focus,
.formGroup textarea:focus {
    border-color: var(--mainColor);
    box-shadow: 0 0 0 3px var(--mainColor10);
}
.FormGroup { position: relative; }
.FormGroup label { width: 100%; position: absolute; left: 0; top: -1.5em; }
input[type="file"] { display: none; }

/* ── GLASSMORPHISM — DIALOGS ────────────────────────────── */
dialog::backdrop {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
dialog {
    border: none; border-radius: var(--radius-xl); padding: 0;
    width: min(90vw, 520px); margin: auto;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow); overflow: hidden;
}
dialog button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.45em 0.9em; border-radius: var(--radius-sm); border: none;
    background-color: var(--success); color: var(--whiteText);
    font-size: var(--font-sm); font-weight: 600; cursor: pointer;
    transition: all var(--t-fast); box-shadow: var(--shadow-sm);
}
dialog button:hover { background-color: #15803d; }

.modal-header {
    padding: 1.25em 1.5em 1em;
    background: linear-gradient(135deg, var(--mainColor), var(--mainColorHoverDark));
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 10px ;
    
}
.modal-header h3 { color: var(--whiteText); font-size: var(--font-lg); font-weight: 700; margin: 0; }
.modal-header .close-btn {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    font-size: 1.1rem; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--t-fast); box-shadow: none;
}
.modal-header .close-btn:hover { background: rgba(255,255,255,0.35); }
.modal-body   {
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;}
.modal-footer {
    padding: 1em 1.5em;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 0.75em;
    
}
.modal-footer .btn-cancelar { background-color: #afafaf; color: #fff; transition: all .3s ease}
.modal-footer .btn-cancelar:hover{
    background-color: #3c3a3a;
}
    


/* Dialog overrides */
#playerPhotoDialog {
    border-radius: var(--radius-lg); padding: 1em;
    width: min(90vw, 500px);
    background: rgba(0,0,0,0.55);
    flex-direction: column; gap: 1em; align-items: center;
}
#playerPhotoDialog::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(12px); }

.pago-cargo-dialog { width: min(90vw, 480px); margin: auto; border: none; border-radius: var(--radius-xl); padding: 0; }
.pago-cargo-dialog::backdrop { background: rgba(0,0,0,0.8); backdrop-filter: blur(16px); }

#anularConfirmDialog { margin: auto; padding: 2em; border-radius: var(--radius-lg); border: none; width: min(90vw, 400px); }
#anularConfirmDialog::backdrop { background: rgba(0,0,0,0.85); backdrop-filter: blur(16px); }
#tutorConfirmDialog::backdrop  { background: rgba(0,0,0,0.7);  backdrop-filter: blur(12px); }

/* ── TOAST NOTIFICATIONS ────────────────────────────────── */
#toast-container {
    position: fixed; top: 1.25em; right: 1.25em; z-index: 99999;
    display: flex; flex-direction: column; gap: 0.6em; pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex; align-items: center; gap: 0.75em;
    min-width: 280px; max-width: 380px; padding: 0.9em 1.2em;
    border-radius: var(--radius);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid; box-shadow: var(--glass-shadow);
    font-size: var(--font-sm); font-weight: 500;
    transform: translateX(120%); opacity: 0;
    transition: transform var(--t-normal), opacity var(--t-normal);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast.success { background: rgba(220,252,231,0.9); border-color: #86efac; color: #15803d; }
.toast.error   { background: rgba(254,226,226,0.9); border-color: #fca5a5; color: #b91c1c; }
.toast.warning { background: rgba(254,243,199,0.9); border-color: #fcd34d; color: #b45309; }
.toast.info    { background: rgba(219,234,254,0.9); border-color: #93c5fd; color: #1d4ed8; }
.toast-icon    { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; line-height: 1.3; }
.toast-close   { background: none; border: none; font-size: 0.9rem; opacity: 0.5; cursor: pointer; padding: 0; line-height: 1; transition: opacity var(--t-fast); }
.toast-close:hover { opacity: 1; }

/* ── CALENDAR ───────────────────────────────────────────── */
.CalendarCard { width: 100%; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 6px; background: var(--bg-hover); border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-weight: 700; font-size: var(--font-sm); }
.calendar-header span { text-transform: capitalize; }
.calendar-header button { border: none; background: var(--text-1); color: #fff; padding: 3px 8px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.calendar-header button:hover { background: var(--text-2); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 1fr); box-sizing: border-box; }
.day-name, .day { padding: 3px; border: 1px solid var(--border); box-sizing: border-box; }
.day { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.day-num { font-size: var(--font-xs); font-weight: 700; line-height: 1; }
.cal-badge { font-size: 0.52rem; font-weight: 700; padding: 1px 3px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; line-height: 1.3; }
.cal-badge.cal-entrenamiento { background: #c6f0c6; color: #166016; }
.cal-badge.cal-partido        { background: #fda4a4; color: #7a0000; }
.day:hover::after { content: attr(data-event); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 3px 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; z-index: 10; }
.day[data-event]:not([data-event=""]):hover::after { content: attr(data-event); }
.bottomHeader { display: flex; justify-content: space-between; gap: 1em; align-items: center; width: 100%; margin-bottom: 1em; }

/* ── TRAINER CARDS ──────────────────────────────────────── */
.trainerCardContainer { display: flex; flex-direction: row; justify-content: space-around; align-items: flex-start; gap: 0.8em; width: 90%; flex-wrap: wrap; padding-left: 1em; }
.trainerCard {
    position: relative; flex-basis: 33%; max-width: 50%;
    display: flex; flex-direction: row; justify-content: space-between; padding: 1em;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg-card); box-shadow: var(--shadow-sm); transition: box-shadow var(--t-normal);
}
.trainerCard:hover { box-shadow: var(--shadow); }
.trainerCard:hover .overlay { opacity: 1; }
.trainerCardLeft { width: 65%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.3em; }
.trainerCardLeft h2 { font-size: clamp(0.8rem, 2vw, 1.5em); font-weight: 700; color: var(--text-1); }
.trainerCardLeft span { font-size: 0.9em; font-weight: 600; padding: 0.2em 0.8em; border-radius: var(--radius-sm); background-color: var(--mainColor); color: var(--whiteText); cursor: pointer; transition: background var(--t-fast); display: inline-block; text-align: center; margin-top: 0.3em; }
.trainerCardLeft span:hover { background-color: var(--mainColorHoverDark); }
.trainerCard img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.82); display: flex; justify-content: center; align-items: center; gap: 1em; opacity: 0; transition: opacity var(--t-normal); border-radius: var(--radius); z-index: 5; }
.overlayText { font-size: clamp(0.5rem, 1vw, 1.5em); color: var(--whiteText); background-color: rgba(255,255,255,0.7); padding: 0.5em; border-radius: 50%; cursor: pointer; transition: background-color var(--t-fast); }
.deleteTrainer:hover { background-color: var(--danger); }
.updateTrainer:hover { background-color: var(--info); }
.seeTrainer:hover    { background-color: var(--success); }

/* ── CONFIG SECTION ─────────────────────────────────────── */
.configCard { position: relative; flex-basis: 90%; max-width: 90%; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25em; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.configCardLogo { position: relative; flex-basis: 90%; max-width: 50%; display: flex; flex-direction: column; justify-content: space-between; padding: 1em; }
.configCardLogo img, .configCard img { width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 0.5em; border: 2px dashed var(--border-dark); }
.logoChange  { display: flex; width: 100%; justify-content: space-evenly; margin-top: 2em; }
.logoText    { font-size: clamp(0.8rem, 2vw, 1.5em); font-weight: 700; color: var(--text-1); }
.clubDataCard { padding: 1.25em; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); width: 100%; display: flex; flex-direction: column; gap: 0.75em; background: var(--bg-card); }
.configCardTop   { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 1em; gap: 1em; }
.configCardLeft  { width: 40%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.3em; }
.configCardRight { width: 40%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.3em; }
.preview { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.5em; border-radius: var(--radius); background: var(--bg-hover); padding: 1em; border: 1px solid var(--border); }

/* Staff assignment form */
.addAssignmentCard { flex: none; margin: 0 auto; width: 40%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1em; padding: 1.25em; }
.addAssignmentCard input[type="text"], .addAssignmentCard input[type="email"] { padding-left: 0.5em; }
.addAssignmentCard select { padding: 0.4em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: var(--font-sm); color: var(--text-1); background: var(--bg-card); }
#staffAssignment, #staffRegister { width: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 0.5em; }
.staffFormGroup { position: relative; width: 100%; display: flex; gap: 0.3em; }
.staffFormGroup label  { width: 30%; font-size: var(--font-sm); font-weight: 600; display: flex; align-items: center; color: var(--text-2); }
.staffFormGroup input, .staffFormGroup select { width: 70%; padding: 0.4em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: var(--font-sm); color: var(--text-1); background: var(--bg-card); }
#addStaff { display: flex; flex-direction: column; gap: 0.5em; }



/* ── PLAYER + COMPETITION CARDS ─────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.playerCard, .competitionCard {
    transition: all var(--t-normal);
    cursor: pointer; flex-basis: 20%; max-width: 23%;
    display: flex; flex-grow: 1;
    flex-direction: row; justify-content: flex-start;
    align-items: flex-end; gap: 1.5em; padding: 1em;
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); background: var(--bg-card);
    animation: fadeInUp 0.4s ease-out both; backface-visibility: hidden;
}
.playerCard:hover, .competitionCard:hover {
    background-color: var(--bg-hover); box-shadow: var(--shadow);
    transform: translateY(-4px); border-color: var(--mainColor40);
}
.competitionCard { justify-content: space-evenly; align-items: center; min-height: 120px; }
.playerCard p   { margin-top: 0.2em; font-size: var(--font-xs); font-weight: 600; color: var(--text-3); }
.playerCard img {align-self:center; border: 1px solid rgba(0,0,0,0.15); width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }

.playerPositionTag { margin-bottom: 0.5em; text-transform: capitalize; text-align: center; width: 80%; background-color: red; color: #FFF; padding: 0.2em 1em; border-radius: 10px; font-size: var(--font-xs); font-weight: 600; }
.playerPositionTag[data-position="Arquero"]      { background-color: #D3A314; }
.playerPositionTag[data-position="Defensor"]     { background-color: #2563EB; }
.playerPositionTag[data-position="Delantero"]    { background-color: #DC2626; }
.playerPositionTag[data-position="Mediocampista"]{ background-color: #16A34A; }

/* ── PLAYER REGISTER FORM ───────────────────────────────── */
.playerRegister { display: flex; flex-direction: column; gap: 2.5em; width: 50%; margin: 0 auto; padding: 1.25em; }
.playerRegister .genderGroup { display: flex; flex-direction: row; }
.playerRegister .genderGroup input[type="radio"] { width: 25%; }
.playerRegister .dataGroup { width: 15%; }
.genderSelect { width: 20%; }
.genderSelect label { position: relative; left: 0; top: -0.1em; }
.genderGroup { margin-top: 1em; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.genderGroup label { position: absolute; top: -1.8em; }
.dataGroup { width: 20%; display: flex; flex-direction: row; }
.dataGroup span { width: 30%; font-size: var(--font-sm); }
.playerData { min-width: 70%; font-size: var(--font-sm); }
.playerData h4 { font-size: var(--font-sm); font-weight: 700; color: var(--text-1); border-bottom: 1px solid var(--border); }
.playerData p  { text-transform: capitalize; }
.playerDataLeft { width: 100%; display: flex; flex-direction: column; gap: 2em; }
.playerDataLeft input[type="date"] { width: 100%; }
.playerDataLeft label { font-size: var(--font-sm); font-weight: 600; color: var(--text-2); }
.playerDataLeft input[type="radio"] { width: 20%; }
.topPlayerInfo    { width: 100%; display: flex; flex-direction: column; gap: 2em; }
.bottomPlayerInfo label { border-bottom: 1px solid var(--border); }
.footSelectDiv label { border-bottom: none; }
.midData { width: 100%; display: flex; flex-direction: row; gap: 1em; }
.playerContactData { width: 50%; }
h5 { width: 100%; padding-top: 0.8em; }
.addTutor { display: flex; flex-direction: column; gap: 1em; }
#playerAge { font-size: var(--font-sm); }

/* Sibling/Tutor toggle */
#tutorSwitchDiv, #siblingsSwitchDiv { position: relative; background-color: #bbb; border-radius: 20px; width: 25%; display: flex; gap: 0.3em; font-size: 17px; padding: 0.2em; transition: background-color var(--t-slow); box-shadow: var(--shadow-sm); }
#tutorSwitchDiv.active, #siblingsSwitchDiv.active { background-color: var(--success); }
#tutorSlider, #siblingsSlider { position: absolute; width: 25px; height: 25px; background-color: #ddd; border-radius: 20px; cursor: pointer; top: 50%; left: 25%; transform: translate(-40%,-50%); transition: all var(--t-normal); box-shadow: var(--shadow-sm); }
#tutorSwitchDiv label, #siblingsSwitchDiv label { flex: 1; text-align: center; line-height: 30px; color: var(--whiteText); }
#tutorSlider.active, #siblingsSlider.active { transform: translate(70%, -50%); }
.siblingSearch { display: flex; flex-direction: row; gap: 1em; }
.siblingSearch input[type="text"] { display: none; flex: 1; padding: 0.4em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: var(--font-sm); color: var(--text-1); background: var(--bg-card); }
.siblingsConfirm { display: none; transition: all var(--t-normal); }
.siblingsConfirm.active { display: flex; flex-direction: column; }
#contactData { width: 100%; display: flex; flex-direction: column; gap: 2em; }

/* Foot selector */
.footSelectDiv { margin-top: 1em; display: flex; flex-direction: row; gap: 0.1em; justify-content: flex-start; }
.footSelectDiv label { cursor: pointer; }
.footSelectDiv img { transition: all var(--t-normal); filter: grayscale(1); width: 60px; height: 60px; }
.footSelectDiv input[type="checkbox"]:checked + label img { filter: none; }

/* Photo upload */
.photoUploadContainer { position: relative; display: flex; justify-content: center; align-items: center; }
.photoOverlay { position: absolute; width: 200px; height: 200px; border-radius: 50%; background-color: rgba(0,0,0,0.8); display: flex; gap: 0.5em; justify-content: center; align-items: center; color: var(--whiteText); font-size: var(--font-sm); opacity: 0; transition: opacity var(--t-normal); text-align: center; padding: 0.5em; }
.photoOverlay img { padding: 0.3em; width: 50px; height: 50px; border-radius: var(--radius); background-color: var(--success); }
.photoOverlay img:hover { background-color: #15803d; }
.photoOverlay:hover { cursor: pointer; opacity: 1; }
#playerPhotoPreview { cursor: pointer; padding: 0.2em; align-self: center; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 2px dashed var(--border-dark); }

/* ── DIVISION / COMPETITION ─────────────────────────────── */
.divisionSelector, .affiliationSelector { margin-top: 2em; width: 100%; display: flex; flex-direction: column; gap: 1em; }
.divisionSelector select, .affiliationSelector select { text-transform: capitalize; width: 50%; padding: 0.4em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: var(--font-sm); font-weight: 600; }
#competitionRegister { margin-top: 2em; width: 50%; display: flex; flex-direction: column; gap: 1em; }
#competitionRegister select, #competitionRegister input { width: 100%; padding: 0.4em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: var(--font-sm); font-weight: 600; }
.competitionData { position: relative; display: flex; flex-direction: row; gap: 1em; margin-top: 2em; }
.competitionDataCard { padding: 1.25em; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); width: 100%; display: flex; flex-direction: column; gap: 1em; background: var(--bg-card); }
.competitionDataGroup { width: 50%; position: relative; display: flex; flex-direction: column; gap: 0.5em; }
.competitionDataGroup label { position: absolute; left: 0.1em; top: -2em; font-size: var(--font-xs); font-weight: 600; color: var(--text-3); }
.participatingDivisions { display: flex; flex-direction: column; gap: 1em; }
.participatingDivisionsCheckboxes { display: flex; flex-direction: row; gap: 1em; flex-wrap: wrap; }
.checkboxGroup label { background-color: #ccc; color: var(--whiteText); padding: 0.3em 0.8em; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--t-fast); font-weight: 600; font-size: 0.9em; }
.checkboxGroup label.active { background-color: var(--success); }
.divisionInfoContainer { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1em; }
.divisionInfoCard { flex-basis: 30%; max-width: 33%; display: flex; flex-direction: column; padding: 1em; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--bg-card); }
.divisionInfoCard h2 { border-bottom: 1px solid var(--border); font-size: var(--font-md); margin-bottom: 0.5em; }
.divisionInfoCard p  { font-size: var(--font-xs); font-weight: 500; color: var(--text-3); }
.divisionInfoCardLeft { flex-direction: column; display: flex; width: 100%; gap: 0.7em; }
.divisionInfoCard .saveChangesBtn { margin-top: 1em; }
.divisionFilters { display: flex; flex-direction: row; gap: 0.5em; width: 25%; }
.divisionFilters button { flex-grow: 1; padding: 0.5em 0.8em; border-radius: var(--radius-sm); border: none; background-color: #a1a1a1; color: var(--whiteText); font-size: var(--font-sm); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); transition: all var(--t-fast); }
.divisionFilters button:hover { background-color: var(--mainColorHover); }

/* ── TRAINING FORMS ─────────────────────────────────────── */
.trainingForm { display: flex; flex-direction: row; gap: 1em; width: 100%; margin: 2em auto 0; padding: 1em; justify-content: center; }
.trainingForm .formGroup { position: relative; }
.trainingForm label { position: absolute; left: 0.3em; top: -2em; font-size: var(--font-xs); font-weight: 500; color: var(--text-4); }
.trainingForm input, .trainingForm select, .trainingForm textarea { text-transform: capitalize; width: 100%; padding: 0.75em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: var(--font-sm); color: var(--text-1); background: var(--bg-card); outline: none; }
.trainingForm input:focus, .trainingForm select:focus { border-color: var(--mainColor); }
.trainingRegisterCard, .trainingSessionCard { padding: 1.25em; }
.trainingRegisterCard h3 { font-size: var(--font-md); font-weight: 700; color: var(--text-1); border-bottom: 1px solid var(--border); margin-bottom: 0.75em; }
.trainingSessionCardData { margin-top: 1em; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5em; width: 100%; margin-bottom: 0.5em; justify-content: center; }
.playerTrainingCard { text-transform: capitalize; user-select: none; width: 16%; padding: 0.5em; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: row; align-items: center; justify-content: space-evenly; cursor: pointer; background: var(--bg-card); transition: all var(--t-fast); }
.playerTrainingCard:hover { background: var(--bg-hover); box-shadow: var(--shadow); }
.playerTrainingCard.selected { background-color: var(--success); color: var(--whiteText); }
.playerTrainingCard.selected:hover { background-color: #15803d; }
.playerTrainingCard.selected span { color: var(--whiteText); }
.playerTrainingCard img  { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.playerTrainingCard span { font-size: var(--font-xs); font-weight: 600; color: var(--text-2); }
.attendanceTag { color: #fff; padding: 0.5em; border-radius: 10px; width: 20px; height: 20px; cursor: pointer; background-color: var(--success); transition: all var(--t-fast); }
.trainingRegister { margin-top: 2em; width: 100%; display: flex; flex-direction: column; gap: 1em; }

/* ── MATCH FORM ─────────────────────────────────────────── */
.matchForm { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2em; width: 90%; margin: 2em auto 0; padding: 1em; justify-content: center; }
.matchForm .formGroup { width: 40%; position: relative; display: flex; flex-direction: column; gap: 0.5em; }
.matchForm label { position: absolute; left: 0.3em; top: -2em; font-size: var(--font-xs); font-weight: 500; color: var(--text-4); }
.matchForm input, .matchForm select { text-transform: capitalize; width: 100%; padding: 0.75em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: var(--font-sm); color: var(--text-1); background: var(--bg-card); outline: none; }
.matchForm input:focus, .matchForm select:focus { border-color: var(--mainColor); }
#matchRegisterBtn { align-self: center; width: 20%; }

/* Score */
.condicion { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: 240px; height: 40px; background: #f1f1f4; border-radius: 999px; padding: 5px; margin-bottom: 1em; align-self:center;}
.condicion input { display: none; }
.condicion label { z-index: 2; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 600; color: #777; }
.slider { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: 30px; border-radius: 999px; background: var(--success); box-shadow: var(--shadow-sm); transition: 0.25s; }
#visitante:checked ~ .slider { transform: translateX(100%); }
#local:checked ~ label[for="local"], #visitante:checked ~ label[for="visitante"] { color: #fff; }
.score-box { width: 100%; max-width: 600px; background: var(--bg-hover); border-radius: var(--radius); padding: 1em; border: 1px dashed var(--border-dark); }
.title { font-size: 16px; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.score-container { display: flex; justify-content: center; align-items: center; margin-bottom: 1.5em; gap: 1em; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team span { font-size: var(--font-sm); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; color: var(--text-3); }
.score-input { width: 85px; height: 85px; text-align: center; font-size: 40px; font-weight: 800; border-radius: var(--radius); border: 1.5px solid var(--border); color: var(--text-1); background: white; outline: none; }
.score-input:focus { border-color: var(--mainColor); box-shadow: 0 0 0 3px var(--mainColor10); }
.score-input::-webkit-inner-spin-button,
.score-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stat {
    display: flex;
    gap: 0.5em;
    align-items: center;
    flex-direction: column;
}
.stat input[type="number"] { width: 60px; text-align: center; padding: 6px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); outline: none; }
.stat input[type="number"]:focus { border-color: var(--mainColor); }
.stat input[type="number"]::-webkit-inner-spin-button,
.stat input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── FINANCE RECORDS ────────────────────────────────────── */
.expenseRecord, .incomeRecord { display: flex; align-items: center; justify-content: space-between; padding: 0.75em 1em; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 0.4em; box-shadow: var(--shadow-sm); }
.expenseRecord { border-left: 4px solid var(--danger); }
.incomeRecord  { border-left: 4px solid var(--success); }
.expenseLeft, .incomeLeft   { display: flex; align-items: center; gap: 0.75em; }
.expenseRight, .incomeRight { display: flex; align-items: center; gap: 0.5em; }
.expenseRight img, .incomeRight img { width: 18px; height: 18px; opacity: 0.5; transition: opacity var(--t-fast); cursor: pointer; }
.expenseRight img:hover, .incomeRight img:hover { opacity: 1; }
span.expenseAmount { color: var(--danger);  font-weight: 700; }
span.incomeAmount  { color: var(--success); font-weight: 700; }
.gasto-anulado { opacity: 0.6; }
.gasto-anulado h4, .gasto-anulado .expenseAmount { text-transform: capitalize; text-decoration: line-through; color: var(--text-4); }

/* ── FINANCE REPORTS ────────────────────────────────────── */
.reportCardHeader { background: var(--bg-hover); border-radius: var(--radius) var(--radius) 0 0; width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0.5em 0; }
.reportCardData { background: var(--bg-card); width: 100%; display: flex; flex-direction: row; justify-content: space-between; gap: 1em; padding: 0.5em; border-top: 1px solid var(--border); }
.reportCardData:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.reportCardData h4 { font-size: var(--font-sm); font-weight: 700; color: var(--text-1); width: 33%; text-align: center; border-right: 1px solid var(--border); }
.reportCardData h4:last-child { border-right: none; }
.reportsCard { padding: 1em; }
.reportHeader { width: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: var(--text-1); text-align: center; border-radius: var(--radius) var(--radius) 0 0; }
.reportsContainer { width: 100%; display: flex; flex-direction: column; max-height: 60dvh; overflow-y: auto; }
.reportsContainer::-webkit-scrollbar { display: none; }
.reportData { width: 100%; display: flex; flex-direction: row; padding: 0.5em; text-align: center; cursor: pointer; }
.reportData:has(h4) { cursor: default; }
.reportData h4, .reportData span { font-size: var(--font-xs); font-weight: 700; color: var(--text-1); width: 20%; }
.reportData h4:nth-child(3), .reportData span:nth-child(3) { width: 40%; }
.reportData span:last-child, .reportData h4:last-child { border-right: none; }
.reportData h4    { border-right: 1px solid var(--border); color: var(--whiteText); }
.reportData span  { padding: 0; border-right: 1px solid rgba(4,70,143,0.2); }
.reportsContainer .reportData:nth-child(even) { background: var(--bg-hover); }
.reportsContainer .reportData:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.reportGenerator { display: flex; flex-direction: row; gap: 1em; margin-top: 1em; justify-content: center; }
.reportsCard .reportsCounter { display: flex; justify-content: center; align-items: center; padding: 0.3em 0.8em; width: 100%; border-radius: var(--radius-sm); margin-top: 1em; }
.reportsCard .reportsCounter span { font-size: var(--font-sm); letter-spacing: 0.3px; font-weight: 600; color: var(--text-1); }
.reportsCard .reportsPag { display: flex; justify-content: center; align-items: center; padding: 0.5em 1em; border-radius: var(--radius-sm); }
.reportsCard .reportsPag span { margin: 0.8em; font-size: var(--font-md); font-weight: 900; color: var(--mainColor); }

/* ── PLAYER PROFILE ─────────────────────────────────────── */
.player-profile { display: flex; flex-direction: column; gap: 0; width: 100%; }
.player-profile .profile-hero { display: flex; align-items: center; gap: 24px; padding: 24px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--mainColor10), var(--bg-hover)); border-radius: var(--radius) var(--radius) 0 0; }
.player-profile .profile-hero img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mainColor); box-shadow: var(--shadow); }
.player-profile .profile-hero-info h2 { font-size: var(--font-xl); font-weight: 800; color: var(--text-1); text-transform: capitalize; }
.player-profile .profile-hero-info p  { font-size: var(--font-sm); color: var(--text-3); margin-top: 0.2em; }
.player-profile .profile-tabs { display: flex; border-bottom: 2px solid var(--border); padding: 0 16px; background: var(--bg-card); }
.player-profile .profile-tabs .tab { padding: 14px 20px; font-size: var(--font-sm); font-weight: 600; cursor: pointer; color: var(--text-3); border: none; background: none; position: relative; white-space: nowrap; transition: color var(--t-fast); }
.player-profile .profile-tabs .tab::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--mainColor); transform: scaleX(0); transition: transform var(--t-normal); }
.player-profile .profile-tabs .tab:hover  { }
.player-profile .profile-tabs .tab.active { }
.player-profile .profile-tabs .tab.active::after { transform: scaleX(1); }
.player-profile > .profile-content { min-height: 500px; display: block; padding: 24px; }
.player-profile .profile-content .block { margin-bottom: 32px; }
.player-profile .profile-content .block > h3 { margin: 0 0 16px; font-size: var(--font-md); font-weight: 600; color: var(--text-1); }
.player-profile .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 16px; margin-bottom: 2em; }
.player-profile .stats-grid .stat-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); text-transform: capitalize; box-shadow: var(--shadow-sm); }
.player-profile .stats-grid .stat-card label  { display: block; font-size: var(--font-xs); color: var(--text-3); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.player-profile .stats-grid .stat-card strong { max-width: 70%; font-size: var(--font-sm); font-weight: 600; text-wrap-mode: wrap; text-overflow: ellipsis; }
.player-profile .stats-grid .stat-card #playerEmail, .player-profile .stats-grid .stat-card #tutorEmail { font-size: var(--font-xs); white-space: nowrap; }
.player-profile .chips { align-self: center; max-height: 150px; justify-content: center; display: flex; flex-wrap: wrap; flex-direction: column; gap: 8px; }
.player-profile .chips .chip { padding: 6px 10px; font-size: 12px; border-radius: var(--radius-sm); background-color: var(--bg-hover); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; }
.player-profile .chips .chip.primary { background-color: var(--info); color: #fff; border-color: transparent; }
.player-profile .performance-table { width: 100%; border-collapse: collapse; }
.player-profile .performance-table thead th { text-align: left; font-size: 13px; font-weight: 600; padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-2); background: var(--bg-hover); }
.player-profile .performance-table tbody td { padding: 12px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.player-profile .performance-table tbody tr:hover td { background: var(--mainColor10); }
.player-profile > .profile-footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.player-profile .profile-footer .btn { padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); font-size: var(--font-sm); font-weight: 600; cursor: pointer; }
.player-profile .profile-footer .btn.primary { background: var(--info); color: #fff; border: none; }

/* ── FIELD POSITION SELECTOR ────────────────────────────── */
.block .fieldContainer { position: relative; width: 35%; margin-top: 16px; aspect-ratio: 3 / 4; }
.block .fieldContainer > #positionSelectImg { width: 110%; height: 90%; object-fit: contain; border-radius: var(--radius); display: block; }
.block .fieldContainer .listDiv { position: absolute; inset: 0; pointer-events: none; }
.block .fieldContainer .listDiv > div { position: absolute; opacity: 0; transition: opacity 0.25s ease; }
.block .fieldContainer .exi  { opacity: 1; top: 5%;  left: 12%;   width: 25%; height: 28%; background: rgba(220,38,38,0.75); }
.block .fieldContainer .exd  {             top: 5%;  left: 72%;   width: 25%; height: 28%; background: rgba(220,38,38,0.75); }
.block .fieldContainer .dc   {             top: 5%;  left: 37%;   width: 35%; height: 14%; background: rgba(220,38,38,0.75); }
.block .fieldContainer .sd   {             top: 19%; left: 37%;   width: 35%; height: 14%; background: rgba(220,38,38,0.75); }
.block .fieldContainer .mo   {             top: 33%; left: 37%;   width: 35%; height: 9%;  background: rgba(22,163,74,0.75); }
.block .fieldContainer .mc   {             top: 42%; left: 37%;   width: 35%; height: 10%; background: rgba(22,163,74,0.75); }
.block .fieldContainer .mi   {             top: 33%; left: 12%;   width: 25%; height: 28%; background: rgba(22,163,74,0.75); }
.block .fieldContainer .md   {             top: 33%; left: 72%;   width: 25%; height: 28%; background: rgba(22,163,74,0.75); }
.block .fieldContainer .mcd  {             top: 52%; left: 37%;   width: 35%; height: 9%;  background: rgba(22,163,74,0.75); }
.block .fieldContainer .li   {             top: 61%; left: 12%;   width: 25%; height: 24%; background: rgba(37,99,235,0.75); }
.block .fieldContainer .df   {             top: 61%; left: 37%;   width: 35%; height: 15%; background: rgba(37,99,235,0.75); }
.block .fieldContainer .ld   {             top: 61%; left: 72%;   width: 25%; height: 24%; background: rgba(37,99,235,0.75); }
.block .fieldContainer .gk   {             top: 75%; left: 36.5%; width: 37%; height: 10%; background: rgba(211,163,20,0.8); }
section.block:has(.fieldContainer) { display: flex; flex-direction: column; align-items: center; }
.positionsSection { display: flex; flex-direction: row; justify-content: center; gap: 2em; }

/* ── PLAYER FINANCE TABLE ───────────────────────────────── */
.player-finance.card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; margin-top: 16px; font-size: 13px; }
.player-finance .titleHeader { padding: 12px 16px; background: var(--text-1); }
.player-finance .cardTitle   { color: #fff; font-size: 14px; font-weight: 600; }
.player-finance .dataHeader,
.player-finance .dataContent { display: grid; grid-template-columns: 1fr 2fr 1fr 1fr 1fr; align-items: center; }
.player-finance .dataHeader  { border-radius: var(--radius) var(--radius) 0 0; background: #111; color: #fff; font-weight: 600; padding: 10px 12px; }
.player-finance .dataHeader span { display: flex; justify-content: center; justify-self: center; color: var(--whiteText); font-size: var(--font-xs); }
.player-finance .dataBody    { display: flex; flex-direction: column; }
.player-finance .dataContent { padding: 10px 16px; background: var(--bg-hover); border-top: 1px solid var(--border); }
.player-finance .dataContent:nth-child(even) { background: var(--bg-card); }
.player-finance .dataContent:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.player-finance .dataContent span { color: var(--text-2); font-size: var(--font-xs); display: flex; justify-content: center; justify-self: center; }
.player-finance .dataBody .dataContent:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.player-finance .estado { text-transform: capitalize; font-weight: 600; }
.player-finance .estado.tag-pendiente { color: var(--danger); }
.player-finance .estado.tag-pagado    { color: var(--success); }
.player-finance .estado.tag-parcial   { color: var(--warning); }
.charges-list { margin-bottom: 2em; }
.player-finance .acciones { display: flex; justify-content: center; }
.player-finance .acciones button { padding: 6px 12px; border-radius: var(--radius-sm); border: none; background: var(--info); color: #fff; cursor: pointer; font-size: 13px; }
.player-finance .acciones-header { text-align: center; }

/* ── PAGO DIALOG ────────────────────────────────────────── */
.pago-form   { display: flex; flex-direction: column; font-family: inherit; }
.pago-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.pago-header h3 { margin: 0; font-size: var(--font-md); font-weight: 700; }
.close-btn       { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-3); }
.close-btn:hover { color: var(--text-1); }
.pago-body   { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.pago-info   { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.pago-info label  { font-size: 12px; color: var(--text-3); }
.pago-info strong { font-size: 14px; font-weight: 700; }
.pago-monto  { display: flex; flex-direction: column; gap: 8px; }
.pago-monto input { padding: 8px; font-size: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.pago-monto input:focus { border-color: var(--mainColor); }
.pago-opciones { justify-content: center; display: flex; gap: 8px; }
.btn-opcion { padding: 6px 10px; font-size: 12px; cursor: pointer; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-2); font-weight: 600; transition: all var(--t-fast); }
.btn-opcion:hover { background: var(--mainColor10); border-color: var(--mainColor); color: var(--mainColor); }
.pago-extra  { display: flex; flex-direction: column; gap: 8px; }
.pago-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75em; }
.pago-footer .btn-confirm { padding: 0.5em 1.2em; border-radius: var(--radius-sm); border: none; background: var(--info); color: #fff; font-size: var(--font-sm); font-weight: 600; cursor: pointer; transition: background var(--t-fast); box-shadow: var(--shadow-sm); }
.pago-footer .btn-confirm:hover { background: #1d4ed8; }

/* ── ACCOUNT STATUS ─────────────────────────────────────── */
.account-status-card  { display: flex; flex-direction: column; gap: 0.5em; align-items: flex-start; padding: 1.5em; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.account-status-label { font-size: 1.1em; color: var(--text-3); margin-bottom: 5px; }
.account-status-value { font-size: 1.2em; margin-bottom: 5px; font-weight: 700; color: var(--text-1); }
.account-amount-value { font-size: 2em; font-weight: 800; color: var(--text-1); }
.btn-ingreso-manual   { margin-top: 15px; width: auto; padding: 8px 24px; font-size: 0.9em; }

/* Badges */
/* Estilos para chips de selección de categorías en torneos */
.category-chip {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-2);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-sm);
    transition: all 0.2s ease;
    user-select: none;
}

.category-chip:hover {
    background: var(--bg-hover);
    border-color: var(--border-dark);
}

.category-chip.selected {
    background: var(--mainColor);
    color: var(--whiteText);
    border-color: var(--mainColor);
}

.category-chip .category-gender {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.category-chip:not(.selected) .category-gender {
    color: var(--text-3);
}

/* Estilos para chips de módulos de actividad */
.log-module {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Colores por módulo */
.log-module[data-module="JUGADORES"]     { background: #dcfce7; color: #166534; }
.log-module[data-module="CLUB"]          { background: #fef3c7; color: #92400e; }
.log-module[data-module="ENCUENTROS"]    { background: #fda4af; color: #be123c; }
.log-module[data-module="AUTH"]          { background: #e0e7ff; color: #3730a3; }
.log-module[data-module="ENTRENAMIENTOS"] { background: #d1fae5; color: #047857; }
.log-module[data-module="GASTOS"]        { background: #fee2e2; color: #dc2626; }
.log-module[data-module="FINANZAS"]      { background: #dbeafe; color: #1d4ed8; }
.log-module[data-module="CATEGORIAS"]    { background: #fef9c3; color: #a16207; }
.log-module[data-module="STAFF"]         { background: #f3e8ff; color: #7c3aed; }
.log-module[data-module="TORNEOS"]       { background: #fed7aa; color: #c2410c; }
.log-module[data-module="TEMPORADAS"]    { background: #ecfdf5; color: #059669; }
.log-module[data-module="USUARIOS"]      { background: #f1f5f9; color: #475569; }

.badge-green  { background: var(--success-bg); color: var(--success); }
.badge-red    { background: var(--danger-bg);  color: var(--danger); }
.badge-yellow { background: var(--warning-bg); color: var(--warning); }
.badge-blue   { background: var(--info-bg);    color: var(--info); }
.badge-gray   { background: var(--bg-hover);   color: var(--text-3); }

/* Historial */
.etiqueta-acreditado { color: var(--success); font-weight: 700; }
.etiqueta-anulado    { color: var(--danger);  font-weight: 700; }
.row-anulado         { opacity: 0.6; background-color: #fef2f2; }

/* ── GASTOS MODULE ──────────────────────────────────────── */
#modulo-gastos .expensesContainer, #modulo-cargos .expensesContainer { display: flex; flex-direction: column; width: 100%; margin-top: 10px; }
#modulo-gastos .addExpenseCard, #modulo-cargos .addExpenseCard { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 20px 25px; margin-bottom: 20px; }
#modulo-gastos .addExpenseCard h3, #modulo-cargos .addExpenseCard h3 { font-size: var(--font-md); color: var(--text-1); margin-bottom: 20px; font-weight: 600; }
#modulo-gastos .expenseFormGrid, #modulo-cargos .expenseFormGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 10px; }
#modulo-gastos .formGroupGastos, #modulo-cargos .formGroupGastos { display: flex; flex-direction: column; justify-content: flex-end; }
#modulo-gastos .formGroupGastos label, #modulo-cargos .formGroupGastos label { order: -1; font-size: var(--font-xs); font-weight: 600; color: var(--text-3); margin-bottom: 6px; position: static; text-transform: uppercase; letter-spacing: 0.4px; }
#modulo-gastos .formGroupGastos input, #modulo-cargos .formGroupGastos input,
#modulo-gastos .formGroupGastos select, #modulo-cargos .formGroupGastos select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: var(--font-sm); color: var(--text-1); background: var(--bg-card); outline: none; transition: border-color var(--t-fast); box-sizing: border-box; margin: 0; height: auto; }
#modulo-gastos .formGroupGastos input:focus, #modulo-cargos .formGroupGastos input:focus,
#modulo-gastos .formGroupGastos select:focus, #modulo-cargos .formGroupGastos select:focus { border-color: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
#modulo-gastos .expenseActions, #modulo-cargos .expenseActions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 15px; }
#modulo-gastos .checkboxConfidencial, #modulo-cargos .checkboxConfidencial { display: flex; align-items: center; gap: 8px; }
#modulo-gastos .checkboxConfidencial input[type="checkbox"], #modulo-cargos .checkboxConfidencial input[type="checkbox"] { display: block; width: 16px; height: 16px; cursor: pointer; margin: 0; }
#modulo-gastos .checkboxConfidencial label, #modulo-cargos .checkboxConfidencial label { font-size: var(--font-sm); font-weight: 600; color: var(--danger); cursor: pointer; margin: 0; }
#modulo-gastos .btnPrimaryGasto, #modulo-cargos .btnPrimaryGasto { display: flex; align-items: center; gap: 8px; background: var(--success); color: white; padding: 10px 20px; border: none; border-radius: var(--radius-sm); font-size: var(--font-sm); font-weight: 600; cursor: pointer; transition: background var(--t-fast); }
#modulo-gastos .btnPrimaryGasto:hover, #modulo-cargos .btnPrimaryGasto:hover { background: #059669; }
#modulo-gastos .btnPrimaryGasto img, #modulo-cargos .btnPrimaryGasto img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
#modulo-gastos .listSectionGastos h3, #modulo-cargos .listSectionGastos h3 { font-size: var(--font-md); color: var(--text-1); margin: 10px 0 15px; font-weight: 600; }

/* ── CARGOS — Chips de selección ─────────────────────────────── */
#modulo-cargos .cargoSectionLabel { font-size: var(--font-xs); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 8px; }
#modulo-cargos .cargoChipsContainer { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#modulo-cargos .cargoChipsContainer input[type="checkbox"] { display: none; }
#modulo-cargos .cargoChip { padding: 5px 13px; border-radius: var(--radius-sm); font-size: var(--font-xs); font-weight: 700; cursor: pointer; user-select: none; background: rgba(139,92,246,0.12); color: #6d28d9; border: 1.5px solid rgba(139,92,246,0.3); transition: all var(--t-fast); }
#modulo-cargos .cargoChipsContainer input[type="checkbox"]:checked + .cargoChip { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
#modulo-cargos .cargoAlcanceOptions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
#modulo-cargos .cargoAlcanceOptions input[type="radio"] { display: none; }
#modulo-cargos .cargoAlcanceChip { padding: 5px 13px; border-radius: var(--radius-sm); font-size: var(--font-xs); font-weight: 600; cursor: pointer; user-select: none; background: rgba(37,99,235,0.10); color: #1d4ed8; border: 1.5px solid rgba(37,99,235,0.25); transition: all var(--t-fast); }
#modulo-cargos .cargoAlcanceOptions input[type="radio"]:checked + .cargoAlcanceChip { background: #2563eb; color: #fff; border-color: #2563eb; }
#modulo-cargos #cargoJugadoresCatChips .cargoChip { background: rgba(16,185,129,0.10); color: #065f46; border-color: rgba(16,185,129,0.3); }
#modulo-cargos #cargoJugadoresCatChips input[type="checkbox"]:checked + .cargoChip { background: #10b981; color: #fff; border-color: #10b981; }
#modulo-cargos .cargoSubSection { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }

/* ── STAFF PROFILE ──────────────────────────────────────── */
.staff-profile { display: flex; flex-direction: column; width: 100%; }
.staff-profile .profile-hero { display: flex; align-items: center; gap: 24px; padding: 24px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--mainColor10), var(--bg-hover)); border-radius: var(--radius) var(--radius) 0 0; }
.staff-profile .profile-hero img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mainColor); box-shadow: var(--shadow); }
.staff-profile .profile-hero-info h2 { font-size: var(--font-xl); font-weight: 800; color: var(--text-1); text-transform: capitalize; }
.staff-profile .profile-hero-info p  { font-size: var(--font-sm); color: var(--text-3); }
.staff-profile .profile-tabs { display: flex; border-bottom: 2px solid var(--border); padding: 0 16px; background: var(--bg-card); }
.staff-profile .profile-tabs .tab { padding: 14px 20px; font-size: var(--font-sm); font-weight: 600; cursor: pointer; color: var(--text-3); border: none; background: none; position: relative; white-space: nowrap; transition: color var(--t-fast); }
.staff-profile .profile-tabs .tab::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--mainColor); transform: scaleX(0); transition: transform var(--t-normal); }
.staff-profile .profile-tabs .tab:hover  { color: var(--mainColor); }
.staff-profile .profile-tabs .tab.active { color: var(--mainColor); }
.staff-profile .profile-tabs .tab.active::after { transform: scaleX(1); }
.staff-profile .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 16px; margin-bottom: 2em; }
.staff-profile .stats-grid .stat-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.staff-profile .stats-grid .stat-card label  { display: block; font-size: var(--font-xs); color: var(--text-3); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.staff-profile .stats-grid .stat-card strong { font-size: var(--font-sm); font-weight: 600; text-transform: capitalize; }
.staff-profile .profile-content { min-height: 400px; padding: 24px; display: block; }
.staff-profile .profile-content .block { margin-bottom: 24px; }
.staff-profile .profile-content .block > h3 { margin: 0 0 12px; font-size: var(--font-md); font-weight: 600; color: var(--text-1); }
.staff-profile .profile-footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── PERMISSIONS ────────────────────────────────────────── */
.perm-header-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.perm-btn-edit   { background: #6366f1; color: white; padding: 5px 12px; font-size: var(--font-xs); border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.perm-empty-msg  { font-size: var(--font-sm); color: var(--text-3); }
.perm-display-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-badge { background: #e0e7ff; color: #3730a3; padding: 4px 10px; border-radius: 12px; font-size: var(--font-xs); font-weight: 600; }
.perm-edit-section { display: none; margin-top: 15px; }
.perm-module-title { margin: 20px 0 10px; color: var(--text-2); font-size: var(--font-md); border-bottom: 2px solid var(--border); padding-bottom: 5px; font-weight: 700; }
.perm-actions { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: 15px; margin-top: 15px; }
.perm-btn-cancel { background: var(--bg-hover); color: var(--text-2); border: none; padding: 8px 15px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.ui-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 10px 0; }
.ui-perm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; position: relative; transition: all var(--t-fast); display: flex; flex-direction: column; gap: 6px; user-select: none; }
.ui-perm-card:hover  { border-color: var(--border-dark); box-shadow: var(--shadow); }
.ui-perm-card.active { border-color: var(--success); background: var(--success-bg); box-shadow: 0 0 0 1px var(--success); }
.ui-perm-tag { display: inline-block; padding: 3px 8px; border-radius: var(--radius-sm); font-size: var(--font-xs); font-weight: 700; color: #fff; width: max-content; text-transform: uppercase; }
.ui-perm-tag.primary { background: var(--info); }
.ui-perm-tag.success { background: var(--success); }
.ui-perm-tag.warning { background: var(--warning); }
.ui-perm-tag.danger  { background: var(--danger); }
.ui-perm-title    { font-size: var(--font-sm); font-weight: 700; color: var(--text-1); margin: 0; }
.ui-perm-desc     { font-size: var(--font-xs); color: var(--text-3); margin: 0; line-height: 1.3; }
.ui-perm-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }

/* ── MICLUB HISTORY GRID ────────────────────────────────── */
div.miclub-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 10px 0; width: 100%; align-items: start; }
div.miclub-grid-container div.miclub-card-base { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 12px; border-left-width: 4px; border-left-style: solid; margin: 0; }
div.miclub-grid-container div.miclub-borde-azul     { border-left-color: #3182ce; }
div.miclub-grid-container div.miclub-borde-verde    { border-left-color: var(--success); }
div.miclub-grid-container div.miclub-borde-rojo     { border-left-color: var(--danger); }
div.miclub-grid-container div.miclub-borde-amarillo { border-left-color: var(--warning); }
div.miclub-grid-container div.miclub-card-header   { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
div.miclub-grid-container h3.miclub-title-small    { font-size: 1.1rem; font-weight: 800; color: var(--text-1); margin: 0; line-height: 1.2; padding: 0; align-self: flex-start; }
div.miclub-grid-container span.miclub-tag-torneo   { display: inline-block; font-size: var(--font-xs); font-weight: 700; color: var(--text-3); background: var(--bg-hover); padding: 2px 6px; border-radius: var(--radius-sm); margin: 0 0 4px; text-transform: uppercase; align-self: flex-start; }
div.miclub-grid-container div.miclub-date-small    { font-size: var(--font-xs); font-weight: 600; color: var(--text-4); display: flex; align-items: center; gap: 4px; }
div.miclub-grid-container div.miclub-grey-infobox  { background: var(--bg-hover); border-radius: var(--radius-sm); padding: 12px; display: flex; justify-content: space-around; align-items: center; text-align: center; width: 100%; }
div.miclub-grid-container div.miclub-info-col      { display: flex; flex-direction: column; gap: 2px; align-items: center; }
div.miclub-grid-container span.miclub-info-label   { font-size: var(--font-xs); font-weight: 700; color: var(--text-3); text-transform: uppercase; padding: 0; margin: 0; align-self: auto; }
div.miclub-grid-container div.miclub-info-value    { font-size: 1rem; font-weight: 800; color: var(--text-1); }
div.miclub-grid-container span.miclub-info-subvalue{ font-size: 0.8rem; color: var(--text-4); font-weight: 600; padding: 0; margin: 0; align-self: auto; }
div.miclub-grid-container div.miclub-pct-verde     { color: var(--success); }
div.miclub-grid-container div.miclub-pct-rojo      { color: var(--danger); }
div.miclub-grid-container div.miclub-pct-naranja   { color: var(--warning); }
div.miclub-grid-container div.miclub-match-layout  { justify-content: space-between; padding: 10px 12px; }
div.miclub-grid-container span.miclub-team-name    { text-transform: uppercase; font-size: var(--font-sm); font-weight: 700; color: var(--text-2); flex: 1; text-align: center; padding: 0; margin: 0; align-self: center; }
div.miclub-grid-container div.miclub-score-box-dark{ background: var(--text-1); color: white; font-weight: 800; font-size: 0.9rem; padding: 6px 12px; border-radius: var(--radius-sm); margin: 0 8px; align-self: center; }
div.miclub-grid-container button.miclub-btn-light-blue { width: 100%; background: #ebf8ff; color: #2b6cb0; border: 1px solid #bee3f8; padding: 8px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--font-xs); cursor: pointer; transition: all var(--t-fast); display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: auto; }
div.miclub-grid-container button.miclub-btn-light-blue:hover { background: #bee3f8; color: #1a365d; }

/* ── BILLING CONFIG ─────────────────────────────────────── */
.genderAndAgeContainer { display: flex; flex-direction: row; justify-content: space-between; margin-top: 20px; align-items: flex-start; }
.gender-section, .age-section { display: flex; flex-direction: column; }
.genderAndAgeContainer h3 { margin-top: 0 !important; margin-bottom: 10px; }
.ageRangeContainer { display: flex; gap: 15px; align-items: center; }
.ageInputGroup { display: flex; align-items: center; gap: 5px; }
.ageInputGroup label { font-size: 14px; font-weight: 500; color: var(--text-3); }
.ageInputGroup input[type="number"] { text-align: center; width: 60px; padding: 6px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; font-weight: 600; }
.ageInputGroup input[type="number"]:focus { border-color: var(--mainColor); }
.ageInputGroup input[type="number"]::-webkit-inner-spin-button,
.ageInputGroup input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── TINDER ATTENDANCE (MOBILE) ─────────────────────────── */
#tinder-viewport { position: fixed; inset: 0; background: #111827; display: flex; flex-direction: column; z-index: 99999; font-family: system-ui, sans-serif; color: white; }
.tinder-hidden { display: none !important; }
.tinder-header { padding: 20px; text-align: center; border-bottom: 1px solid #374151; }
.tinder-header h2 { margin: 0 0 5px; font-size: 1.5rem; color: #60a5fa; }
.tinder-header p  { margin: 0; font-size: 0.9rem; color: #9ca3af; }
#tinder-card-container { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tinder-card { width: 85%; max-width: 320px; height: 450px; background: #1f2937; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; position: absolute; will-change: transform; transition: transform 0.2s ease-out; touch-action: none; }
.t-photo-wrapper { height: 70%; width: 100%; background: #374151; }
.t-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.t-info { height: 30%; padding: 20px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.t-info h3 { margin: 0; font-size: 1.5rem; color: white; }
.tinder-actions { padding: 20px; display: flex; justify-content: space-around; padding-bottom: 40px; }
.t-btn { width: 70px; height: 70px; border-radius: 50%; border: none; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.1s; }
.t-btn:active { transform: scale(0.9); }
.btn-no  { background: var(--danger);  color: white; }
.btn-yes { background: var(--success); color: white; }
.swipe-left-anim  { transform: translateX(-150%) rotate(-20deg) !important; opacity: 0; transition: 0.4s ease-in; }
.swipe-right-anim { transform: translateX(150%)  rotate(20deg)  !important; opacity: 0; transition: 0.4s ease-in; }

/* ── MISC ───────────────────────────────────────────────── */
#adminDiv { display: none; width: 100%; padding: 1em; }

/* ── MOBILE MODE ────────────────────────────────────────── */
@media screen and (max-width: 800px) {
    .desktop-only { display: none !important; }
    .mobile-only  { display: flex !important; }

    main    { margin: 0; }
    #mainDiv { width: 100%; min-height: 100vh; border-radius: 0; box-shadow: none; background-color: var(--bg-app); }
    .header { border-radius: 0; border: none; }

    .mobileHeader {
        width: 100%; padding: 0.8em 1em;
        justify-content: space-between; align-items: center;
        background: linear-gradient(135deg, var(--mainColor), var(--mainColorHoverDark));
        position: fixed; top: 0; left: 0; z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .m-left .m-logo { height: 40px; }
    .m-right { display: flex; align-items: center; gap: 10px; }
    #m-Username    { color: var(--whiteText); font-weight: 600; font-size: var(--font-sm); }
    .m-profile-img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
    .m-logout-btn  { background: rgba(255,255,255,0.2); color: white; border: none; padding: 5px 10px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }

    .mobileNavBar { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; box-shadow: 0 -2px 15px rgba(0,0,0,0.1); z-index: 1000; border-top: 1px solid var(--border); }
    .mobileMenu  { width: 100%; justify-content: space-around; padding: 10px 0; list-style: none; display: flex; }
    .mobile-item { display: flex; flex-direction: column; align-items: center; color: var(--darkText); cursor: pointer; }
    .m-icon { font-size: 1.5rem; margin-bottom: 2px; color: var(--text-3); transition: color var(--t-fast); }
    .m-text { font-size: 0.75rem; font-weight: 600; color: var(--text-3); transition: color var(--t-fast); }
    .mobile-item.active .m-icon { color: var(--mainColor); }
    .mobile-item.active .m-text { color: var(--mainColor); font-weight: 700; }

    #mobileMainContent {
        display: block !important;
        margin-top: 58px;
        width: 100%;
        height: calc(100vh - 115px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1em 1em 120px 1em;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .playerCard, .competitionCard { flex-basis: 45%; max-width: 48%; animation-duration: 0.25s; }
    .statsCards { flex-wrap: wrap; }
    .statsCards .card { flex-basis: 45%; }
    .metricas-principales { grid-template-columns: repeat(2, 1fr); }
    .categorias-grid { grid-template-columns: 1fr; }
    .categoria-stats { grid-template-columns: repeat(2, 1fr); }
    .historial-section { flex-direction: column; align-items: stretch; }
    .historial-section select { max-width: none; }
    .filtros-grid { grid-template-columns: 1fr 1fr; }
    .filtros-grid button { grid-column: span 2; }
    .resumen-grid { grid-template-columns: 1fr; gap: 1em; }
    .tabla-header, .tabla-row { grid-template-columns: 80px 70px 1fr 90px; gap: 0.5em; font-size: 12px; }
    .exportar-buttons { flex-direction: column; }
    .exportar-buttons .btn-export { width: 100%; justify-content: center; }
    .player-profile .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .staff-profile  .stats-grid { grid-template-columns: repeat(2, 1fr); }
    div.miclub-grid-container   { grid-template-columns: repeat(2, 1fr); }
    #modulo-gastos .expenseFormGrid, #modulo-cargos .expenseFormGrid { grid-template-columns: repeat(2, 1fr); }
    .divisionInfoCard { flex-basis: 100%; max-width: 100%; }
    .trainerCard      { flex-basis: 90%; max-width: 100%; }
    dialog            { width: min(95vw, 480px); }
}

/* ============================================================
   PARTIDO EN VIVO — Overlay fullscreen dark (mobile-first)
   ============================================================ */

/* Overlay principal */
.live-match-overlay {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f8fafc;
}

/* Barra superior: cronómetro + botón pausa + botón finalizar */
.live-match-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.live-match-chrono {
    font-size: 2.6rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 2px;
    line-height: 1;
}
.live-match-chrono.paused { color: #94a3b8; }

.live-match-pause-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #f8fafc;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 1rem;
    cursor: pointer;
}
.live-match-fin-btn {
    background: #dc2626;
    border: none;
    color: white;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* Marcador */
.live-match-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.live-match-team-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    max-width: 100px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-match-score {
    font-size: 2.4rem;
    font-weight: 900;
    color: #f8fafc;
    min-width: 80px;
    text-align: center;
    letter-spacing: 4px;
}

/* Log de eventos */
.live-match-log-section {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
}
.live-match-log-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.live-match-log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.live-match-log-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.88rem;
    color: #cbd5e1;
    animation: lm-fadein 0.3s ease;
}
.live-match-log-min {
    color: #64748b;
    font-weight: 700;
    font-size: 0.78rem;
    min-width: 30px;
}

@keyframes lm-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Botones de acción */
.live-match-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.live-match-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 70px;
    min-width: 90px;
    border: none;
    border-radius: 14px;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s, opacity 0.15s;
    color: white;
}
.live-match-action-btn:active { transform: scale(0.94); opacity: 0.85; }
.live-match-action-btn span.lm-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.lm-btn-gol    { background: linear-gradient(135deg, #16a34a, #15803d); }
.lm-btn-tarjeta { background: linear-gradient(135deg, #ca8a04, #a16207); }
.lm-btn-cambio { background: linear-gradient(135deg, #2563eb, #1d4ed8); }

/* Modal de acciones (GOL / TARJETA / CAMBIO) */
.live-match-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: lm-backdropin 0.2s ease;
}
@keyframes lm-backdropin {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.live-match-modal {
    background: #1e293b;
    border-radius: 20px 20px 0 0;
    padding: 20px 18px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    animation: lm-slideup 0.25s ease;
}
@keyframes lm-slideup {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.live-match-modal h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: center;
}
.lm-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chips dentro de modales */
.lm-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}
.lm-chip {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.lm-chip:hover    { background: rgba(255,255,255,0.15); }
.lm-chip.selected { background: #2563eb; border-color: #3b82f6; color: white; }
.lm-chip.titular  { border-color: #16a34a; }
.lm-chip.suplente { border-color: #ca8a04; }
.lm-chip.disabled { opacity: 0.35; pointer-events: none; }

/* Foto en chip */
.lm-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #334155;
    flex-shrink: 0;
}

/* Botones de decisión (Propio/Rival, Amarilla/Roja, etc.) */
.lm-decision-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.lm-decision-btn {
    flex: 1;
    padding: 14px 10px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: white;
    transition: transform 0.15s;
}
.lm-decision-btn:active { transform: scale(0.96); }
.lm-btn-propio   { background: #16a34a; }
.lm-btn-rival    { background: #dc2626; }
.lm-btn-amarilla { background: #ca8a04; }
.lm-btn-roja     { background: #dc2626; }
.lm-btn-confirm  { background: #2563eb; }
.lm-btn-cancel   { background: rgba(255,255,255,0.1); }

/* Label de paso dentro del modal */
.lm-step-label {
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Setup screen dentro de .content */
.live-setup-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.live-setup-card h2 {
    color: var(--darkText);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}
.live-setup-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 18px 0 8px;
}
.live-setup-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.live-setup-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    color: #334155;
}
.live-setup-chip.titular  { background: #dcfce7; border-color: #16a34a; color: #166534; }
.live-setup-chip.suplente { background: #fef9c3; border-color: #ca8a04; color: #854d0e; }
.live-setup-chip.disabled { opacity: 0.4; pointer-events: none; }
.live-setup-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.live-condicion-toggle {
    display: flex;
    gap: 0;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}
.live-condicion-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
}
.live-condicion-btn.active {
    background: var(--mainColor);
    color: white;
}

.live-iniciar-btn {
    width: 100%;
    padding: 15px;
    background: var(--mainColor);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    letter-spacing: 0.3px;
}
.live-iniciar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── PARTIDO EN VIVO — complementos de estilo ─────────────────────── */

/* Badge de fase (1° Tiempo / 2° Tiempo) */
.live-phase-badge {
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
}

/* Grupo de botones derecha de la topbar */
.lv-topbar-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Botón Fin 1° Tiempo */
.live-match-halfbtn-row {
    display: flex;
    justify-content: center;
    padding: 10px 16px 6px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.live-match-half-btn {
    padding: 10px 28px;
    background: rgba(100,116,139,0.25);
    border: 1px solid rgba(100,116,139,0.4);
    color: #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.live-match-half-btn:hover { background: rgba(100,116,139,0.4); }

/* Pantalla de descanso */
.live-halftime-break {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    padding: 24px;
    text-align: center;
}
.live-halftime-break h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

/* Topbar: responsive para pantallas muy angostas */
@media (max-width: 380px) {
    .live-match-topbar { padding: 10px 10px 8px; gap: 4px; }
    .live-match-chrono { font-size: 1.85rem; letter-spacing: 1px; }
    .live-match-pause-btn,
    .live-match-fin-btn { padding: 7px 10px; font-size: 0.8rem; }
}

/* ─────────────────────────────────────────────────────────
   APP LOADER — pantalla de carga inicial (cubre flash roto)
───────────────────────────────────────────────────────── */
#app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
#app-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.app-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.app-loader__logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: contain;
    opacity: 0.9;
}
.app-loader__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: appLoaderSpin 0.7s linear infinite;
}
@keyframes appLoaderSpin {
    to { transform: rotate(360deg); }
}
.app-loader__text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────
   SECTION / ASIDE ENTER TRANSITIONS
   Re-triggered via JS (classList remove → offsetWidth → add)
   en cada renderMainTemplate / renderAsideMenu
───────────────────────────────────────────────────────── */
@keyframes contentEnter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
@keyframes asideEnter {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: none; }
}
.content-anim {
    animation: contentEnter 0.22s ease both;
}
.aside-anim {
    animation: asideEnter 0.18s ease both;
}

/* ── Botón editar en stat-card ──────────────────────────── */
.btn-icon-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-3);
    padding: 0 2px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s, color 0.15s;
}
.btn-icon-edit:hover { opacity: 1; color: var(--mainColor); }
#btnCancelDescuento, #btnCancelStaffEdit ,#cancelTutorBtn{
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #e7262687;
    cursor: pointer;
    color: var(--whiteText);
}
#btnCancelDescuento:hover, #btnCancelStaffEdit:hover,#cancelTutorBtn:hover{
    background: #e72626;
}

/* ========================================================================
   🎨 CLUB CONFIGURATION STYLES - Mejoras para la configuración del club
======================================================================== */

/* Container del logo con fondo del color principal */
.logoContainer {
    display: inline-block;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mainColor, #3b82f6), var(--mainColorHover, #2563eb));
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.logoContainer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.logoContainer img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
    border: none !important;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 8px;
    margin: 0;
}

/* Jerarquía de botones mejorada */
.btn-primary {
    background: linear-gradient(135deg, var(--mainColor, #3b82f6), var(--mainColorHover, #2563eb));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--mainColor, #3b82f6);
    border: 2px solid var(--mainColor, #3b82f6);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--mainColor, #3b82f6);
    color: white;
    transform: translateY(-1px);
}

.btn-save {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border: none;
    padding: 6px 12px !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
    min-width: auto !important;
    width: auto !important;
    max-width: 140px !important;
    display: inline-block !important;
}

.btn-save:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Previsualización interactiva */
.HeaderPreview {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background: white;
    width: 100%;
    max-width: 100%;
}

.HeaderPreview .header,
#previewHeader,
.HeaderPreview #previewHeader {
    background-color: var(--mainColor, #3b82f6);
    color: white;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Estilos dinámicos para la previsualización */
#previewHeader.preview-themed,
.HeaderPreview #previewHeader.preview-themed {
    background-color: var(--preview-bg-color, var(--mainColor, #3b82f6)) !important;
    color: var(--preview-text-color, white) !important;
    padding: 0 !important; /* Sin padding para coincidir con el navbar real */
}

#previewHeader.preview-themed .navBar {
    background-color: var(--preview-bg-color, var(--mainColor, #3b82f6)) !important;
    color: var(--preview-text-color, white) !important;
    padding: 1rem 1.5rem; /* El padding va en el navBar en lugar del header */
}

#previewHeader.preview-themed .left h2 {
    color: var(--preview-text-color, white) !important;
}

#previewHeader.preview-themed .headerMenu li {
    color: var(--preview-text-color, white) !important;
    background: none !important;
}

#previewHeader.preview-themed .right span {
    color: var(--preview-text-color, white) !important;
}

.HeaderPreview .navBar,
#previewHeader .navBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: inherit;
    color: inherit;
    width: 100%;
}

.HeaderPreview .left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.HeaderPreview .left img {
    max-height: 40px;
    object-fit: contain;
}

.HeaderPreview .left h2 {
    font-size: var(--font-lg);
    color: var(--whiteText);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.HeaderPreview h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit !important;
}

.HeaderPreview .headerMenu {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.HeaderPreview .headerMenu li {
    font-size: var(--font-sm);
    padding: 0.45em 0.9em;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
    position: relative;
    letter-spacing: 0.3px;
}

.HeaderPreview .headerMenu li:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.HeaderPreview .right {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75em;
}

.HeaderPreview .right span {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--whiteText);
    margin-right: 0.5em;
}

.HeaderPreview .right img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.HeaderPreview .right img:hover {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

/* Logout button para preview - idéntico al real */
.HeaderPreview .logout {
    width: 20%;
    position: relative;
    cursor: pointer;
}
.HeaderPreview .logout:hover .logoutArrow,
.HeaderPreview .logout:hover .logoutFrame {
    background-color: rgba(255,255,255,0.6);
}
.HeaderPreview .logoutFrame {
    margin-left: 2em;
    width: 20px;
    height: 30px;
    position: relative;
    background-color: var(--whiteText);
    opacity: 1;
    transition: all var(--t-normal);
    clip-path: polygon(0% 0%, 0% 100%, 15% 100%, 15% 15%, 75% 15%, 100% 85%, 15% 85%, 15% 100%, 100% 100%, 100% 85%, 75% 15%, 100% 15%, 100% 0%, 79% 0%, 49% 0%);
}
.HeaderPreview .logoutArrow {
    position: absolute;
    width: 20px;
    height: 15px;
    left: 40px;
    top: 7px;
    background-color: var(--whiteText);
    z-index: 10;
    transition: all var(--t-normal);
    clip-path: polygon(0% 35%, 60% 35%, 60% 10%, 90% 50%, 60% 85%, 60% 65%, 0% 65%);
}

/* Previsualización del Aside */
.AsidePreview {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
}

.aside-preview {
    background: #f8fafc; /* Fondo blanco/gris fijo */
    padding: 1rem;
    min-height: 200px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.asideNav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.asideNav li,
.aside-preview .asideNav li {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asideNav li:hover,
.aside-preview .asideNav li:hover {
    background-color: var(--hover-color, rgba(59, 130, 246, 0.1));
    color: var(--active-color, #3b82f6);
}

.asideNav li.active,
.aside-preview .asideNav li.active {
    background-color: var(--active-color, #3b82f6);
    color: white;
    font-weight: 600;
}

/* Mejoras responsivas */
@media (max-width: 768px) {
    /* ⚠️ Ocultar widget de tours en mobile */
    #tour-help-btn,
    #tour-help-panel {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .logoContainer img {
        width: 100px !important;
        height: 100px !important;
    }

    .HeaderPreview .headerMenu {
        display: none;
    }

    .configCardTop {
        flex-direction: column;
        gap: 1.5rem;
    }

    .configCardLeft, .configCardRight {
        width: 100%;
    }

    .AsidePreview {
        display: none;
    }
}

/* Animaciones suaves */
@keyframes configPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.logoContainer:hover {
    animation: configPulse 2s ease-in-out infinite;
}

/* Estados de carga */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos adicionales para asegurar interactividad */
.color-preview-update {
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Asegurar especificidad en color pickers */
.ColorPicker {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ColorPicker:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ── CATEGORY & TOURNAMENT FORMS ────────────────────────── */

/* Cards for forms */
.categoria-form-card,
.torneo-form-card {
    max-width: 800px;
    margin: 0 auto;
}

.categoria-form,
.torneo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

/* Inline form rows */
.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    width: 100%;
}

.form-group-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.form-label-inline {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.3em;
}

.form-hint {
    font-size: var(--font-xs);
    color: var(--text-3);
    margin: -0.3em 0 0.5em 0;
}

/* Gender pills */
.gender-pills {
    display: flex;
    gap: 0.5em;
}

.gender-pill {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.gender-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-pill span {
    display: block;
    padding: 0.7em 1em;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-card);
    transition: all var(--t-fast);
    user-select: none;
}

.gender-pill:hover span {
    border-color: var(--mainColor);
    background: var(--bg-hover);
}

.gender-pill input[type="radio"]:checked + span {
    background: var(--mainColor);
    border-color: var(--mainColor);
    color: white;
}

/* Age inputs */
.age-inputs {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.age-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    flex: 1;
}

.age-input-wrap span {
    font-size: var(--font-xs);
    color: var(--text-3);
    font-weight: 600;
}

.age-input-wrap input[type="number"] {
    width: 100%;
    padding: 0.65em 0.85em;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-md);
    color: var(--text-1);
    background: var(--bg-card);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}

.age-input-wrap input[type="number"]:focus {
    border-color: var(--mainColor);
    box-shadow: 0 0 0 3px var(--mainColor10);
}

.age-separator {
    font-size: var(--font-lg);
    color: var(--text-3);
    font-weight: 600;
    padding-top: 1.5em;
}

/* Full width form group */
.form-group-full {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* Days grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 0.8em;
    justify-items: center;
}

.day-card,
.dayGroup {
    width: 67%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0.8em;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: all var(--t-fast);
}

.day-card:has(input[type="checkbox"]:checked),
.dayGroup:has(input[type="checkbox"]:checked) {
    border-color: var(--mainColor);
    background: var(--mainColor10);
}

.dayGroup input[type="checkbox"] {
    display: none;
}

.dayGroup .checkboxDiv {
    display: block;
    padding: 0.5em;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--t-fast);
    user-select: none;
}

.dayGroup input[type="checkbox"]:checked + .checkboxDiv {
    background: var(--mainColor);
    border-color: var(--mainColor);
    color: white;
}

.dayGroup input[type="time"] {
    padding: 0.5em;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    color: var(--text-1);
    background: var(--bg-card);
    transition: border-color var(--t-fast);
    outline: none;
}

.dayGroup input[type="time"]:focus {
    border-color: var(--mainColor);
    box-shadow: 0 0 0 3px var(--mainColor10);
}

/* Categories checklist */
.categories-checklist {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5em;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    flex-wrap: wrap;

}

.categories-checklist .empty-msg {
    text-align: center;
    color: var(--text-3);
    font-size: var(--font-sm);
    padding: 2em;
}

.categories-checklist label {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--t-fast);
}

.categories-checklist label:hover {
    background: var(--bg-hover);
}

.categories-checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mainColor);
}

.categories-checklist span {
    font-size: var(--font-sm);
    color: var(--text-1);
    font-weight: 500;
}

/* Form actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
    padding-top: 1.5em;
    border-top: 1px solid var(--border);
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.9em 2em;
    border-radius: var(--radius-sm);
    border: none;
    font-family: inherit;
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
    background: var(--mainColor);
    color: white;
    box-shadow: var(--shadow);
    min-width: 200px;
}

.btn-primary-lg:hover {
    background: var(--mainColorHoverDark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary-lg:active {
    transform: translateY(0);
}

.btn-primary-lg:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── FORM VALIDATION ───────────────────────────────────── */

/* Indicador de campo obligatorio (asterisco rojo) */
.required-indicator {
    color: var(--danger);
    font-weight: 700;
    font-size: 1em;
}

/* Leyenda "* Obligatorio" al pie del formulario */
.required-legend {
    font-size: var(--font-xs);
    color: var(--text-4);
    margin: 12px 0 8px;
    text-align: right;
}

/* Campo con error de validación */
.field-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

.field-error:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3) !important;
}

/* Toast de validación (fallback si no existe el sistema de toast) */
.validation-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(254, 226, 226, 0.95);
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: var(--font-sm);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.validation-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── AUDIT INFO ────────────────────────────────────────── */

.audit-created,
.audit-modified {
    font-size: var(--font-xs);
    color: var(--text-4);
}

.audit-modified {
    color: var(--text-3);
    font-style: italic;
}

/* ── PARTIDO EN VIVO - TIEMPOS ─────────────────────────── */

/* Badge de tiempo actual */
.live-match-tiempo-badge {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #93c5fd;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-match-tiempo-badge.entretiempo {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fcd34d;
}

/* Botón de tiempo (Finalizar 1T / Comenzar 2T) */
.live-match-tiempo-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.live-match-tiempo-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.live-match-tiempo-btn.comenzar {
    background: #16a34a;
    border-color: #16a34a;
}

.live-match-tiempo-btn.comenzar:hover {
    background: #15803d;
}

/* Layout topbar para partido en vivo */
.live-match-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-match-topbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Media query para mobile - Reorganizar botones */
@media (max-width: 768px) {
    .live-match-topbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .live-match-topbar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .live-match-topbar-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .live-match-tiempo-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Botón de editar tutor */
.tutor-edit-btn,
.tutor-unlink-btn {
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all var(--t-fast);
}

.tutor-edit-btn:hover {
    background: var(--info-bg);
    color: var(--info);
}

.tutor-unlink-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}


