/* =============================================
   Mis Listados - Estilos del Shortcode
   ============================================= */

.ml-seccion-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

/* Grid principal */
.ml-grid {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}

.ml-columnas-1 { grid-template-columns: 1fr; }
.ml-columnas-2 { grid-template-columns: repeat(2, 1fr); }
.ml-columnas-3 { grid-template-columns: repeat(3, 1fr); }
.ml-columnas-4 { grid-template-columns: repeat(4, 1fr); }

/* Tarjeta */
.ml-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ml-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Enlace */
.ml-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagen */
.ml-imagen-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.ml-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ml-item:hover .ml-imagen {
    transform: scale(1.04);
}

.ml-sin-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
}

/* Contenido de la tarjeta */
.ml-contenido {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ml-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.ml-resumen {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.ml-boton {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
}

/* Sin resultados */
.ml-vacio {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
    font-size: 1rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .ml-columnas-4 { grid-template-columns: repeat(2, 1fr); }
    .ml-columnas-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ml-columnas-4,
    .ml-columnas-3,
    .ml-columnas-2 {
        grid-template-columns: 1fr;
    }
    .ml-imagen-wrap {
        height: 180px;
    }
}
