/* ====== PÁGINA COMPETENCIAS ====== */

.comp-container {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto 60px auto; /* Espacio por el navbar */
}

.titulo-comp {
    text-align: center;
    color: #0d1b2a;
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 700;
}

.comp-page-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.comp-card {
    width: 30%;
    min-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.comp-card img {
    width: 180px;
    margin-bottom: 15px;
}

.comp-card h2 {
    color: #0d1b2a;
    margin-bottom: 10px;
}

.comp-card p {
    font-size: 15px;
    line-height: 1.4;
}

.comp-card:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ===== MERCADO ===== */

.mercado-container {
    margin-top: 60px;
    margin: 120px auto 60px auto; /* Espacio por el navbar */
}

/* GRID DE JUGADORES */
.mercado-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    grid-template-columns: repeat(6, 1fr);
}

.jugador-card {
    width: 250px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.jugador-card img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.jugador-card h3 {
    margin-bottom: 5px;
}

.jugador-card .precio {
    color: green;
    font-weight: bold;
}

.jugador-card:hover {
    transform: scale(1.05);
}

.overall {
    font-weight: bold;
    color: #0d1b2a;
    margin-bottom: 5px;
}

/* ===== TRASPASOS ===== */

.traspasos-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.traspasos-container h2 {
    margin-bottom: 15px;
    color: #0d1b2a;
}

.traspaso-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.traspaso-item:last-child {
    border-bottom: none;
}

.posicion {
    font-weight: bold;
    width: 40px;
}

.club-img {
    width: 35px;
}

.nombre {
    flex: 1;
    margin-left: 10px;
}

.precio {
    color: green;
    font-weight: bold;
}
