/* Estilo general */
body {
    background-image: url('images/fondo_l2.jpg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Overlay para que las letras se distingan mejor */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: -1;
}

/* Botones tipo gamer – color acero */
.gamer-btn {
    background: linear-gradient(135deg, #7f8c8d, #bdc3c7);
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    margin: 10px 0;
    cursor: pointer;
    box-shadow: 0 0 10px #95a5a6, 0 0 20px #7f8c8d inset;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.gamer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #ffffff, 0 0 25px #95a5a6 inset;
}

/* Panel vertical a la izquierda */
.panel-vertical {
    position: fixed;
    top: 150px;
    left: 20px;
    display: flex;
    flex-direction: column;
    background-color: rgba(0,0,0,0.6);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px #000000;
}

/* Panel de botones derecha */
.panel-vertical-right {
    position: fixed;
    top: 200px;
    right: 30px;
    display: flex;
    flex-direction: column;

    background-color: rgba(0,0,0,0.6); /* 🔥 fondo */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px #000000;
}

/* 🔴 IMPORTANTE: evita que se rompan los layouts */
.panel-vertical-right .gamer-btn {
    width: 180px;
    text-align: center;
}

/* Contenedor del título centrado */
.titulo-principal {
    text-align: center;
    margin: 50px auto 30px auto;
    display: block;
}

/* Título principal */
.titulo-principal h1 {
    font-family: 'Cinzel', serif;
    color: #7FDBFF;
    font-size: 48px;
    margin: 0;
    text-shadow:
        0 0 5px #7FDBFF,
        0 0 10px #7FDBFF,
        0 0 20px #00CFFF,
        0 0 30px #00CFFF;
}

/* Subtítulo */
.titulo-principal h2 {
    font-family: 'Roboto', sans-serif;
    color: #B0E0E6;
    font-size: 24px;
    margin: 0;
    text-shadow:
        0 0 3px #B0E0E6,
        0 0 6px #B0E0E6;
}

/* Panel centrado */
.panel {
    background-color: rgba(0,0,0,0.6);
    padding: 25px;
    margin: 50px auto;
    width: 800px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 0 15px #000000;
}

/* ================= FIX REAL DE RANKINGS ================= */

/* Asegura que la tabla NO se rompa por flex ni estilos externos */
.panel table {
    width: 100%;
    border-collapse: collapse;
    display: table;
}

.panel tr {
    display: table-row;
}

.panel th, .panel td {
    display: table-cell;
    border: 1px solid #00CFFF;
    padding: 8px 12px;
    text-align: center;
}

.panel th {
    background: linear-gradient(135deg, #7FDBFF, #00CFFF);
    color: #000000;
    font-weight: bold;
}

.panel tr:nth-child(even) {
    background-color: rgba(0,0,0,0.3);
}

.panel tr:hover {
    background-color: rgba(0,255,255,0.2);
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: rgba(0,0,0,0.9);
    margin: 10% auto;
    padding: 20px;
    border: 2px solid #7FDBFF;
    width: 60%;
    border-radius: 15px;
    color: #ffffff;
    text-align: center;
}

/* Botón de cerrar */
.close-btn {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #7FDBFF;
}

/* ================= ANIMACIONES ================= */
.panel-vertical .gamer-btn {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1.4s forwards;
}

.panel-vertical-right .gamer-btn {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1.4s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= EVENTOS ================= */
.evento {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.evento img {
    width: 420px;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.evento-texto {
    text-align: left;
}