/* ====== PÁGINA COMPETENCIA 1 ====== */

.competencia-container {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto 50px auto;
    text-align: center;
}

.titulo-competencia {
    font-size: 32px;
    color: #0d1b2a;
    margin-bottom: 15px;
}

.descripcion-comp {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 35px auto;
    color: #333;
}


/* ---------- GRID RECTANGULAR HORIZONTAL ---------- */

.grid-horizontal {
    max-width: 2000px;
    margin: 80px auto;
}

.titulo-seccion {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 700;
}

/* CONTENEDOR RECTANGULAR */
.caja-grid {
    background: #ffffff;
    padding: 15px;
    border-radius: 34px;
    box-shadow: 0 4px 2px rgba(0,0,0,0.2);

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;

    align-items: center;
}

/* CADA ESCASEADO / ITEM */
.equipo-item {
    background: #fff;
    border-radius: 16px;
    padding: 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: 0.25s ease;
    cursor: pointer;
}

/* FORZAR QUE TODOS LOS ESCUDOS MIDAN IGUAL */
.equipo-item img {
    width: 70px;       /* TAMAÑO FIJO */
    height: 70px;      /* TAMAÑO FIJO */
    object-fit: contain; /* Mantiene proporción */
    image-rendering: auto;

    transition: 0.3s ease;
}

/* HOVER */
.equipo-item:hover {
    transform: translateY(-4px);
    background: #eef0f4;
}

.equipo-item:hover img {
    transform: scale(1.12);
}


/* CONTENEDOR DOS COLUMNAS */
.bloque-inferior {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
}

/* CONTENEDOR */
.tabla-posiciones {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    width: 100%;
}

/* HEADER */
.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 GENERALES */
.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-row:last-child {
    border-bottom: none;
}

/* ENCABEZADO */
.tp-head {
    background: #f2f2f2;
    font-weight: 700;
    border-bottom: 2px solid #ccc;
}

/* COLUMNAS */
.tp-col.pos {
    text-align: center;
    font-weight: 700;
}

.tp-col.pts {
    text-align: center;
    font-weight: 700;
}

.tp-col.equipo {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ESCUDOS */
.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; /* verde suave */
}

.puesto2, .puesto3, .puesto4 {
    background: #ffd83b !important; /* amarillo */
}

.puesto5 {
    background: #ffba39 !important; /* naranja */
}

.puesto6, .puesto7, .puesto8, .puesto9, .puesto10 {
    background: #39f8ff !important; /* celeste */
}

.descenso {
    background: #e74c3c !important; /* rojo */
}

.descenso-prom {
    background: #ee6728 !important; /* rojo */
}

.puesto-b-asc {
    background: #2ecc48 !important; /* verde */
}

.puesto-b-prom {
    background: #80e290 !important; /* verde suave */
}


/* TARJETAS INFORMES */
.informes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 40px;
}

.card-informe {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.card-informe img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-informe:hover {
    transform: translateY(-5px);
}

.texto-informe {
    padding: 15px;
    font-weight: bold;
    background: #0d1b2a;
    color: white;
}

/* FOOTER SPONSORS */
.footer-sponsors {
    margin-top: 60px;
    padding: 30px 0;
    background: #0d1b2a;
}

.contenedor-sponsors {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 70px;       /* TAMAÑO FIJO */
    height: 80px;      /* TAMAÑO FIJO */
    object-fit: contain; /* Mantiene proporción */
    image-rendering: auto;
}

.contenedor-sponsors img {
    width: 110px;
    opacity: 0.8;
    transition: 0.3s;
}

.contenedor-sponsors img:hover {
    opacity: 1;
}

/* --------------------------------------------- */
/* 🏆 LEYENDA DE COLORES */
/* --------------------------------------------- */

.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;
    display: inline-block;
}

/* Colores */
.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;
}
