:root {
    --color-amarillo: #ffd600;
    --color-negro: #111;
    --color-hover: #fffde7;
    --color-acento: #ffcd0a;
    --color-hover-link: #f0ac09;
    --color-borde: #FFB300;
    --color-input-bg: rgba(140, 82, 82, 0.4);
    --color-panel: rgba(0, 0, 0, 0.61);
    --color-form: rgba(0, 0, 0, 0.3);
}

/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

html,
body {
    width: 100vw;
    min-height: 100vh;
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--color-negro);
    color: var(--color-amarillo);
    overflow-x: hidden;
}

/* Fondo para páginas con imagen */
body.bg-futbol {
    background-image: url("../images/football.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.28);
    color: #fff;
}

/* HEADER Y MENÚ HORIZONTAL */
.main-header {
    background: var(--color-negro);
    color: var(--color-amarillo);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px #0002;
}
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-list a {
    color: var(--color-amarillo);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--color-acento);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-amarillo);
    cursor: pointer;
}

/* Panel usuario */
.user-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--color-amarillo);
    object-fit: cover;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: var(--color-negro);
    color: var(--color-amarillo);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px #000a;
}

.user-profile:hover .user-dropdown {
    display: block;
}

.theme-toggle button {
    background: none;
    border: none;
    color: var(--color-amarillo);
    font-size: 1.3rem;
    cursor: pointer;
}

/* BOTÓN REGRESAR */
.barra-superior {
    width: 100%;
    background: var(--color-amarillo);
    color: var(--color-negro);
    padding: 12px 0 12px 16px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px #0002;
}

.btn-atras {
    background: var(--color-negro);
    color: var(--color-amarillo);
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    padding: 8px 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px #0001;
    transition: background 0.2s, color 0.2s;
}

.btn-atras:hover {
    background: var(--color-hover);
    color: var(--color-negro);
}

/* PANEL PRINCIPAL Y CONTENIDO */
.main-content {
    margin-top: 90px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem;
    background: var(--color-negro);
    color: var(--color-amarillo);
    min-height: 70vh;
}

header h1,
header p {
    margin-bottom: 18px;
    color: var(--color-amarillo);
}

/* Dashboard cards */
.dashboard-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: #222;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px #0004;
    flex: 1 1 200px;
    min-width: 180px;
    text-align: center;
    color: var(--color-amarillo);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--color-amarillo);
    margin-bottom: 1rem;
}

/* FORMULARIOS */
.formcontent,
.form-container {
    width: 100%;
    max-width: 450px;
    margin: 2rem auto;
    background: var(--color-form);
    border-radius: 18px;
    padding: 2rem;
    color: var(--color-amarillo);
    box-shadow: 0 2px 10px #0002;
}

.formcontent h1,
.form-container h1 {
    color: var(--color-amarillo);
    text-align: center;
    margin-bottom: 1.5rem;
}

input,
button,
select,
textarea {
    width: 100%;
    padding: 12px 5px;
    margin-bottom: 1rem;
    background: var(--color-input-bg);
    color: var(--color-amarillo);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border: 2px solid var(--color-acento);
    background: rgba(255, 255, 255, 0.1);
}

button,
.boton-acceso {
    background: var(--color-amarillo);
    color: var(--color-negro);
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    padding: 12px 0;
    transition: background 0.2s, color 0.2s;
}

button:hover,
.boton-acceso:hover {
    background: var(--color-hover);
    color: var(--color-negro);
}

/* TABLAS */
.tablecontent,
.data-table {
    background: var(--color-panel);
    color: var(--color-amarillo);
    border-radius: 8px;
    margin: 2rem auto;
    padding: 1.5rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 2px 10px #0002;
    font-size: 1.1rem;
    overflow-x: auto;
}

.data-table th,
.data-table td,
.tablecontent th,
.tablecontent td {
    padding: 10px;
    border: 1px solid var(--color-borde);
    text-align: left;
}

.data-table th,
.tablecontent th {
    background: var(--color-amarillo);
    color: var(--color-negro);
}

/* ENLACES */
a {
    color: var(--color-amarillo);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-hover-link);
}

/* FOOTER */
.footer,
.main-footer {
    width: 100%;
    color: var(--color-amarillo);
    text-align: center;
    padding: 2rem 0 1rem 0;
    margin-top: 30px;
    font-size: 1rem;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.redes-sociales {
    display: flex;
    gap: 22px;
    margin-top: 6px;
}

.redes-sociales a {
    color: var(--color-amarillo);
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}

.redes-sociales a:hover {
    color: var(--color-hover);
    transform: scale(1.13);
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .header-content,
    .main-content,
    .formcontent,
    .form-container,
    .tablecontent,
    .data-table {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {

    .main-header,
    .barra-superior {
        padding: 0.5rem 0.5rem;
        font-size: 0.95rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-content,
    .formcontent,
    .form-container,
    .tablecontent,
    .data-table {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .footer-content {
        font-size: 0.95rem;
    }
}

/* DARK MODE */
body.dark-mode {
    background: #1a1a1a;
    color: var(--color-amarillo);
}

body.dark-mode .main-header,
body.dark-mode .footer,
body.dark-mode .main-footer,
body.dark-mode .formcontent,
body.dark-mode .form-container,
body.dark-mode .tablecontent,
body.dark-mode .data-table {
    background: #111;
    color: var(--color-amarillo);
}

body.dark-mode .nav-list a {
    color: var(--color-amarillo);
}

body.dark-mode .nav-list a:hover {
    color: var(--color-hover);
}

body.dark-mode .info-card {
    background: #222;
    color: var(--color-amarillo);
}

body.dark-mode .user-dropdown {
    background: #222;
    color: var(--color-amarillo);
}
/* =========================
   PORTADA - HOME PAGE
   ========================= */
/* =========================
   VARIABLES Y RESET
   ========================= */
:root {
    --amarillo: #ffd600;
    --negro: #111;
    --hover-amarillo: #fffde7;
    --hover-link: #f0ac09;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

body.home-page {
    min-height: 100vh;
    background: var(--negro);
    color: var(--amarillo);
    font-family: 'Open Sans', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* =========================
   PANEL CENTRAL
   ========================= */
.contenedor-principal {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.panel-central {
    background: rgba(0, 0, 0, 0.78);
    border-radius: 18px;
    padding: 2.2rem 2rem 1.2rem 2rem;
    box-shadow: 0 2px 18px #0008;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    width: 95vw;
    margin: 2rem 0 1rem 0;
}

.logo-container {
    margin-bottom: 1.3rem;
}

.logo-principal {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 12px #ffd60077);
}

/* =========================
   BIENVENIDA
   ========================= */
.bienvenida h1 {
    font-size: 1.5rem;
    color: var(--amarillo);
    text-align: center;
    margin-bottom: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bienvenida p {
    color: #fffde7;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.92;
}

/* =========================
   BOTONES DE ACCESO
   ========================= */
.botones-acceso {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.boton-acceso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: var(--amarillo);
    color: var(--negro);
    font-weight: 600;
    font-size: 1.08rem;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 0;
    text-decoration: none;
    box-shadow: 0 2px 8px #0002;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.boton-acceso i {
    font-size: 1.1rem;
}

.boton-acceso:hover,
.boton-acceso:focus {
    background: var(--hover-amarillo);
    color: var(--negro);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
    outline: none;
}

/* =========================
   FOOTER MODERNO
   ========================= */
.main-footer {
    flex-shrink: 0;
    width: 100%;
    color: var(--amarillo);
    text-align: center;
    padding: 1.2rem 0 0.7rem 0;
    font-size: 1rem;
    margin-top: 0;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.redes-sociales {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.redes-sociales a {
    color: var(--amarillo);
    font-size: 1.32rem;
    transition: color 0.2s, transform 0.2s;
}

.redes-sociales a:hover {
    color: var(--hover-amarillo);
    transform: scale(1.13);
}

.derechos {
    margin-top: 1.2rem;
    font-size: 0.97rem;
    color: #ffe066;
    opacity: 0.85;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 600px) {
    .panel-central {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
        max-width: 99vw;
        margin: 1rem 0 0.5rem 0;
    }

    .bienvenida h1 {
        font-size: 1.1rem;
    }

    .bienvenida p {
        font-size: 0.97rem;
    }

    .footer-content {
        font-size: 0.96rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .redes-sociales {
        gap: 0.7rem;
    }
}
/* =========================
   VARIABLES Y RESET
   ========================= */
:root {
    --amarillo: #ffd600;
    --negro: #111;
    --hover-amarillo: #fffde7;
    --hover-link: #f0ac09;
    --gris-form: #232323;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* =========================
   CUERPO Y FUENTE PRINCIPAL
   ========================= */
body {
    min-height: 100vh;
background-image: url("../images/football.jpg");
background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    color: var(--amarillo);
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
/* =========================
   LAYOUT PRINCIPAL
   ========================= */
.contenedor-principal {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
}

/* =========================
   PANEL IZQUIERDO - FORMULARIO
   ========================= */
.panel-izquierdo,
.panel-derecho {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.panel-izquierdo {
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

/* =========================
   PANEL DERECHO - LOGO Y FONDO
   ========================= */
.panel-derecho {
    position: relative;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
}
.contenedor-logo {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--amarillo);
}

.contenedor-logo i {
    text-shadow: 0 2px 12px #000a;
    margin-bottom: 20px;
}

.contenedor-logo h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--amarillo);
    letter-spacing: 1px;
}

.contenedor-logo p {
    font-size: 1.1rem;
    opacity: 0.92;
}

/* =========================
   FORMULARIO DE ACCESO
   ========================= */
.contenido-formulario {
    background: var(--gris-form);
    border-radius: 16px;
    box-shadow: 0 2px 18px #0008;
    padding: 2.4rem 2rem 1.5rem 2rem;
    min-width: 320px;
    max-width: 380px;
    width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-mobile {
    display: none;
    margin-bottom: 1rem;
}

.contenido-formulario h1 {
    color: var(--amarillo);
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    text-align: center;
    font-weight: 700;
}

.subtitulo {
    color: #fffde7;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.92;
}

.grupo-input {
    width: 100%;
    margin-bottom: 1.2rem;
}

.grupo-input label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--amarillo);
    font-weight: 600;
}

.grupo-input input {
    width: 100%;
    padding: 0.7rem;
    border-radius: 10px;
    border: none;
    background: #191919;
    color: var(--amarillo);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    transition: border-color 0.2s;
}

.grupo-input input:focus {
    outline: 2px solid var(--amarillo);
    background: #222;
}

.boton-acceso {
    width: 100%;
    background: var(--amarillo);
    color: var(--negro);
    font-weight: bold;
    border: none;
    border-radius: 10px;
    padding: 0.9rem 0;
    font-size: 1.08rem;
    margin-top: 0.7rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.boton-acceso:hover,
.boton-acceso:focus {
    background: var(--hover-amarillo);
    color: var(--negro);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

/* =========================
   ENLACES RÁPIDOS
   ========================= */
.enlaces-rapidos {
    margin-top: 1.2rem;
    text-align: center;
}

.enlaces-rapidos a {
    color: var(--amarillo);
    text-decoration: none;
    display: inline-block;
    margin: 0.3rem 0.8rem;
    font-size: 0.97rem;
    opacity: 0.85;
    transition: color 0.2s;
}

.enlaces-rapidos a:hover {
    color: var(--hover-link);
    opacity: 1;
}

/* =========================
   FOOTER ADMIN
   ========================= */
.footer-admin {
    margin-top: 2.2rem;
    text-align: center;
    color: var(--amarillo);
    font-size: 0.97rem;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 0.7rem 0 0.4rem 0;
}

.redes-sociales a {
    color: var(--amarillo);
    font-size: 1.32rem;
    transition: color 0.2s, transform 0.2s;
}

.redes-sociales a:hover {
    color: var(--hover-amarillo);
    transform: scale(1.13);
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 900px) {
    .contenedor-principal {
        flex-direction: column;
    }

    .panel-izquierdo,
    .panel-derecho {
        min-height: 0;
        flex: none;
        width: 100%;
        max-width: 100vw;
    }

    .panel-derecho {
        min-height: 240px;
        height: 220px;
    }
}

@media (max-width: 600px) {
    .contenido-formulario {
        padding: 1.1rem 0.5rem 0.7rem 0.5rem;
        min-width: 0;
        max-width: 99vw;
    }

    .logo-mobile {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }

    .panel-derecho {
        display: none;
    }

    .footer-admin {
        font-size: 0.93rem;
        margin-top: 1.1rem;
    }
}
/* =========================
   VARIABLES Y RESET
   ========================= */
:root {
    --amarillo: #ffd600;
    --negro: #111;
    --blanco: #fff;
    --gris-claro: #f8f9fa;
    --gris-oscuro: #232323;
    --hover-amarillo: #fffde7;
    --hover-link: #f0ac09;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

html,
body {
    min-height: 100vh;
    background: var(--gris-claro);
    color: var(--negro);
    font-family: 'Open Sans', Arial, sans-serif;
}


/* =========================
   SIDEBAR
   ========================= */
.sidebar {
    width: 240px;
    background: var(--negro);
    color: var(--amarillo);
    box-shadow: 2px 0 10px #0003;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 22px 16px 22px;
    border-bottom: 1px solid #ffd60033;
}

.club-icon {
    color: var(--amarillo);
}

.club-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--amarillo);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 18px 0 6px 18px;
    color: var(--amarillo);
    letter-spacing: 1px;
    opacity: 0.8;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--amarillo);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}

nav ul li a:hover {
    background: var(--amarillo);
    color: var(--negro);
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px 22px 22px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-top: 1px solid #ffd60033;
}

#toggle-theme {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--amarillo);
    transition: color 0.2s;
}

#toggle-theme:hover {
    color: var(--hover-link);
}

.logout-btn {
    margin-left: auto;
    color: var(--negro);
    background: var(--amarillo);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    border: none;
}

.logout-btn:hover {
    background: var(--hover-amarillo);
    color: var(--negro);
}

/* =========================
   CONTENIDO PRINCIPAL
   ========================= */
.main-content {
    margin-left: 240px;
    padding: 90px 40px 40px 40px;
    width: 100%;
    min-height: 100vh;
    background: var(--gris-claro);
    color: var(--negro);
    transition: background 0.3s, color 0.3s;
    box-sizing: border-box;
    flex: 1 1 auto;
    overflow-x: hidden;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--negro);
}

header p {
    color: #555;
    margin-bottom: 30px;
}

.dashboard-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.info-card {
    background: var(--amarillo);
    box-shadow: 0 2px 10px #0001;
    border-radius: 14px;
    padding: 30px 30px 20px 30px;
    min-width: 180px;
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--negro);
    transition: box-shadow 0.2s, transform 0.2s;
}

.info-card i {
    font-size: 2.2rem;
    color: var(--negro);
}

.info-card:hover {
    box-shadow: 0 6px 24px #0002;
    transform: translateY(-3px) scale(1.03);
}

/* =========================
   FOOTER
   ========================= */
.footer {
    width: 100%;
    background: var(--negro);
    color: var(--amarillo);
    text-align: center;
    padding: 28px 0 14px 0;
    margin-top: 40px;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.redes-sociales {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.redes-sociales a {
    color: var(--amarillo);
    transition: color 0.2s, transform 0.2s;
}

.redes-sociales a:hover {
    color: var(--hover-link);
    transform: scale(1.15);
}

/* =========================
   DARK MODE
   ========================= */
body.dark-mode {
    background: var(--negro);
    color: var(--amarillo);
}

body.dark-mode .main-content {
    background: var(--negro);
    color: var(--amarillo);
}

body.dark-mode .sidebar,
body.dark-mode .footer {
    background: #191919;
    color: var(--amarillo);
}

body.dark-mode .info-card {
    background: #222;
    color: var(--amarillo);
}

body.dark-mode nav ul li a {
    color: var(--amarillo);
}

body.dark-mode nav ul li a:hover {
    background: var(--amarillo);
    color: var(--negro);
}

body.dark-mode .logout-btn {
    background: var(--amarillo);
    color: var(--negro);
}

body.dark-mode .logout-btn:hover {
    background: var(--hover-amarillo);
    color: var(--negro);
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 900px) {
    .sidebar {
        width: 60px;
        min-width: 60px;
    }

    .sidebar-header .club-name {
        display: none;
    }

    .main-content {
        margin-left: 60px;
        padding: 90px 10px 25px 10px;
    }

    .dashboard-info {
        gap: 15px;
    }

    .info-card {
        padding: 18px 8px 12px 8px;
        font-size: 0.95rem;
    }

    nav ul li a span,
    .menu-title {
        display: none;
    }
}

@media (max-width: 600px) {
    .barra-superior {
        padding: 12px 0 12px 8px;
    }

    .btn-atras {
        font-size: 0.95rem;
        padding: 6px 14px;
    }

    .sidebar {
        position: fixed;
        width: 100vw;
        min-width: 0;
        height: 56px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        z-index: 100;
        top: 56px;
        left: 0;
        margin-left: 0;
        box-shadow: 0 2px 8px #0002;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-header,
    .sidebar-footer {
        padding: 10px;
    }

    .sidebar-header .club-name {
        display: none;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100vw;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        display: inline-block;
    }

    nav ul li a {
        padding: 10px 10px;
        font-size: 0.95rem;
        border-radius: 0;
        white-space: nowrap;
    }

    .main-content {
        margin-left: 0;
        margin-top: 112px;
        padding: 10px 4vw;
    }

    .dashboard-info {
        flex-direction: column;
        gap: 10px;
    }
}
/* =========================
   FORMULARIO EN DOS COLUMNAS
   ========================= */
.formulario-2columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .formulario-2columnas {
        grid-template-columns: 1fr;
    }
}
.contenedor-principal {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #111;
    color: #ffd600;
    min-height: 100vh;
    /* otros estilos */
}

.main-content {
    flex: 1;
    background: #fff;
    color: #111;
    padding: 40px;
    min-height: 100vh;
    box-sizing: border-box;
    /* otros estilos */
}
.sidebar {
    width: 240px;
    background: #111;
    color: #ffd600;
    height: 100vh;
    /* Altura total de la ventana */
    position: fixed;
    /* Sidebar siempre visible */
    top: 0;
    left: 0;
    overflow-y: auto;
    /* Habilita el scroll interno */
    overflow-x: hidden;
    z-index: 100;
    /* Otros estilos opcionales */
    box-shadow: 2px 0 10px #0003;
    display: flex;
    flex-direction: column;
}

.sidebar nav {
    flex: 1 1 auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-title {
    background: #ffd600;
    color: #111;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 6px;
    margin: 12px 0 6px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.02rem;
    box-shadow: 0 1px 4px #0001;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd600;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}

.sidebar-link:hover {
    background: #ffd600;
    color: #111;
}
.sidebar {
    width: 240px;
    background: #111;
    color: #ffd600;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    box-shadow: 2px 0 10px #0003;
    display: flex;
    flex-direction: column;
    /* Scrollbar personalizada para navegadores Webkit */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #ffd600 #222;
    /* Firefox */
}

/* Scrollbar para Chrome, Edge, Safari */
.sidebar::-webkit-scrollbar {
    width: 10px;
    background: #222;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffd600 60%, #ffe066 100%);
    border-radius: 8px;
    border: 2px solid #222;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffe066 60%, #ffd600 100%);
}

.sidebar::-webkit-scrollbar-track {
    background: #222;
    border-radius: 8px;
}
/* =========================
   HEADER FIJO Y AJUSTE DE BODY
   ========================= */
/* Sidebar fijo a la izquierda */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    /* o el ancho real de tu sidebar */
    height: 100vh;
    background: #111;
    z-index: 2000;
    /* ...otros estilos... */
}

/* Header fijo arriba y desplazado a la derecha */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background: #111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-left: 240px;
    /* igual al ancho del sidebar */
    width: calc(100% - 240px);
    /* para que no quede debajo del sidebar */
}

/* Ajusta el contenido del header si es necesario */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
}

/* Ajusta el main-content para que tampoco quede debajo del sidebar ni del header */
.main-content {
    margin-left: 240px;
    /* igual al sidebar */
    padding-top: 74px;
    /* igual al alto del header */
    /* ...otros estilos... */
}
/* =========================
   Tabla de Jugadores
   ========================= */
.tabla-jugadores-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.titulo-tabla {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffd600;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.tabla-scroll {
    width: 100%;
    overflow-x: auto;
}

.tabla-jugadores {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 1100px;
    background: #fff;
    color: #111;
    box-shadow: 0 2px 8px #0002;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.97rem;
}

.tabla-jugadores th,
.tabla-jugadores td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tabla-jugadores th {
    background: #ffd600;
    color: #111;
    font-weight: bold;
    font-size: 1.01rem;
}

.tabla-jugadores td.txt-izq {
    text-align: left;
    white-space: normal;
    max-width: 180px;
    word-break: break-word;
}

.tabla-jugadores tr:nth-child(even) {
    background: #fffde7;
}

.tabla-jugadores tr:hover {
    background: #ffe066;
    transition: background 0.15s;
}

.btn-accion {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 1rem;
    margin: 0 2px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}

.btn-actualizar {
    background: #ffe066;
    color: #111;
}

.btn-actualizar:hover {
    background: #ffd600;
    color: #111;
}

.btn-eliminar {
    background: #f44336;
    color: #fff;
}

.btn-eliminar:hover {
    background: #b71c1c;
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .tabla-jugadores {
        font-size: 0.92rem;
        min-width: 900px;
    }
}

@media (max-width: 600px) {
    .tabla-jugadores-contenedor {
        padding: 0 2vw;
    }

    .tabla-jugadores {
        font-size: 0.89rem;
        min-width: 650px;
    }
}