/* Estilos para imágenes de categorías - RECTANGULAR */
.category-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.category-image-container-rectangular {
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

.category-img-rectangular {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Estilos para títulos de categoría */
.category-title {
    font-size: 1.1rem; /* Tamaño más pequeño para el título */
    line-height: 1.3;
    min-height: 2.6rem; /* Altura mínima para mantener consistencia */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para descripción */
.category-description {
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 3.5rem; /* Altura mínima para mantener consistencia */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards de igual altura */
.category-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Efectos hover */
.category-card:hover .category-image-container-rectangular {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.category-card:hover .category-img-rectangular {
    transform: scale(1.05);
}

/* Botón siempre en la parte inferior */
.btn-custom-styled {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .category-image-container-rectangular {
        width: 180px;
        height: 126px;
    }
    
    .category-title {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .category-description {
        font-size: 0.85rem;
        min-height: 3rem;
    }
}

@media (max-width: 576px) {
    .category-image-container-rectangular {
        width: 160px;
        height: 112px;
    }
    
    .category-title {
        font-size: 0.95rem;
        min-height: 2.2rem;
    }
}