body {
    font-family: sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px; /* espacio reducido entre logos */
    justify-items: center;
    align-items: center;
}

.grid img {
    width: 100%;
    max-width: 180px; /* tamaño de logo aumentado */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border-radius: 10px;
    padding: 8px; /* margen interno */
}

.grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(7, 1fr);
    }
}