/* =========================
   CONTENEDOR GENERAL
========================= */
.tabla-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    
}

/* =========================
   HEADER + ROW (DESKTOP)
========================= */
.tabla-header,
.tabla-row {
    display: grid;
    grid-template-columns: 60px 3fr repeat(7, minmax(40px, 1fr));
    align-items: center;
    gap: 10px;
    padding: 12px;
    
}

/* HEADER */
.tabla-header {

    background: #1e1e2f;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    text-align: center;
    
}

/* FILAS */
.tabla-row {
    background: #f5f5f5;
    margin-top: 8px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
}

/* EQUIPO */
.equipo {
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* POSICIÓN */
.posicion {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #1e1e2f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}
.roundedimg {
	
	max-height:80px;
	border-radius: 50%;
	padding:4px;
	background-color:#FFF;
    border: 1px solid #B9CEDF;
}
.pts {
    
    font-weight: bold;
    font-size: 1.3em;
    color: #046CCC;
}
/* =========================
   📱 MOBILE (CARD VIEW)
========================= */
@media (max-width: 768px) {

    .tabla-header {
        display: none;
    }

    .tabla-row {
        display: block;
        text-align: left;
        padding: 15px;
    }

    .tabla-row div {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border-bottom: 1px solid #eee;
    }

    .tabla-row div:last-child {
        border-bottom: none;
    }

    .equipo {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .posicion {
        margin: 0 0 10px 0;
    }

    /* etiquetas en mobile */
    .tabla-row div::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
    }
}