    /* ============================================
       SOLUCIÓN DEFINITIVA PARA TARJETAS UNIFORMES
       ============================================ */

    /* Contenedor de la tarjeta de producto */
    .product-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        transition: box-shadow 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .product-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    /* Contenedor de imagen con aspecto cuadrado */
    .card-img-top {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background-color: #ffffff;
    }

    /* El enlace dentro del contenedor de imagen debe ocupar todo el espacio */
    .card-img-top>a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    /* Imagen con posicionamiento absoluto - SOLUCIÓN DEFINITIVA */
    .card-img-top img.img-prod {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        padding: 10px;
    }

    /* ============================================
       RESPONSIVE DESIGN - OPTIMIZACIÓN MÓVIL
       ============================================ */

    /* Espaciado entre cards */
    .row.g-3 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    /* Móviles pequeños (menos de 576px) - 2 columnas */
    @media (max-width: 575.98px) {
        .product-card {
            font-size: 0.875rem;
        }

        .prod-content {
            font-size: 0.813rem;
            height: 2.6em;
        }

        .product-card h4 {
            font-size: 1rem;
        }

        .product-card small {
            font-size: 0.75rem;
        }

        .btn-prod-card {
            padding: 0.375rem 0.75rem;
            font-size: 0.875rem;
        }

        .card-img-top img.img-prod {
            padding: 8px;
        }

        .product-card .card-body {
            padding: 0.75rem;
        }

        .prod-likes-icon {
            width: 20px;
            height: 20px;
        }
    }

    /* Tablets (576px a 767px) - 2 columnas */
    @media (min-width: 576px) and (max-width: 767.98px) {
        .prod-content {
            font-size: 0.875rem;
        }

        .product-card h4 {
            font-size: 1.1rem;
        }

        .card-img-top img.img-prod {
            padding: 12px;
        }
    }

    /* Tablets grandes y escritorio pequeño (768px a 991px) - 3 columnas */
    @media (min-width: 768px) and (max-width: 991.98px) {
        .card-img-top img.img-prod {
            padding: 12px;
        }

        .product-card .card-body {
            padding: 0.875rem;
        }
    }

    /* Escritorio (992px a 1199px) - 4 columnas */
    @media (min-width: 992px) and (max-width: 1199.98px) {
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .product-card {
            transition: all 0.3s ease;
        }

        .card-img-top img.img-prod {
            transition: transform 0.3s ease;
        }

        .product-card:hover .img-prod {
            transform: scale(1.05);
        }
    }

    /* Escritorio grande (1200px en adelante) - 6 columnas */
    @media (min-width: 1200px) {
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .product-card {
            transition: all 0.3s ease;
        }

        .card-img-top img.img-prod {
            transition: transform 0.3s ease;
        }

        .product-card:hover .img-prod {
            transform: scale(1.05);
        }
    }

    /* Optimización para pantallas muy pequeñas (menos de 360px) */
    @media (max-width: 359.98px) {
        .prod-content {
            height: 3em;
            font-size: 0.75rem;
        }

        .product-card h4 {
            font-size: 0.95rem;
        }

        .btn-prod-card {
            font-size: 0.813rem;
            padding: 0.25rem 0.5rem;
        }
    }

    /* Botón de favoritos posicionado absolutamente */
    .card-img-top .position-absolute {
        z-index: 10;
    }

    /* Asegurar que el card-body ocupe el espacio restante y mantenga estructura */
    .product-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }

    /* Contenedor de información del producto con altura controlada */
    .product-card .card-body>a {
        display: block;
        text-decoration: none;
        color: inherit;
        margin-bottom: 0.5rem;
    }

    /* Hacer que el contenido de texto tenga altura fija - 2 líneas máximo */
    .prod-content {
        height: 2.4em;
        line-height: 1.2em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 0.25rem;
    }

    /* Contenedor de precio con altura fija */
    .product-card .d-flex.align-items-center {
        min-height: 2.5rem;
    }

    /* Precio del producto */
    .product-card h4 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1f2937;
    }

    /* Botón de acción */
    .btn-prod-card {
        width: 100%;
        padding: 0.5rem 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    /* Estilos para el checkbox de favoritos */
    .prod-likes {
        position: relative;
        margin: 0;
    }

    .prod-likes .form-check-input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .prod-likes-icon {
        display: block;
        transition: all 0.2s ease;
    }

    .prod-likes .form-check-input:checked~.prod-likes-icon {
        fill: #ef4444;
        stroke: #ef4444;
    }

    .prod-likes:hover .prod-likes-icon {
        transform: scale(1.1);
    }

    /* ============================================
       VISTA DE LISTADO
       ============================================ */

    .vista-lista .product-card {
        flex-direction: row;
        height: auto;
        min-height: 200px;
    }

    .vista-lista .card-img-top {
        width: 200px;
        min-width: 200px;
        aspect-ratio: 1 / 1;
    }

    .vista-lista .col-6,
    .vista-lista .col-sm-6,
    .vista-lista .col-md-4,
    .vista-lista .col-lg-3,
    .vista-lista .col-xl-2 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .vista-lista .prod-content {
        height: auto;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .vista-lista .product-card .card-body {
        padding: 1.5rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .vista-lista .card-body>a {
        flex: 1;
        margin-bottom: 0;
    }

    .vista-lista .d-flex.align-items-center.mt-2.mb-3 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 1.5rem;
    }

    .vista-lista .d-flex:last-child {
        margin-left: 1.5rem;
    }

    .vista-lista .btn-prod-card {
        width: auto;
        min-width: 120px;
    }

    /* Responsive para vista lista */
    @media (max-width: 767.98px) {
        .vista-lista .product-card {
            flex-direction: column;
            min-height: auto;
        }

        .vista-lista .card-img-top {
            width: 100%;
            min-width: 100%;
        }

        .vista-lista .product-card .card-body {
            flex-direction: column;
            align-items: flex-start;
        }

        .vista-lista .d-flex.align-items-center.mt-2.mb-3,
        .vista-lista .d-flex:last-child {
            margin-left: 0;
            margin-top: 1rem !important;
        }

        .vista-lista .btn-prod-card {
            width: 100%;
        }
    }