/* ================================ */
/* ESPACIO CON NAVBAR                */
/* ================================ */
.bloque-inferior {
    padding-top: 0px !important; /* o el valor que quieras */
}

/* ================================ */
/* TABLA CENTRADA                    */
/* ================================ */
.tabla-posiciones {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

/* ================================ */
/* 3 COLUMNAS                        */
/* ================================ */
.layout-3column {
    max-width: 1400px;
    margin: auto;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 25px;
    padding-top: 1 !important;
}

/* COLUMNAS LATERALES (INFORMES) */
.banner-col {
    position: sticky;
    top: 160px;

    display: flex;          /* ← necesario */
    flex-direction: column; /* ← vertical */
    gap: 20px;              /* ← separación entre banners */
}

.layout-3column {
    padding-top: 60px; /* separa todo del navbar */
}


/* TARJETA DEL INFORME */
.banner-card {
    width: 220px;
    height: 411px; /* ADAPTACIÓN AUTOMÁTICA */
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* IMAGEN VERTICAL — ARREGLADO */
.banner-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none !important;
    position: static !important;
    left: 0 !important;
}

/* ================================ */
/* TABLA                            */
/* ================================ */

.tabla-posiciones {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    width: 100%;
    margin-top: 0; /* IMPORTANTE */
}

.tp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tp-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.logo-torneo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* FILAS */
.tp-row {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    padding: 8px 5px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    align-items: center;
}

.tp-head {
    background: #f2f2f2;
    font-weight: 700;
    border-bottom: 2px solid #ccc;
}

.tp-col.pos,
.tp-col.pts {
    text-align: center;
    font-weight: 700;
}

.tp-col.equipo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-col.equipo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* HOVER */
.tp-row:hover {
    background: #f8f8f8;
    transition: 0.2s;
}

/* COLORES POR PUESTO */
.puesto1 { background: #2ecc48 !important; }
.puesto2, .puesto3, .puesto4 { background: #ffd83b !important; }
.puesto5 { background: #ffba39 !important; }
.puesto6, .puesto7, .puesto8, .puesto9, .puesto10 { background: #39f8ff !important; }
.descenso { background: #e74c3c !important; }
.descenso-prom { background: #ee6728 !important; }

/* 🏆 LEYENDA */
.legend-box {
    border: 2px solid #3f3f3f;
    border-radius: 12px;
    padding: 18px;
    margin-top: 10px;
}

.legend-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.legend-item p {
    margin: 0;
    color: #000000;
    font-size: 1rem;
}

.legend-color {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.legend-color.green { background: #2ecc48; }
.legend-color.green2 { background: #80e290; }
.legend-color.yellow { background: #ffd83b; }
.legend-color.orange { background: #ffba39; }
.legend-color.blue { background: #39f8ff; }
.legend-color.red { background: #e74c3c; }
.legend-color.redorange { background: #ee6728; }
