body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
    position: relative;
    height: 100%;
}

html, body {
    height: 100%;
}

.fondo-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease-in-out; /* transición consistente */
}

#fondo1 { opacity: 1; }

header {
    background-color: #3a3f48;
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    height: 100px;
}

.header-left {
    margin-right: 1rem;
}

.header-right {
    margin-left: auto;
    position: relative;
}
.logo {
    height: 75px;
    vertical-align: middle;
}

main {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    box-sizing: border-box;
}

main.dashboard-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
    flex-wrap: nowrap !important;
}

main.dashboard-layout .dashboard-perfil {
    flex: 0 0 280px;
    max-width: 280px;
}

main.dashboard-layout .dashboard-datos {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    main.dashboard-layout {
        flex-direction: column !important;
    }
    main.dashboard-layout .dashboard-perfil,
    main.dashboard-layout .dashboard-datos {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* ==== Estilos exclusivos del dashboard ==== */
.dashboard-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
    box-sizing: border-box;
}

.dashboard-perfil {
    flex: 0 0 280px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.dashboard-datos {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

/* Responsive: se apilan en móviles */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-perfil,
    .dashboard-datos {
        max-width: 100%;
    }
}



h1, h2 {
    color: #333;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #007BFF;
}

nav ul li a:hover {
    text-decoration: underline;
}

footer {
    background-color: #3a3f48;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.titulo {
    color: white !important;
    font-weight: bold;
    margin-left: 1rem;
}

label {
    display: block;
    margin-top: 10px;
}

.formulario-invocador {
    width: 100%;
    max-width: 300px;
    padding: 20px;
    border: 2px solid black;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

.formulario-invocador label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.formulario-invocador input,
.formulario-invocador select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid black;
    border-radius: 4px;
    box-sizing: border-box;
}

.formulario-invocador button {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formulario-invocador button:hover {
    background-color: #27ae60;
}

.contenedor-formulario,
.contenedor-datos {
    flex: 1 1 300px;
    max-width: 400px;
}

.contenedor-datos {
    background-color: #fff;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tabla-invocador {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabla-invocador th,
.tabla-invocador td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.tabla-invocador th {
    background-color: #f0f0f0;
    width: 40%;
    font-weight: bold;
}

.tabla-invocador td {
    background-color: #fafafa;
}

.boton-actualizar {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-actualizar:hover {
    background-color: #2980b9;
}

.caja-acceso {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.caja-acceso h2 {
    margin-bottom: 15px;
    color: #333;
}

.botones-acceso {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boton-acceso {
    display: block;
    padding: 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.boton-acceso:hover {
    background-color: #2980b9;
}

.lista-campeones {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.lista-campeones li {
    padding: 5px 0;
    font-size: 16px;
}
/* Tabla de servidores */
.caja-servidores {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    overflow-y: auto;
    margin: 0 auto;
    text-align: center;
}

.tabla-servidores {
    width: 100%;
    border-collapse: collapse;
}

.tabla-servidores th,
.tabla-servidores td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.tabla-servidores th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.online {
    color: green;
    font-weight: bold;
}

.offline {
    color: red;
    font-weight: bold;
}

.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 9999;
}

.cookie-actions {
    margin-top: 10px;
    text-align: right;
}

.cookie-close {
    background-color: #fff;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cookie-link {
    color: #fff;
    text-decoration: underline;
    margin-left: 10px;
}

.header-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    color: #333;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}

.user-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #fff;
}

.dashboard-layout {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.dashboard-perfil {
    flex: 0 0 300px;
    max-width: 300px;
}

.dashboard-datos {
    flex: 1;
    min-width: 300px;
}

.perfil-foto {
    border-radius: 50%;
    object-fit: cover;
    width: 75px;
    height: 75px;
    border: 2px solid #ccc;
    margin-top: 10px;
}


@media (max-width: 768px) {
    .dashboard-layout {
        flex-wrap: wrap;
    }
    .dashboard-perfil,
    .dashboard-datos {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
