/* ========================================
   GRID FIX CSS - SOLO PARA CORREGIR TARJETAS
   ========================================
   Archivo adicional para fix del grid sin alterar diseño original
   Enlace en index.html: <link rel="stylesheet" href="assets/css/grid-fix.css">
   Versión: 1.0 - Solo modifica .profiles-grid
*/

/* Solo estos estilos - no sobrescribe resto de styles.css */
.profiles-section {
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin-bottom: 2rem;
}

.profiles-grid {
    display: grid;
    gap: 4px; /* Espaciado mínimo como en distintas.net */
    justify-content: center;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles muy pequeños */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px;
}

/* Desktop: 6 columnas (≥1200px) */
@media (min-width: 1200px) {
    .profiles-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
        padding: 10px;
    }
}

/* Desktop pequeño: 5 columnas (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .profiles-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
}

/* Tablets: 4 columnas (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
}

/* Móviles grandes: 3 columnas (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
}

/* Asegurar tarjetas uniformes y compactas */
.profile-card {
    aspect-ratio: 1 / 1.7; /* Mayor altura vertical para tarjetas más largas */
    width: 100%;
    height: auto !important; /* Asegurar que el aspect-ratio mande sobre alturas fijas */
    max-width: none !important; /* Eliminar restricción para que todas sean iguales */
    min-width: 0;
    margin: 0;
    border-radius: 4px !important; /* Bordes sutiles como en la referencia */
    box-shadow: none !important; /* Diseño plano */
    border: none !important;
}

.profile-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px !important;
}

/* Resto sin cambios - No afecta header, colores, logo, etc. */