
/* patrocinadors */
/* Estils revisats per als patrocinadors */
.contenidor-patrocinadors {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* exactament 4 per fila */
    gap: 1rem;
    padding: 2rem;
    padding-bottom: 0;
        padding-top: 0;

    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}


.Apartat {
    background-color: #fff;
    border: 2px solid #a7b8cb;
    border-radius: 12px;
    width: 100%;
    max-width: 160px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Apartat:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.MedioA button {
    background-color: #003366;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.MedioA button:hover {
    background-color: #001f4d;
}

.MedioA img {
    width: 100%;
    aspect-ratio: 1 / 1; /* ⬅️ Fa que siguin quadrades */
    object-fit: contain; /* Manté proporció dins del quadrat */
    border-radius: 6px;
    background-color: white;
    margin: 0;
}

.MedioA p {
    display: none; /* eliminem la descripció breu com demanat */
}




@media (max-width: 768px) {
    .contenidor-patrocinadors {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
}
.hover-patro {
    position: relative;
}

.missatge-hover {
    display: none;
    position: absolute;
    top: 95%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(181, 31, 109, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 10;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hover-patro:hover .missatge-hover {
    display: block;
}
